[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
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
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());
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
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:
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"
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
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
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
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
10 matches
Mail list logo