Class Hierarchy All Classes All Fields and Methods
Class com.ibm.faces.renderkit.html_extended.ButtonExRenderer
java.lang.Object javax.faces.render.Renderer com.sun.faces.renderkit.html_basic.HtmlBasicRenderer com.ibm.faces.renderkit.html_extended.ButtonExRendererpublic class ButtonExRenderer
implements IScriptContributor
extends HtmlBasicRendererRenderer for UICommand component that creates a button.
This renderer is based on the standard Button renderer and extends it to support image rollover effect and confirmation message.
Tags:
Components: UICommand
Constructor Index Constructor Description ButtonExRenderer()
Method Index Method Description void contributeScript(FacesContext, UIComponent) void decode(FacesContext, UIComponent) Decodes the current state of the component. void encodeBegin(FacesContext, UIComponent) Renders the beginning of the component. void encodeChildren(FacesContext, UIComponent) Renders component's children. void encodeEnd(FacesContext, UIComponent) Renders the ending of the component.
Constructors
ButtonExRenderer
public ButtonExRenderer()
Methods
contributeScript
public void contributeScript(FacesContext context, UIComponent component) throws IOException
decode
public void decode(FacesContext context, UIComponent component)Decodes the current state of the component.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be decoded.
- Throws
- IOException if an input/output error occurs while decoding
- Overrides
- decode in class HtmlBasicRenderer
- See Also
- decode
encodeBegin
public void encodeBegin(FacesContext context, UIComponent component) throws IOExceptionRenders the beginning of the component.
Creates an INPUT tag with type attribute set according to button's type to either submit, reset, or image.
Rollover effect (hover and pressed images) and confirmation message are added in JavaScript event handlers if approproate attributes were set.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeBegin in class Renderer
- See Also
- encodeBegin
encodeChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOExceptionRenders component's children.
Doesn't need to do anything: all processing is done in encodeBegin.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeChildren in class Renderer
- See Also
- encodeBegin
encodeEnd
public void encodeEnd(FacesContext context, UIComponent component) throws IOExceptionRenders the ending of the component.
Doesn't need to do anything, all processing is done in encodeBegin.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeEnd in class HtmlBasicRenderer
- See Also
- encodeEnd
Class Hierarchy All Classes All Fields and Methods