Hi,
I solved it on my own!
For those who might be interested in nesting collections into datatables
into editForms:
Just added <t:saveState value="#{stockForm.emplacements}" ></t:saveState>
before the datatable to savestate and it works!
-Eric
Eric Taieb wrote:
>
> Hi,
>
> i have been struggling with this for a few days. if someone could help ?
>
> I have this code in my jsf page:
>
> <f:subview id="empl_stocks">
> <h:form id="editEmplacement">
>
>
> <t:dataTable id="emplacements" var="emplacement" style="margin-top:
> 10px"
> value="#{stockForm.stock.emplacements}" rows="25"
> sortAscending="true" styleClass="scrollerTable table"
> headerClass="standardTable_Header"
> rowClasses="standardTable_Row1,standardTable_Row2"
>
> columnClasses="standardTable_Column,standardTable_Column,standardTable_Column">
>
> <t:column>
> <f:facet name="header">
> <t:commandSortHeader columnName="idEmplacement" arrow="true">
>
> <h:outputText value="#{text['emplacement.id']}" />
> </t:commandSortHeader>
> </f:facet>
> <h:commandLink action="#{emplacementForm.edit_emplacements}"
> value="#{emplacement.idEmplacement}">
> <f:param name="idStockempl" value="#{stockForm.stock.idStock}"
> />
> <f:param name="idEmplacement"
> value="#{emplacement.idEmplacement}" />
> </h:commandLink>
> </t:column>
>
>
>
> <t:column>
> <f:facet name="header">
> <t:commandSortHeader columnName="etagere" arrow="true">
> <h:outputText value="#{text['emplacement.etagere']}" />
> </t:commandSortHeader>
> </f:facet>
> <h:outputText value="#{emplacement.linEtagere.nom}"
> escape="true"/>
> </t:column>
>
> <t:column>
> <f:facet name="header">
> <t:commandSortHeader columnName="espace" arrow="true">
> <h:outputText value="#{text['emplacement.espace']}"
> /><h:outputText value=" %" />
> </t:commandSortHeader>
> </f:facet>
> <h:outputText value="#{emplacement.espace}" escape="true"/>
> </t:column>
>
>
>
>
> </t:dataTable>
> <h:commandLink action="#{emplacementForm.edit_emplacements}"
> value="#{text['emplacement.add']}">
> <f:param name="idStockempl" value="#{stockForm.stock.idStock}"
> />
>
> <f:param name="idEmplacement" value="-1" />
>
> </h:commandLink>
> <h:outputText/><h:outputText/>
> </h:form>
> </f:subview>
>
>
> I have the following faces-config navigation rule:
>
> <navigation-rule>
> <from-view-id>/stockForm.xhtml</from-view-id>
>
> <navigation-case>
>
> <from-outcome>edit_emplacements</from-outcome>
> <to-view-id>/emplacementForm.xhtml</to-view-id>
> <redirect/>
> </navigation-case>
>
> </navigation-rule>
>
>
> When I click the first link (the one in the rows of the datatable it never
> goes to emplacementForm.xhtml page it stays in the same page but resseting
> the fields.
>
> When I click the second link (the one after the datatable) it works fine.
>
> I really don't understand. Am I missing something essential in JSF ?
>
> Thanks or your help!
>
> Cheers,
>
> Eric
>
--
View this message in context:
http://www.nabble.com/Weird-problem-in-JSF-navigation-tf2940043s2369.html#a8250870
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]