struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sherwin Wang <sherw...@yahoo.com>
Subject Re: De-select sticky options doesn't work
Date Mon, 11 Sep 2006 01:57:54 GMT
FYI.

--- Lan N Phan <lnphan@us.ibm.com> wrote:

>
http://www.mail-archive.com/dev@struts.apache.org/msg24522.html
> 
> I found a work-around for this, but I don't know how
> to post it up. Can 
> you please post it for me?
> 
> Assume that the name of the checkboxes is
> 'myCheckbox'
> 
> What I do is:
> - Do not reset the checkbox(es) in the reset()
> method
> - In the validate() method, retrieve the value of
> 'myCheckbox' by
>         String[] userSelectedCheckboxes = 
> request.getParameterValues("myCheckbox");
>         if (userSelectedCheckboxes == null) {
>                 // we know that the user did not
> select anything
>                 // so we create ActionMessage here,
> and reset the 
> checkboxes
>         }
> It works for me.
> 
> Lan Phan


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message