You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Xavier Brunel <xa...@profileup.com> on 2001/11/19 16:49:43 UTC

Pb with un-selection of multibox or select multiple objects

Hi all,

I have a problem with objects such a "multibox", and "select multiple" :
I cannot un-select those objects after having set them in a prior action.

Let see somme details:

I go to a page named "Fill" to fill a form containing "multibox" and "select
multiple" struts tags.
I choose several values in each form objects then I submit.
I then go to another page where I have sereval navigation options,
one of them is to modify the previous form I filled.
When I choose modify, I go to the "Fill" form correctly initialized with the
previous values,
I then deselect every "multiple select" or "multibox" object and submit: my
form is not updated by those
un-selection.(????)
Everything is OK if I choose to CHANGE my selection, but nothing is taken
into account if I UNSELECT all.

Do you have an explaination to this, and an solution to bypass this ????

Xavier BRUNEL


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Pb with un-selection of multibox or select multiple objects

Posted by Andras Balogh <an...@reea.net>.
Hi,

Your select multiple if NONE of the values are selected is not getting
to your ActionForm.(same thing happens in case of a Checkbox)
You should set you String[] variable to null (or empty ??) in the reset
method.


Andras.



On Mon, 2001-11-19 at 17:49, Xavier Brunel wrote:
> Hi all,
> 
> I have a problem with objects such a "multibox", and "select multiple" :
> I cannot un-select those objects after having set them in a prior action.
> 
> Let see somme details:
> 
> I go to a page named "Fill" to fill a form containing "multibox" and "select
> multiple" struts tags.
> I choose several values in each form objects then I submit.
> I then go to another page where I have sereval navigation options,
> one of them is to modify the previous form I filled.
> When I choose modify, I go to the "Fill" form correctly initialized with the
> previous values,
> I then deselect every "multiple select" or "multibox" object and submit: my
> form is not updated by those
> un-selection.(????)
> Everything is OK if I choose to CHANGE my selection, but nothing is taken
> into account if I UNSELECT all.
> 
> Do you have an explaination to this, and an solution to bypass this ????
> 
> Xavier BRUNEL
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>