nxu
Tag actionListenerMethod


Facelet tag handler that add an action listener to the parent component. Available since 5.3.1.

Parent needs to be an action source for the action listener to be declared on it.

This is useful when declaring several action listeners on the same parent component, and when the order of calls needs to be respected: the action listener method declared on a component is the first one called. So this method makes it possible to add other action listeners before it, without having to declare a class (when using the f:actionListener tag).

Since 5.6, this tag can resolve expressions twice, making it possible to use it with Nuxeo actions configured to reference an EL expression in their definition: first to call action#getLink and then to call the actual action defined by another EL expression.


Example:
<h:commandLink value="Go"> <nxu:actionListenerMethod value="#{myBean.performFirstAction}" /> <nxu:actionListenerMethod value="#{myBean.performSecondAction}" /> </h:commandLink>


Tag Information
Tag ClassNone
TagExtraInfo ClassNone
Body ContentNone
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsefalsejava.lang.StringMethodBinding representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameters, with a return type of void.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.