the solution :
in the <logic:iterate> the "id" must be choosen carefully ... you have to use the same value as "property"
I found the explanation here (/Indexed References/) :
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties


for me :
<html:form action="societeValid">
<logic:iterate id="societes" name="societeForm" property="societes" scope="session" indexId="index">
<html:text name="societes" property="code" indexed="true" />
<html:text name="societes" property="raisonSociale" indexed="true" />
</logic:iterate>
</html:form>


François Richard wrote:

Merry Christmas,

I have got an ActionForm with a collection.
The first synchronization (ActionForm object > form html) works great, on page load.
but, on form submitting, the second synchronization (form html > ActionForm object)doesn't work. the old values are still present.


The ActionForm (SocieteForm) object is stocked in the session.

my jsp :

<html:form action="societeValid">
<logic:iterate id="societe" name="societeForm" property="societes" scope="session" indexId="index">
<html:text name="societe" property="code" indexed="true" />
<html:text name="societe" property="raisonSociale" indexed="true" />
</logic:iterate>
</html:form>


Thanks,

François



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to