nxu
Tag methodResult
Facelet tag handler that exposes the result of a method binding as a variable. Note that this tag is deprecated since Seam 2.0 handles method resolution natively. The tag nxu:set can be used instead.
This is helpful to avoid having to define a getter on a class to get some rendering info. This is comparable to f:param or ui:param tags, but using method bindings instead of value bindings.
WARNING : the variable is only exposed inside the tag: this is a different behaviour than the c:set tag that can be closed immediately.
Example:
<nxu:methodResult name="actions" value="#{webActions.getActionsList('SUBVIEW_UPPER_LIST')}"> <nxu:dataList var="action" value="#{actions}"> ... </nxu:dataList> </nxu:methodResult>
Tag Information |
Tag Class | None |
TagExtraInfo Class | None |
Body Content | None |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
name | true | false | java.lang.String | Name of the variable that will be set. |
value | true | false | java.lang.String | Method binding that will be invoked to set the attribute value. |
immediate | false | false | java.lang.String | Boolean. Flag indicating if the method should be invoked when constructing the JSF tree. If true, the method is only once and not called again when resolving other expressions using the result variable. However, the tag will not work as expected when using request variables in its expression (like table variable). Set to "false" by default. |
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.