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
Constructor and Description |
---|
CheckboxWidgetTypeHandler() |
Modifier and Type | Method and Description |
---|---|
javax.faces.view.facelets.FaceletHandler |
getFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers)
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.
|
getDevFaceletHandler, getDocumentConstraintValidatorHandler, getInputSlotHandler, getNextHandler, getNextHandler, getNextHandler, getProperty, getRequiredProperty, setProperties
public CheckboxWidgetTypeHandler()
public javax.faces.view.facelets.FaceletHandler getFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers) throws WidgetException
WidgetTypeHandler
getFaceletHandler
in interface WidgetTypeHandler
getFaceletHandler
in class AbstractWidgetTypeHandler
ctx
- the facelet context in which this handler will be applied.tagConfig
- the tag configuration this facelet will be applied for.widget
- the widget giving properties the handler will take into account.subHandlers
- facelet handlers for sub widgets.WidgetException
protected javax.faces.view.facelets.TagAttributes getViewTagAttributes(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, String id, Widget widget, boolean addId)
Copyright © 2015 Nuxeo SA. All rights reserved.