public class CheckboxWidgetTypeHandler extends AbstractWidgetTypeHandler
In view mode, it expects the messages 'label.yes' and 'label.no' to be present in a bundle called 'messages' for internationalization, when the bound value is computed from field definitions.
DEV_TEMPLATE_PROPERTY_NAME, DISABLE_DEV_PROPERTY_NAME, properties, tagConfig, widget, widgetAttr
Constructor and Description |
---|
CheckboxWidgetTypeHandler(javax.faces.view.facelets.TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
Widget widget)
Returns the facelet handler that will be applied for given widget and template in this context.
|
protected javax.faces.view.facelets.TagAttributes |
getViewTagAttributes(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
String id,
Widget widget,
boolean addId)
Return tag attributes after having replaced the usual value expression for the 'value' field by a specific
expression to display the boolean value as an internationalized label.
|
apply, getDevFaceletHandler, getDocumentConstraintValidatorHandler, getInputSlotHandler, getNextHandler, getNextHandler, getProperty, getRequiredProperty, setProperties, setWidget
public CheckboxWidgetTypeHandler(javax.faces.view.facelets.TagConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent, Widget widget) throws WidgetException, IOException
WidgetTypeHandler
apply
in class AbstractWidgetTypeHandler
ctx
- the facelet context in which this handler will be applied.parent
- parent component in the JSF treewidget
- the widget giving properties the handler will take into account.WidgetException
IOException
protected javax.faces.view.facelets.TagAttributes getViewTagAttributes(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, String id, Widget widget, boolean addId)
Copyright © 2017 Nuxeo. All rights reserved.