org.apache.myfaces.shared.renderkit.html
Class HtmlButtonRendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared.renderkit.html.HtmlButtonRendererBase

public class HtmlButtonRendererBase
extends HtmlRenderer

Version:
$Revision: 1533195 $ $Date: 2013-10-17 13:21:06 -0500 (Thu, 17 Oct 2013) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $), Thomas Spiegl, Anton Koinov

Field Summary
static String ACTION_FOR_LIST
           
 
Constructor Summary
HtmlButtonRendererBase()
           
 
Method Summary
protected  void addHiddenCommandParameter(FacesContext facesContext, UIComponent nestingForm, String hiddenFieldName)
           
protected  String buildBehaviorizedOnClick(UIComponent uiComponent, Map<String,List<ClientBehavior>> behaviors, FacesContext facesContext, ResponseWriter writer, FormInfo nestedFormInfo, List<UIParameter> validParams)
           
protected  StringBuilder buildOnClick(UIComponent uiComponent, FacesContext facesContext, ResponseWriter writer, List<UIParameter> validParams)
           
protected  String buildServerOnclick(FacesContext facesContext, UIComponent component, String clientId, FormInfo formInfo, List<UIParameter> validParams)
           
 void decode(FacesContext facesContext, UIComponent uiComponent)
           
 void encodeEnd(FacesContext facesContext, UIComponent uiComponent)
           
protected  FormInfo findNestingForm(UIComponent uiComponent, FacesContext facesContext)
          find nesting form
need to be overrideable to deal with dummyForm stuff in tomahawk.
protected  boolean isDisabled(FacesContext facesContext, UIComponent uiComponent)
           
protected  boolean isReadonly(FacesContext facesContext, UIComponent uiComponent)
           
 
Methods inherited from class org.apache.myfaces.shared.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_FOR_LIST

public static final String ACTION_FOR_LIST
See Also:
Constant Field Values
Constructor Detail

HtmlButtonRendererBase

public HtmlButtonRendererBase()
Method Detail

decode

public void decode(FacesContext facesContext,
                   UIComponent uiComponent)
Overrides:
decode in class Renderer

encodeEnd

public void encodeEnd(FacesContext facesContext,
                      UIComponent uiComponent)
               throws IOException
Overrides:
encodeEnd in class Renderer
Throws:
IOException

buildBehaviorizedOnClick

protected String buildBehaviorizedOnClick(UIComponent uiComponent,
                                          Map<String,List<ClientBehavior>> behaviors,
                                          FacesContext facesContext,
                                          ResponseWriter writer,
                                          FormInfo nestedFormInfo,
                                          List<UIParameter> validParams)
                                   throws IOException
Throws:
IOException

buildServerOnclick

protected String buildServerOnclick(FacesContext facesContext,
                                    UIComponent component,
                                    String clientId,
                                    FormInfo formInfo,
                                    List<UIParameter> validParams)
                             throws IOException
Throws:
IOException

buildOnClick

protected StringBuilder buildOnClick(UIComponent uiComponent,
                                     FacesContext facesContext,
                                     ResponseWriter writer,
                                     List<UIParameter> validParams)
                              throws IOException
Throws:
IOException

addHiddenCommandParameter

protected void addHiddenCommandParameter(FacesContext facesContext,
                                         UIComponent nestingForm,
                                         String hiddenFieldName)

findNestingForm

protected FormInfo findNestingForm(UIComponent uiComponent,
                                   FacesContext facesContext)
find nesting form
need to be overrideable to deal with dummyForm stuff in tomahawk.


isDisabled

protected boolean isDisabled(FacesContext facesContext,
                             UIComponent uiComponent)

isReadonly

protected boolean isReadonly(FacesContext facesContext,
                             UIComponent uiComponent)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.