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">

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

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


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,
Post Details
Added on Jun 2 2013