Project Documentation


Tag name: <s:submitOnEvent>
UIComponent class: org.apache.myfaces.custom.submitOnEvent.SubmitOnEvent
Tag class: org.apache.myfaces.custom.submitOnEvent.SubmitOnEventTag
Component type: org.apache.myfaces.SubmitOnEvent
Component family: org.apache.myfaces.SubmitOnEvent
Renderer type: org.apache.myfaces.SubmitOnEvent
Renderer class: org.apache.myfaces.custom.submitOnEvent.SubmitOnEventRenderer

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


Name Type Supports EL? Description
binding String Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
callback String Yes User defined javascript callback function. This function will be called to decide if the event should trigger the submit. (Default: fire on "Enter")
event String Yes The event: keypress|keydown|keyup|change|focus|blur|click|mousedown|mouseup|mousemove|mouseover|mouseout|select (Default: keypress)
for String Yes The component (commandLink or commandButton) to "click" on
id String Yes An identifier for this particular component instance within a component view.

The id must be unique within the scope of the tag's enclosing NamingContainer (eg h:form or f:subview). The id is not necessarily unique across all components in the current view

This value must be a static value, ie not change over the lifetime of a component. It cannot be defined via an EL expression; only a string is permitted.

rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.