Content components
dynaWidgets also contains special components for the content facelets of widgets. Here you see all components and their attributes.
<dwComp:widgetInputText>
A InputText component for binding a text value to a widget property in state,
see here.
| attribute (* required) | type | description | default |
| labelValue (*) | String | label of the input text component | |
| propertyName (*) | String | name of the widget property to bind the value to | |
| renderMessage | boolean | controls, if the message shall be rendered on validation error | false |
| required | boolean | controls, if the input text value is required | |
| disabled | boolean | controls, if the input text component is disabled | |
| inputStyleClass / labelStyleClass / messageStyleClass | String | sets the style classes | |
| valueChangeListenerBean | EL-Expression | Expression for bean, which offers a valueChangeListener method (e.g. '\#{myBean}' | |
| valueChangeListenerName | String | name of the valueChangeListener method (e.g. 'myValueChangeMethod') | |
<dwComp:widgetBooleanCheckbox>
An BooleanCheckbox component for binding a boolean value to a widget property in state,
see here.
| attribute (* required) | type | description | default |
| labelValue (*) | String | label of the input text component | |
| propertyName (*) | String | name of the widget property to bind the value to | |
| renderMessage | boolean | controls, if the message shall be rendered on validation error | false |
| inputStyleClass / labelStyleClass / messageStyleClass | String | sets the style classes | |
| valueChangeListenerBean | EL-Expression | Expression for bean, which offers a valueChangeListener method (e.g. '\#{myBean}' | |
| valueChangeListenerName | String | name of the valueChangeListener method (e.g. 'myValueChangeMethod') | |
<dwComp:widgetAutoReloadCheckbox>
Checkbox that auto reloads the widget content in a given interval. The flag and interval are bound to the widget´s state.
| attribute (* required) | type | description | default |
| labelValue (*) | String | label of the input text component | |
| styleClass | String | sets the style class | |
<dwComp:widgetAutoReloadInterval>
InputText for <dwComp:widgetAutoReloadCheckbox>, see above.
| attribute (* required) | type | description | default |
| labelValue (*) | String | label of the input text component | |
| renderMessage | boolean | controls, if the message shall be rendered on validation error | false |
| inputStyleClass / labelStyleClass / messageStyleClass | String | sets the style classes | |
<dwComp:widgetAjaxLink>,
<dwComp:widgetAjaxButton>
Ajax actions (based on a4j-actions) that use the widgets ajax queue and might reRender the widget´s content.
| attribute (* required) | type | description | default |
| actionBean | El-Expression | Expression for bean, which offers a action method (e.g. '\#{myBean}' | |
| actionBean | String | name of the action method (e.g. 'myActionMethod') | |
| widgetActionParam | String | the widget action parameter can be used to control widget actions (close, toggle, postition change, ...) with the current action. | |
| reRenderView | boolean | sets the style classes | |
| reRenderEdit | boolean | sets the style classes | |
| reRenderWidget | boolean | sets the style classes | |
The ajax action components additionally support most of the aj4 or h:commandLink|Button attributes (rendered, id, ajaxSingle, reRender, onclick, ... ). There´s also the possibility to use setPropertyActionListener or params by using a special facelets slot within the component, e.g.:
<dwComp:widgetAjaxLink>
...
<ui:define name="params">
<f:setPropertyActionListener target="..." value="..." >
...
</ui:define>
/>