Project Documentation
Foundation

Summary

Tag name: <s:listener>
UIComponent class: org.apache.myfaces.custom.inputAjax.Listener
Tag class: org.apache.myfaces.custom.inputAjax.ListenerTag
Component type: org.apache.myfaces.Listener
Component family: org.apache.myfaces.Listener

Allows a component to listen for events on another component with AJAX input elements. On is the id of the component you want to listen on. eventType is what happened to the component, for instance "onChange" action is what to do if the event occurs, default is "update". Will be able to call arbitrary javascript functions too. NOTE: eventType and action are NOT implemented yet

Attributes

Name Type Supports EL? Description
action String Yes NOT IMPLEMENTED - Action to take (ie: update, submit, call (call a javascript function))
binding org.apache.myfaces.custom.inputAjax.Listener 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.
eventType String Yes NOT IMPLEMENTED - Type of event (ie: onchange, onclick)
id String Yes Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
on String Yes Id of another component.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.