You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mathieu Grimault <gr...@presidence.univ-nantes.fr> on 2004/04/09 16:19:28 UTC
[50% SOLVED] Resetting Multibox problems
I've found a way of bypassing the problem by using a logic:equal and
logic:notEqual inside the jsp and testing my row value. This way, the
display is correct... it's just not clean.
New jsp :
<logic:equal name="uniteEnseignement" property="temoinSession2" value="O">
<input type="checkbox" name="valeurs" value="<bean:write
name="uniteEnseignement" property="code"/>" checked="checked">
</logic:equal>
<logic:notEqual name="uniteEnseignement" property="temoinSession2"
value="O">
<input type="checkbox" name="valeurs" value="<bean:write
name="uniteEnseignement" property="code"/>">
</logic:notEqual>
Old jsp :
<html:multibox property="valeurs">
<bean:write name="uniteEnseignement" property="temoinSession2"/>
</html:multibox>
----- Original Message -----
From: "Mathieu Grimault" <gr...@presidence.univ-nantes.fr>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, April 09, 2004 3:10 PM
Subject: Resetting Multibox problems
Re-Hello !
In addition to my question, i've seen that spy the reset() and constructor
call of my actionForm :
life cylcle :
- constructor -> first access on the jsp
- reset -> first access on the jsp
- display of the jsp and submit
- constructor -> after submiting
- reset -> after submiting
- the form is transmitted to an action who forward to another jsp
Each time i came back to the jsp :
- reset -> each time a leave the jsp
As i mention before, i used combo box. They are correctly initalised the
first time but never changed whatever the reset method does (normally) and
whatever is set in the String[]...
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org