Skip to Main Content

JSF 1.2 DataTable management during view creation

NicoJun 2 2013
Hi all, I have a question on how JSF 1.2 manages DataTable exactly. Consider this table (suppose that tableList.persone has 3 items):

<h:dataTable id="tablePersone" value="#{tableList.persone}" var="item">

<h:column>
<f:facet name="header">
<h:outputText value="STATO" />
</f:facet>
<h:inputText value="#{item.stato}" />
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="CODICE" />
</f:facet>
<h:inputText value="#{item.codice}" />
</h:column>

</h:dataTable>


I read that jsf iterates over the items of the list during the render response phase, in fact, "item" is not available when the view is built.
Does it means that jsf does not duplicate the content of the table for each item in the list when creating the tree component?
In the table above, each row has 2 inputText. If jsf does not create a couple of inputText objects for each row, how jsf handles all the 6 request parameters when the form is submitted (in particular during the apply request values phase).

Thanks a lot,
Nico
Comments
Post Details
Added on Jun 2 2013
0 comments
1,060 views