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)typedescriptiondefault
labelValue (*)Stringlabel of the input text component
propertyName (*)Stringname of the widget property to bind the value to
renderMessagebooleancontrols, if the message shall be rendered on validation errorfalse
requiredbooleancontrols, if the input text value is required
disabledbooleancontrols, if the input text component is disabled
inputStyleClass / labelStyleClass / messageStyleClassStringsets the style classes
valueChangeListenerBeanEL-ExpressionExpression for bean, which offers a valueChangeListener method (e.g. '\#{myBean}'
valueChangeListenerNameStringname 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)typedescriptiondefault
labelValue (*)Stringlabel of the input text component
propertyName (*)Stringname of the widget property to bind the value to
renderMessagebooleancontrols, if the message shall be rendered on validation errorfalse
inputStyleClass / labelStyleClass / messageStyleClassStringsets the style classes
valueChangeListenerBeanEL-ExpressionExpression for bean, which offers a valueChangeListener method (e.g. '\#{myBean}'
valueChangeListenerNameStringname 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)typedescriptiondefault
labelValue (*)Stringlabel of the input text component
styleClassStringsets the style class

<dwComp:widgetAutoReloadInterval>

InputText for <dwComp:widgetAutoReloadCheckbox>, see above.
attribute (* required)typedescriptiondefault
labelValue (*)Stringlabel of the input text component
renderMessagebooleancontrols, if the message shall be rendered on validation errorfalse
inputStyleClass / labelStyleClass / messageStyleClassStringsets 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)typedescriptiondefault
actionBeanEl-ExpressionExpression for bean, which offers a action method (e.g. '\#{myBean}'
actionBeanStringname of the action method (e.g. 'myActionMethod')
widgetActionParamStringthe widget action parameter can be used to control widget actions (close, toggle, postition change, ...) with the current action.
reRenderViewbooleansets the style classes
reRenderEditbooleansets the style classes
reRenderWidgetbooleansets 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>
			 />