nxu
Tag set
Facelet tag handler that exposes an expression as a variable, and makes it possible to cache it.
This is very close to the c:set tag, but allows caching, and the variable is only exposed inside the tag. Note that this tag will not work as expected when used with iteration variables inside a standard table, for instance.
WARNING: the expression evaluation result should be Serializable.
Example:
<nxu:set var="actions" value="#{webActions.getActionsList('SUBVIEW_UPPER_LIST')}" cache="true"> <nxu:dataList var="action" value="#{actions}"> ... </nxu:dataList> </nxu:set>
Tag Information |
Tag Class | None |
TagExtraInfo Class | None |
Body Content | None |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
var | true | false | java.lang.String | Name of the variable that will be set. |
value | true | false | java.lang.String | Expression that will be evaluated to set the attribute value. |
cache | false | false | java.lang.String | Boolean. Flag indicating if the expression should be evaluated when constructing the JSF tree. If true, it is evaluated 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. |
resolveTwice | false | false | java.lang.String | Boolean. Flag indicating if the expression should be evaluated twice when resolving it: if value resolved is a String that still contains EL expressions after the first resolution, a second resolution is done. Set to "false" by default. Available since 5.4.3. |
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.