nxl
Tag subWidget
Facelet tag handler that iterates over sub widgets in a template attached to the widget of type 'template'.
When rendered, some variables are exposed to the resolution context and can be used inside the tag:
- 'widget' or 'widget_n' references the current widget, n being its level in the widgets hierarchy. For instance, the root of all widgets is always referenced as 'widget_0', while 'widget' is updated to the current sub widget value.
- 'widgetIndex' or 'widgetIndex_n' references its index in the layout row list of widgets or in the widget list of sub widgets. It is *not* the sub widget iteration number when iterating over a list of objects.
Example:
<table> <tbody> <nxu:inputList value="#{field_0}" id="#{widget.id}_table" model="model" rendered="#{not empty field_0}"> <nxl:subWidget> <tr> <td class="labelColumn"><h:outputText value="#{messages[widget.label]}" styleClass="labelColumn" /> </td> <td class="fieldColumn"><nxl:widget widget="#{widget}" mode="#{widget.mode}" value="#{model.rowData}" /></td> </tr> </nxl:subWidget> </nxu:inputList> </tbody> </table>
Tag Information |
Tag Class | None |
TagExtraInfo Class | None |
Body Content | None |
Display Name | None |
Attributes |
No Attributes Defined. |
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.