org.apache.myfaces.wap.def
Class CommandButton

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UICommand
              extended byorg.apache.myfaces.wap.def.CommandButton
All Implemented Interfaces:
javax.faces.component.ActionSource, javax.faces.component.StateHolder

public class CommandButton
extends javax.faces.component.UICommand

This control can by rendered as a graphical button(PDA) or item in menu(mobile phones). The final view is depend on client browser. This element must be a childern of UIForm component. Decode Behavior Obtain the Map from the "requestParameterMap" property of the ExternalContext. If the value in theMap for the value of the "clientId" property of the component is not null, get the value of the "type" attribute, and convert it to lower case. If the result is equal to the String "reset" (without the quotes), return fromdecode(). Otherwise, create ajavax.faces.event.ActionEvent around the component, and pass it to the queueEvent() method of the component, which must be an instance ofUICommand. Encode Behavior Wml don't contain submit button tag. This element is rendered using "do" and "go" wml tags. If is the button attribute type set to "reset", then is command button rendered as "do" and "setvar" tags. For reset is not needed reload the page.

Version:
$Revision: 1.1 $ $Date: 2004/12/30 09:37:25 $ $Log: CommandButton.java,v $ Revision 1.1 2004/12/30 09:37:25 matzew added a new RenderKit for WML. Thanks to Jirí Žaloudek
Author:
Jiri Zaloudek (latest modification by $Author: matzew $)

Field Summary
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
CommandButton()
           
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getFamily, getValue, isImmediate, queueEvent, removeActionListener, restoreState, saveState, setAction, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandButton

public CommandButton()