com.sun.faces.renderkit.html_basic
public class ButtonRenderer extends HtmlBasicRenderer
UICommand as a Button.
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
Modifier and Type | Field and Description |
---|---|
private static Attribute[] |
ATTRIBUTES |
EMPTY_PARAMS, logger
Constructor and Description |
---|
ButtonRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
private static java.lang.String |
getButtonType(javax.faces.component.UIComponent component)
If the component's type attribute is null or not equal
to
reset , submit or button ,
default to submit . |
private static java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> |
getNonOnClickBehaviors(javax.faces.component.UIComponent component) |
private static boolean |
isReset(javax.faces.component.UIComponent component) |
private static boolean |
wasClicked(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String clientId)
Determine if this component was activated on the client side.
|
augmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, getValue, isBehaviorSource, rendererParamsNotNull, setSubmittedValue, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
private static final Attribute[] ATTRIBUTES
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class HtmlBasicRenderer
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
in class javax.faces.render.Renderer
java.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class HtmlBasicRenderer
java.io.IOException
private static boolean wasClicked(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String clientId)
Determine if this component was activated on the client side.
context
- the FacesContext
for the current requestcomponent
- the component of interestclientId
- the client id, if it has been retrieved, otherwise nulltrue
if this component was in fact activated,
otherwise false
private static boolean isReset(javax.faces.component.UIComponent component)
component
- the component of interesttrue
if the button represents a reset
button, otherwise false
private static java.lang.String getButtonType(javax.faces.component.UIComponent component)
If the component's type attribute is null or not equal
to reset
, submit
or button
,
default to submit
.
component
- the component of interestprivate static java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> getNonOnClickBehaviors(javax.faces.component.UIComponent component)
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.