[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Christian Bauer
christian at hibernate.org
Tue Aug 21 09:13:44 EDT 2007
User: cbauer
Date: 07/08/21 09:13:44
Modified: doc/reference/en/modules conversations.xml
Log:
Documentation for #{uiComponent}
Revision Changes Path
1.34 +19 -0 jboss-seam/doc/reference/en/modules/conversations.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: conversations.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/conversations.xml,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- conversations.xml 19 Jun 2007 05:55:48 -0000 1.33
+++ conversations.xml 21 Aug 2007 13:13:43 -0000 1.34
@@ -848,6 +848,25 @@
...
}]]></programlisting>
+ <para>
+ Alternatively, you can access the JSF component tree through the implicit <literal>uiComponent</literal>
+ handle. The following example accesses <literal>getRowIndex()</literal>of the
+ <literal>UIData</literal> component which backs the data table during iteration, it prints
+ the current row number:
+ </para>
+
+ <programlisting><![CDATA[
+<h:dataTable id="lineItemTable" var="lineItem" value="#{orderHome.lineItems}">
+ <h:column>
+ Row: #{uiComponent['lineItemTable'].rowIndex}
+ </h:column>
+ ...
+</h:dataTable>]]></programlisting>
+
+ <para>
+ JSF UI components are available with their client identifier in this map.
+ </para>
+
</section>
</chapter>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list