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.


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 ClassNone
TagExtraInfo ClassNone
Body ContentNone
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
vartruefalsejava.lang.StringName of the variable that will be set.
valuetruefalsejava.lang.StringExpression that will be evaluated to set the attribute value.
cachefalsefalsejava.lang.StringBoolean. 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.
resolveTwicefalsefalsejava.lang.StringBoolean. 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.5.
blockPatternsfalsefalsejava.lang.StringString indicating that some variables in existing context should be "blocked" e.g resolve to null. This is useful when trying to isolate a resolution context. Accepted syntax is a comma separated list of the variables names, accepting character "*" at the end as a wild card. Blocked variabled include the ones exposed via tags c:set, nxu:set, as well as variables exposed by the layout system. Example: "widget, widgetProperty*". Available since 5.6.

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.