| Modifier and Type | Class and Description |
|---|---|
| public static class | HtmlBasicRenderer.OptionComponentInfo
Structure to hold common info used by Select* components to reduce the number of times component attributes are evaluated when rendering options. |
| public static class | HtmlBasicRenderer.Param
Simple class to encapsulate the name and value of a |
| Modifier and Type | Field and Description |
|---|---|
| protected static final HtmlBasicRenderer. | |
| private static final Set | |
| protected static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the (possibly augmented)forValue- the basic id-reference value. forValue, UIComponent - the component that holds the code>forValue. fromComponent)Conditionally augment an id-reference value. |
| public String | convertClientId(FacesContext
FacesContext for the current requestthe client identifier to be converted to client a
specific format. clientId)Overrides javax. Convert the component generated client id to a form suitable for transmission to the client. |
| public void | decode(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.Overrides javax. Decode any new state of the specified |
| protected final String | |
| public void | encodeEnd(FacesContext
FacesContext for the response we are creatingUIComponent to be renderedOverrides javax. Render the ending of the current state of the specified
|
| protected void | encodeRecursive(FacesContext
FacesContext for the current request context, UIComponent the component to recursively encode component)
Render nested child components by invoking the encode methods on those components,
but only when the |
| private static UIComponent | Returns: the component with the theidforComponent otheriwse null if no match is found.- the starting point in which to begin the search startPoint, String - the component to search for forComponent)
Recursively searches for |
| protected Collection | Returns: a collection of ClientBehaviorContext.Parameter instances.the command which may have parameters command)Collections parameters for use with Behavior script rendering. |
| protected Iterator | Returns: an Iterator over the children of the specified component, selecting only those that have arendered property of true.UIComponent for which to extract children
|
| protected String | Returns: the value to be rendered and formats it if required. Sets to empty string if value is null.the FacesContext for the current request context, UIComponent the UIComponent whose value we're interested in component)
|
| protected void | getEndTextToRender(FacesContext
the FacesContext for the current request context, UIComponent the UIComponent of interest component, String component's current valueRenderers override this method to write appropriate HTML content into the buffer. |
| protected UIComponent | Returns: the specified facet from the specified component, but only if itsrendered property is set to true.Component from which to return a facet component, String Name of the desired facet name)
|
| protected UIComponent | Returns: the component with the theidforComponent otheriwse null if no match is found.the FacesContext for the current request context, String - the component to search for forComponent, UIComponent - the starting point in which to begin the search component)Locates the component identified by |
| protected String | Returns: the currentValue after any associated Converter has been appliedthe FacesContext for the current request context, UIComponent UIComponent of interest component, Object the current value of currentValue, Converter<T> componentthe component's converter converter)Overloads getFormattedValue to take a advantage of a previously obtained converter. |
| protected String | Returns: the currentValue after any associated Converter has been appliedthe FacesContext for the current request context, UIComponent UIComponent of interest component, Object the current value of currentValue)component
|
| protected Iterator | |
| protected HtmlBasicRenderer. | Returns: an array of parametersthe command which may have parameters command)
|
| protected static Map | getPassThruBehaviors(UIComponent
the component that we are rendering component, String the name of the dom-level event domEventName, String the name of the component-level event componentEventName)When rendering pass thru attributes, we need to take any attached Behaviors into account. |
| public boolean | getRendersChildren()
Overrides javax. Return a flag indicating whether this |
| protected Object | |
| protected boolean | Returns: true if the behavior source is for the component being
decoded, otherwise falsethe ctx, String FacesContext for the current requestthe ID of the behavior source behaviorSourceId, String the client ID of the component being decoded componentClientId)
|
| protected void | |
| protected void | setSubmittedValue(UIComponent
the target component to which the submitted value will be set component, Object the value to set value)Renderers override this method to store the previous value of the associated component. |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if this renderer should render an id attribute.the component of interest component)
|
| protected String |
| EMPTY_PARAMS | back to summary |
|---|---|
| protected static final HtmlBasicRenderer. | |
| EXPRESSION_HINTS | back to summary |
|---|---|
| private static final Set<SearchExpressionHint> EXPRESSION_HINTS | |
| logger | back to summary |
|---|---|
| protected static final Logger logger | |
| HtmlBasicRenderer | back to summary |
|---|---|
| public HtmlBasicRenderer() | |
| augmentIdReference | back to summary |
|---|---|
| protected String augmentIdReference(String forValue, UIComponent fromComponent) Conditionally augment an id-reference value.
If the
| |
| convertClientId | back to summary |
|---|---|
| public String convertClientId(FacesContext context, String clientId) Overrides javax. Doc from javax. Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument
| |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context, UIComponent component) Overrides javax. Doc from javax. Decode any new state of the specified During decoding, events may be enqueued for later processing
(by event listeners that have registered an interest), by calling
| |
| decodeBehaviors | back to summary |
|---|---|
| protected final String decodeBehaviors(FacesContext context, UIComponent component) | |
| encodeEnd | back to summary |
|---|---|
| public void encodeEnd(FacesContext context, UIComponent component) throws IOException Overrides javax. Doc from javax. Render the ending of the current state of the specified
| |
| encodeRecursive | back to summary |
|---|---|
| protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException
Render nested child components by invoking the encode methods on those components,
but only when the
| |
| findUIComponentBelow | back to summary |
|---|---|
| private static UIComponent findUIComponentBelow(UIComponent startPoint, String forComponent)
Recursively searches for
| |
| getBehaviorParameters | back to summary |
|---|---|
| protected Collection Collections parameters for use with Behavior script rendering. Similar to getParamList(), but returns a collection of ClientBehaviorContext.Parameter instances.
| |
| getChildren | back to summary |
|---|---|
protected Iterator
| |
| getCurrentValue | back to summary |
|---|---|
protected String getCurrentValue(FacesContext context, UIComponent component)
| |
| getEndTextToRender | back to summary |
|---|---|
| protected void getEndTextToRender(FacesContext context, UIComponent component, String currentValue) throws IOException Renderers override this method to write appropriate HTML content into the buffer.
| |
| getFacet | back to summary |
|---|---|
protected UIComponent getFacet(UIComponent component, String name)
| |
| getForComponent | back to summary |
|---|---|
| protected UIComponent getForComponent(FacesContext context, String forComponent, UIComponent component) Locates the component identified by
| |
| getFormattedValue | back to summary |
|---|---|
| protected String getFormattedValue(FacesContext context, UIComponent component, Object currentValue, Converter<T> converter) throws ConverterException Overloads getFormattedValue to take a advantage of a previously obtained converter.
| |
| getFormattedValue | back to summary |
|---|---|
protected String getFormattedValue(FacesContext context, UIComponent component, Object currentValue) throws ConverterException
| |
| getMessageIter | back to summary |
|---|---|
| protected Iterator | |
| getParamList | back to summary |
|---|---|
protected HtmlBasicRenderer.
| |
| getPassThruBehaviors | back to summary |
|---|---|
| protected static Map When rendering pass thru attributes, we need to take any attached Behaviors into account. The presence of a non-empty Behaviors map can cause us to switch from optimized pass thru attribute rendering to the unoptimized code path. However, in two very common cases - attaching action behaviors to commands and attaching value change behaviors to editable value holders - the behaviors map is populated with behaviors that are not handled by the pass thru attribute code - ie. the behaviors are handled locally by the renderer. In order to optimize such cases, we check to see whether the component's behaviors map actually contains behaviors only for these non-pass thru attributes. If so, we can pass a null behavior map into renderPassThruAttributes(), thus ensuring that we can take advantage of the optimized pass thru rendering logic. Note that in all cases where we use this method, we actually have two behavior events that we want to check for - a low-level/dom event (eg. "click", or "change") plus a high-level component event (eg. "action", or "valueChange").
| |
| getRendersChildren | back to summary |
|---|---|
| public boolean getRendersChildren() Overrides javax. Doc from javax. Return a flag indicating whether this
| |
| getValue | back to summary |
|---|---|
| protected Object getValue(UIComponent component) | |
| isBehaviorSource | back to summary |
|---|---|
protected boolean isBehaviorSource(FacesContext ctx, String behaviorSourceId, String componentClientId)
| |
| rendererParamsNotNull | back to summary |
|---|---|
| protected void rendererParamsNotNull(FacesContext context, UIComponent component) | |
| setSubmittedValue | back to summary |
|---|---|
| protected void setSubmittedValue(UIComponent component, Object value) Renderers override this method to store the previous value of the associated component.
| |
| shouldDecode | back to summary |
|---|---|
| protected boolean shouldDecode(UIComponent component) | |
| shouldEncode | back to summary |
|---|---|
| protected boolean shouldEncode(UIComponent component) | |
| shouldEncodeChildren | back to summary |
|---|---|
| protected boolean shouldEncodeChildren(UIComponent component) | |
| shouldWriteIdAttribute | back to summary |
|---|---|
protected boolean shouldWriteIdAttribute(UIComponent component)
| |
| writeIdAttributeIfNecessary | back to summary |
|---|---|
| protected String writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv String | |
| pack-priv String | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public boolean |
| disabled | back to summary |
|---|---|
| pack-priv boolean disabled | |
| disabledClass | back to summary |
|---|---|
| pack-priv String disabledClass | |
| enabledClass | back to summary |
|---|---|
| pack-priv String enabledClass | |
| hideNoSelection | back to summary |
|---|---|
| pack-priv boolean hideNoSelection | |
| selectedClass | back to summary |
|---|---|
| pack-priv String selectedClass | |
| unselectedClass | back to summary |
|---|---|
| pack-priv String unselectedClass | |
| OptionComponentInfo | back to summary |
|---|---|
| public OptionComponentInfo(UIComponent component) | |
| getDisabledClass | back to summary |
|---|---|
| public String getDisabledClass() | |
| getEnabledClass | back to summary |
|---|---|
| public String getEnabledClass() | |
| getSelectedClass | back to summary |
|---|---|
| public String getSelectedClass() | |
| getUnselectedClass | back to summary |
|---|---|
| public String getUnselectedClass() | |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled() | |
| isHideNoSelection | back to summary |
|---|---|
| public boolean isHideNoSelection() | |
Simple class to encapsulate the name and value of a UIParameter.
| Param | back to summary |
|---|---|
| public Param(String name, String value) | |