| org.apache.struts.faces.renderer.AbstractRenderer
All known Subclasses: org.apache.struts.faces.renderer.FormRenderer, org.apache.struts.faces.renderer.WriteRenderer, org.apache.struts.faces.renderer.BaseRenderer, org.apache.struts.faces.renderer.StylesheetRenderer, org.apache.struts.faces.renderer.HtmlRenderer, org.apache.struts.faces.renderer.ErrorsRenderer, org.apache.struts.faces.renderer.CommandLinkRenderer,
AbstractRenderer | abstract public class AbstractRenderer extends Renderer (Code) | | Abstract base class for concrete implementations of
javax.faces.render.Renderer for the
Struts-Faces Integration Library.
version: $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $ |
Method Summary | |
public void | decode(FacesContext context, UIComponent component) | public void | encodeBegin(FacesContext context, UIComponent component) | public void | encodeChildren(FacesContext context, UIComponent component) | public void | encodeEnd(FacesContext context, UIComponent component) | protected void | encodeRecursive(FacesContext context, UIComponent component) | protected String | getAsString(FacesContext context, UIComponent component, Object value) Convert the Object representation of this component's value
to the corresponding String representation. | protected boolean | isDisabled(UIComponent component) | protected boolean | isReadOnly(UIComponent component) | protected void | renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) Render the element attributes for the generated markup related to this
component. | protected void | renderBoolean(FacesContext context, UIComponent component, ResponseWriter writer, String names) | protected void | renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) Render the element end for the generated markup related to this
component. | protected void | renderPassThrough(FacesContext context, UIComponent component, ResponseWriter writer, String names) Render any attributes on the specified list directly to the
specified ResponseWriter for which the specified
UIComponent has a non-null attribute value. | protected void | renderStart(FacesContext context, UIComponent component, ResponseWriter writer) Render the element start for the generated markup related to this
component. | protected void | setSubmittedValue(FacesContext context, UIComponent component) If a submitted value was included on this request, store it in the
component as appropriate.
The default implementation determines whether this component
implements EditableValueHolder . |
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decode any new state of the specified UIComponent
from the request contained in the specified FacesContext ,
and store that state on the UIComponent .
The default implementation calls setSubmittedValue()
unless this component has a boolean disabled or
readonly attribute that is set to true .
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null |
encodeBegin | public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code) | | Render the beginning of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation calls renderStart() and
renderAttributes() .
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | Render the children of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation iterates through the children of
this component and renders them.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
encodeEnd | public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code) | | Render the ending of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation calls renderEnd() .
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null exception: IOException - if an input/output error occurs |
encodeRecursive | protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException(Code) | | Render nested child components by invoking the encode methods
on those components, but only when the rendered
property is true .
|
getAsString | protected String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException(Code) | | Convert the Object representation of this component's value
to the corresponding String representation. The default implementation
utilizes the getAsString() method of any associated
Converter .
Parameters: context - The FacesContext for this request Parameters: component - The UIComponent whose value isbeing converted Parameters: value - The Object representation to be converted exception: ConverterException - if conversion fails |
isDisabled | protected boolean isDisabled(UIComponent component)(Code) | | Return true if the specified component is disabled.
Parameters: component - UIComponent to be checked |
isReadOnly | protected boolean isReadOnly(UIComponent component)(Code) | | Return true if the specified component is read only.
Parameters: component - UIComponent to be checked |
renderAttributes | protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element attributes for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include calls to
to writeAttribute() and writeURIAttribute
on the specified ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
renderBoolean | protected void renderBoolean(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code) | | Render any boolean attributes on the specified list that have
true values on the corresponding attribute of the
specified UIComponent .
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: names - List of attribute names to be passed through exception: IOException - if an input/output error occurs |
renderEnd | protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element end for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include a call
to endElement() on the specified
ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
renderPassThrough | protected void renderPassThrough(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code) | | Render any attributes on the specified list directly to the
specified ResponseWriter for which the specified
UIComponent has a non-null attribute value.
This method may be used to "pass through" commonly used attribute
name/value pairs with a minimum of code.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered Parameters: names - List of attribute names to be passed through exception: IOException - if an input/output error occurs |
renderStart | protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the element start for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include a call
to startElement() on the specified
ResponseWriter .
The default implementation does nothing.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
setSubmittedValue | protected void setSubmittedValue(FacesContext context, UIComponent component)(Code) | | If a submitted value was included on this request, store it in the
component as appropriate.
The default implementation determines whether this component
implements EditableValueHolder . If so, it checks for a
request parameter with the same name as the clientId
of this UIComponent . If there is such a parameter, its
value is passed (as a String) to the setSubmittedValue()
method on the EditableValueHolder component.
Parameters: context - FacesContext for the current request Parameters: component - EditableValueHolder component whosesubmitted value is to be stored |
|
|