org.apache.myfaces.custom.submitOnEvent
Class AbstractSubmitOnEvent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.submitOnEvent.AbstractSubmitOnEvent
All Implemented Interfaces:
javax.faces.component.StateHolder

public abstract class AbstractSubmitOnEvent
extends javax.faces.component.UIComponentBase

Attach an event handler to an input element or use a global event handler to submit a form by "clicking" on a link or button

Author:
Mario Ivankovits (imario -at - apache.org)

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
AbstractSubmitOnEvent()
           
 
Method Summary
abstract  java.lang.String getCallback()
          User defined javascript callback function.
abstract  java.lang.String getEvent()
          The event: keypress|keydown|keyup|change|focus|blur|click|mousedown|mouseup|mousemove|mouseover|mouseout|select (Default: keypress)
abstract  java.lang.String getFor()
          The component (commandLink or commandButton) to "click" on
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getFamily, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

AbstractSubmitOnEvent

public AbstractSubmitOnEvent()
Method Detail

getFor

public abstract java.lang.String getFor()
The component (commandLink or commandButton) to "click" on


getEvent

public abstract java.lang.String getEvent()
The event: keypress|keydown|keyup|change|focus|blur|click|mousedown|mouseup|mousemove|mouseover|mouseout|select (Default: keypress)


getCallback

public abstract java.lang.String getCallback()
User defined javascript callback function. This function will be called to decide if the event should trigger the submit. (Default: fire on "Enter")



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