Thanks Arron.
For whatever reason removing the name did help a bit (but only enough to get
the page to display) I dont know why that was the case since I used the name
attribute before and it worked fine (pre b3 struts). I found the cause of my
other error though. It was a scoping issue. I had the form in request scope
and apparently nested doesnt like that. While I dont like putting things in
session scope when I can help it. I guess I have to go with what works for
now.
-Tim

-----Original Message-----
From: Arron Bates [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 12:13 AM
To: Struts Users Mailing List
Subject: RE: Nested:Checkbox


nested tags don't like the "name" attribute, becuase they're getting the
bean
from their parent. In the example, the check is working off the product of
the
iterate tag anyway. I'm betting the following is what you're after...

  <nested:iterate property="associates">
    <nested:checkbox property="selected" />
  </nested:iterate>

...(there was also the closing slash in the checkbox tag, as well as the
closing tag, may have been the issue too). The process of making a bean with
the "id" property, and then the child using that, is more or less what the
nested tags do for free.

Hope this gets you working.
Happy nesting...

Arron.


> Nothing obvious jumps out.  However, have you tried the updated nested jar
that Arron made available a few days ago?  See
http://marc.theaimsgroup.com/?l=struts-user&m=104600916205585&w=2.
> 
> Sri
> 
> -----Original Message-----
> From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 26, 2003 8:11 PM
> To: 'Struts Users Mailing List'
> Subject: Nested:Checkbox
> 
> 1.1b3 Bug?
> I have 
>         <nested:iterate id="assoc" property="associates">
>             <nested:checkbox name="assoc" property="selected"/>
>               </nested:checkbox>
>         </nested:iterate>
> 
> Where associates is the collection in my formbean with each bean in
something like: //interface only
> 
> AssociateVO
>   private boolean selected;
>   public boolean getSelected();
>   public void setSelected( boolean selected );
> 
> And I keep getting this.
> [ServletException in:/jsps/selectAssociates.jsp] No getter method for
property associates[0].selected of bean assoc' I had it as isSelected but I
thought the error was related to that so I changed it to get.
> 
> Yet when I simply do:
>         <nested:iterate id="assoc" property="associates">
>             <html:checkbox name="assoc" property="selected"/>
>               </html:checkbox>
>         </nested:iterate>
> 
> It works just fine.
> 
> Is something wrong with my nested setup?
> I've used the before in older versions so I don't think thats what it is
but
its getting late and I might be blind. >_<
> 
> -Tim
> 
> ---------------------------------------------------------------------
> 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]





---------------------------------------------------------------------
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]

Reply via email to