Hi !
I have a problem with the Multibox behaviour. I have checked the online doc but nothing helped me so far... Here is my problem :
My app workflow is : prepareImportAction.do -> Import.jsp -> processImportAction.do
In the prepareImportAction.do, I initialize the "entities" var (of type String[], in session scope), so that the checkboxes are checked by default when the jsp page is displayed : String[] defaultEntities = {"A", "B", "C", "D"}; myform.set("entities", defaultEntities);
In the jsp page, I have a set of : <html:multibox property="entities" value="A"/> <html:multibox property="entities" value="B"/> <html:multibox property="entities" value="C"/> <html:multibox property="entities" value="D"/>
I also have a small javascript that allows the user to select or deselect all checkboxes in one click : function checkAll(field) { var i; for (i=0;i<field.length;i++) { field[i].checked=true; } } (nearly the same for de-selecting all checkboxes)
Now here is my problem. When I de-select all the checkboxes in my jsp page, by hand or by javascript, my processImport.do receives a String[] array containing the entities that were defined in preparaImport.do as default, instead of an empty array. This only happens only when all entities are deselected : if a single one is selected, I get the desired behaviour.
May you help me to understand where I am wrong and why it doesn't work please?
Olivier Croisier
-- CROISIER Olivier Software Engineer Thales IS - ANS [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]