Re: De-select sticky options doesn't work

2006-09-10 Thread Sherwin Wang
FYI. --- Lan N Phan <[EMAIL PROTECTED]> 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 d

Re: De-select sticky options doesn't work

2006-09-03 Thread Sherwin Wang
Thanks for the tip. I tried Struts 1.3.5 beta, the latest, with the reset in the form-property. It resets the options when the form element doesn't present in the request. However, as I expected, the solution fails if the dyna form bean is used by multiple requests. For instance, if I navigate to

Re: De-select sticky options doesn't work

2006-09-03 Thread Sherwin Wang
We are using Struts 1.2.9. I'll try 1.3 reset property later. No, we are not using DynaXForms. Why DynaXForms supports property reset, assuming it does, but ActionForm doesn't? To me, ActionForm can be converted to DynaXForms by reflection. Whatever way used in DynaXForms can be also used in Actio

Re: De-select sticky options doesn't work

2006-09-02 Thread Paul Benedict
I am jumping in here late in the game. But if Struts 1.3 adds the new reset property, doesn't this get you what you want? Or is it because it only covers DynaXForms which you're not using? Paul Sherwin Wang wrote: For the case you described, "looping through form bean properties to set or res

Re: De-select sticky options doesn't work

2006-09-02 Thread Sherwin Wang
For the case you described, "looping through form bean properties to set or reset their values" will not work. But the solution can be improved to cover this case. Let's keep the "looping for request parameters to set form bean properties" unchanged. In HTML tag implementation add logic to create

Re: De-select sticky options doesn't work

2006-09-01 Thread Wendy Smoak
On 9/1/06, Wang, Sherwin X. <[EMAIL PROTECTED]> wrote: Could this approach resolve this problem so that make Struts more powerful? Instead of "looping through parameters in a request" and setting the form bean properties, could the logic "loop through the form bean properties" and set them by re

RE: De-select sticky options doesn't work

2006-09-01 Thread Wang, Sherwin X.
Thanks, Sherwin -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, September 01, 2006 4:04 PM To: Struts Developers List Subject: Re: De-select sticky options doesn't work On 9/1/06, Wang, Sherwin X. <[EMAIL PROTECTED]> wrote: > Since the framew

Re: De-select sticky options doesn't work

2006-09-01 Thread Wendy Smoak
On 9/1/06, Wang, Sherwin X. <[EMAIL PROTECTED]> wrote: Since the framework fails in this case, I have to reset the properties in the application as a work around. Shouldn't Struts be enhanced to support this capability if there wasn't one? http://struts.apache.org/1.x/struts-taglib/faq.html#ch

De-select sticky options doesn't work

2006-09-01 Thread Wang, Sherwin X.
Hi Struts dev team, I am using Struts 1.2.9 and html:select and html:optionsCollection tags to render a "sticky" select box. It works great except for one case. If de-select all pre-selected options using control-click, all options are still selected after the page comes back. In RequestUtils.jav