JBoss.orgCommunity Documentation
These following parameters are common and can be used for all input fields.
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
jcrPath |
string
|
![]() |
jcrPath=/node/exo:title
| The relative path inside the current node. |
mixintype |
string with the commas (,) character. |
![]() |
| The list of mixin types you want to initialize when creating the content. |
validate |
string with the comma (,) character |
![]() |
| The list of validators you want to apply to the input. Possible values are: name, email, number, empty, null, datetime, length OR validator classes. To know how to pass parameters to validators, refer here |
editable |
string
|
![]() |
editable=if-null
| The input will be editable only if the value of this parameter is if-null and the value of this input is null or blank. |
multiValues |
boolean
|
![]() |
multiValues=true
| Show a multi-valued component if true and must be used only with corresponding multi-valued properties. The default value of this parameter is false. |
visible |
boolean
|
![]() |
visible=true
| The input is visible if this value is true. |
options |
String separated by the commas (,) character. |
![]() | A list of parameters which are input while the content templates are initialized. |
"options=toolbar:CompleteWCM,height:'410px',noSanitization" |
"name" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=name", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"email" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=email", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"number" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=number", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"empty" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=empty", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"null" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=null", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"datetime" validator:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=datetime", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
"length" validator:
For a maximum length of 50 characters:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=empty,length(50;int)", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
For a minimum length of 6 characters and maximum length of 50 characters:
String[] webContentFieldTitle = ["jcrPath=/node/exo:title", "validate=empty,length(6;50;int)", "editable=if-null"];
uicomponent.addTextField("title", webContentFieldTitle) ;
See also
The mixintype can be used only in the root node field (commonly known as the name field).