struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <brenmcgu...@tariffenet.it>
Subject Re: Problem whith a select
Date Mon, 28 Aug 2006 07:50:28 GMT
José María Tristán ha scritto:
> Hello:
>
> 	I have a select where i have select one value. When I submit the form the
> method get load this value. But, if after, I not select any value the method
> set don't is call.
>   

Uh, I changed my mind. Probably you have a session form-bean. The
"setMarcas" method, if I am not wrong, is not called when no item is
selected, simply because no parameter "marcas" is posted at all by the
browser.
Try to override the "reset" method of your form bean by setting the
"marcas" as null (or as an empty array, as you prefer).

Ciao
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message