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.ButtonExRenderer

public class ButtonExRenderer
implements IScriptContributor
extends HtmlBasicRenderer

Renderer 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.

 

encodeBegin

public void encodeBegin(FacesContext context,
                        UIComponent component) throws IOException

Renders 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.

 

encodeChildren

public void encodeChildren(FacesContext context,
                           UIComponent component) throws IOException

Renders component's children.

Doesn't need to do anything: all processing is done in encodeBegin.

 

encodeEnd

public void encodeEnd(FacesContext context,
                      UIComponent component) throws IOException

Renders the ending of the component.

Doesn't need to do anything, all processing is done in encodeBegin.

Class Hierarchy All Classes All Fields and Methods