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 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.
eventType String Yes NOT IMPLEMENTED - Type of event (ie: onchange, onclick)
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.

on String Yes Id of another component.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.