Re: Help with checkboxes and nested
In order to detect boxes that are unchecked, your form should set the corresponding property's value to false in its reset() method. See http://struts.apache.org/userGuide/struts-html.html#checkbox . hth, Hubert On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hello there! I have a form with a nested object and I'm using struts nested tags to display it. One of the properties of the nested pojo is a checkbox. Now, handling checkboxes with struts is already a pain, and I figured that nested checkboxes are even worse. Here's the deal. If the user unchecks some of the checkboxes, as the browser doesn't send the value, it keeps the old checked value in the property of the pojo. How could I solve this? any ideas please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with checkboxes and nested
Hubert Rabago wrote: In order to detect boxes that are unchecked, your form should set the corresponding property's value to false in its reset() method. See http://struts.apache.org/userGuide/struts-html.html#checkbox . hth, Hubert On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hello there! I have a form with a nested object and I'm using struts nested tags to display it. One of the properties of the nested pojo is a checkbox. Now, handling checkboxes with struts is already a pain, and I figured that nested checkboxes are even worse. Here's the deal. If the user unchecks some of the checkboxes, as the browser doesn't send the value, it keeps the old checked value in the property of the pojo. How could I solve this? any ideas please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well I guess you haven't read the question. This is a nested checkbox, in ordinary checkboxes I use reset with no problem, but how to do this in a nested component - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with checkboxes and nested
What does your form look like? On Thu, 24 Feb 2005 11:21:36 -0300, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hubert Rabago wrote: In order to detect boxes that are unchecked, your form should set the corresponding property's value to false in its reset() method. See http://struts.apache.org/userGuide/struts-html.html#checkbox . hth, Hubert On Thu, 24 Feb 2005 11:13:05 -0300, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hello there! I have a form with a nested object and I'm using struts nested tags to display it. One of the properties of the nested pojo is a checkbox. Now, handling checkboxes with struts is already a pain, and I figured that nested checkboxes are even worse. Here's the deal. If the user unchecks some of the checkboxes, as the browser doesn't send the value, it keeps the old checked value in the property of the pojo. How could I solve this? any ideas please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well I guess you haven't read the question. This is a nested checkbox, in ordinary checkboxes I use reset with no problem, but how to do this in a nested component - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with checkboxes and nested
I've found the same problem in the past. No solution found using checkboxes...Solved using a combobox with yes and no value...Some people I know said there's a Struts problem submitting checkboxes within nested tags...honestly I admit I don't look for a better solution ;) Hope this help Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]