public abstract class AbstractSelectWidgetTypeHandler extends AbstractWidgetTypeHandler
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSelectWidgetTypeHandler.SelectPropertyMappings |
DEV_TEMPLATE_PROPERTY_NAME, DISABLE_DEV_PROPERTY_NAME, properties
Constructor and Description |
---|
AbstractSelectWidgetTypeHandler() |
Modifier and Type | Method and Description |
---|---|
protected javax.faces.view.facelets.FaceletHandler |
getBareOptionFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
WidgetSelectOption selectOption,
javax.faces.view.facelets.FaceletHandler nextHandler) |
protected javax.faces.view.facelets.FaceletHandler |
getComponentFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
javax.faces.view.facelets.FaceletHandler componentHandler) |
protected List<String> |
getExcludedProperties()
Returns properties useful for select items, not to be reported on the select component.
|
protected 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,
String componentType) |
protected 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,
String componentType,
String rendererType) |
protected javax.faces.view.facelets.FaceletHandler |
getFirstHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
javax.faces.view.facelets.FaceletHandler nextHandler)
Adds a default disabled "select a value" option if widget is not required.
|
protected String |
getOptionComponentType(WidgetSelectOption selectOption) |
protected javax.faces.view.facelets.FaceletHandler |
getOptionFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
WidgetSelectOption selectOption,
javax.faces.view.facelets.FaceletHandler nextHandler) |
protected Map<String,Serializable> |
getOptionProperties(javax.faces.view.facelets.FaceletContext ctx,
Widget widget,
WidgetSelectOption selectOption) |
protected javax.faces.view.facelets.FaceletHandler |
getOptionsFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget) |
protected javax.faces.view.facelets.FaceletHandler |
getOptionsFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
WidgetSelectOption[] selectOptions) |
protected javax.faces.view.facelets.FaceletHandler |
getWidgetPropsHandler(javax.faces.view.facelets.FaceletContext ctx,
FaceletHandlerHelper helper,
Widget widget,
javax.faces.view.facelets.FaceletHandler nextHandler)
Computes select options from widget properties.
|
protected boolean |
shouldAddWidgetPropsHandler(Widget widget)
Returns true if widget properties should generate a default tag handler for select options.
|
getDevFaceletHandler, getDocumentConstraintValidatorHandler, getFaceletHandler, getInputSlotHandler, getNextHandler, getNextHandler, getNextHandler, getProperty, getRequiredProperty, setProperties
public AbstractSelectWidgetTypeHandler()
protected Map<String,Serializable> getOptionProperties(javax.faces.view.facelets.FaceletContext ctx, Widget widget, WidgetSelectOption selectOption)
protected String getOptionComponentType(WidgetSelectOption selectOption)
protected javax.faces.view.facelets.FaceletHandler getOptionFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, WidgetSelectOption selectOption, javax.faces.view.facelets.FaceletHandler nextHandler)
protected javax.faces.view.facelets.FaceletHandler getBareOptionFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, WidgetSelectOption selectOption, javax.faces.view.facelets.FaceletHandler nextHandler)
protected javax.faces.view.facelets.FaceletHandler getFirstHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, javax.faces.view.facelets.FaceletHandler nextHandler)
protected boolean shouldAddWidgetPropsHandler(Widget widget)
This default implementation requires the selectOptions widget property to be filled.
protected javax.faces.view.facelets.FaceletHandler getWidgetPropsHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, javax.faces.view.facelets.FaceletHandler nextHandler)
protected javax.faces.view.facelets.FaceletHandler getOptionsFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, WidgetSelectOption[] selectOptions)
protected javax.faces.view.facelets.FaceletHandler getOptionsFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget)
protected List<String> getExcludedProperties()
protected 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, String componentType) throws WidgetException
WidgetException
protected javax.faces.view.facelets.FaceletHandler getComponentFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, FaceletHandlerHelper helper, Widget widget, javax.faces.view.facelets.FaceletHandler componentHandler)
protected 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, String componentType, String rendererType) throws WidgetException
WidgetException
Copyright © 2015 Nuxeo SA. All rights reserved.