RE: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread David Friedman
[mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 7:27 PM To: Struts Users Mailing List Subject: Re: html-el:checkbox No Longer Works If Preceded by html-el:form Thanks for your attention to my problem. If there is a bug, what is the get around of my problem? --- Michael Jouravlev <[EM

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Thanks for your attention to my problem. If there is a bug, what is the get around of my problem? --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > This is a helpful advice, I always use "name" > explicitly. But in this > case this is not it. According to FormTag.java > source code: > > === cu

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
This is a helpful advice, I always use "name" explicitly. But in this case this is not it. According to FormTag.java source code: === cut here === // Look up the form bean definition FormBeanConfig formBeanConfig = moduleConfig.findFormBeanConfig(mapping.getName());

RE: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread David Friedman
Since they are different forms and different beans, have you tried using them in the same form but adding the html:select attribute name="SelectUsersForm" ? That way it uses SelectUsersForm.getSelectedUsers[i].isSelected() ? Example: I've mixed fields from different beans inside of the same si

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
I sort of think it is the way I did my SelectUsersForm because the boolean selected is defined in another Java class. Please see the attachments. But, the checkbox worked without any problem if it is not preceded by a form. My struts-config.xml looks like:

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
Would be nice to see your and definitions. On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote: Yes, the second form is defined inside the and also refered in the action mapping. But, the new runtime JSP error is: cannot retrieve definition for form bean null on action /admin/selectUsers.do"

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Yes, the second form is defined inside the and also refered in the action mapping. But, the new runtime JSP error is: cannot retrieve definition for form bean null on action /admin/selectUsers.do" --Caroline --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Make sure that you have refer to a

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
Make sure that you have refer to a form bean in the "selectUsers" action mapping. On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote: Ed, your suggestion makes sense. I have created a second form on the page by adding before the and change the to followed by . The second form is defined in

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Ed, your suggestion makes sense. I have created a second form on the page by adding before the and change the to followed by . The second form is defined inside the and also in the action mapping. This time, I got another kind of JSP runtime error: "cannot retrieve definition for form bean

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Ed Griebel
The reason is that your checkbox really is no longer in the form, so the framework doesn't know where to pull the value from. All of the and tags which create form 'widgets' must be between and . What you probably need to do is to create a second form on the page by adding before the and cha