What I've done is to make the toString return the id of the object. It's not
perfect, but it solves your issue.

Regards

Morten Matras
Consultant Blob Communication ApS, Odense, Denmark

2009/4/28 <[email protected]>

>
> Hi,
>
> In the documentation of the <options-collecton> tag there is the following:
>
> would cause the container to look for a Collection called "cats"
> across the various JSP scopes and set it on the tag. The tag
> would then proceed to iterate through that collection calling
> getCatId() and getName() on each cat to produce HTML option tags.
>
> In my case let's say I'm displaying a collection of Cat instances. When the
> tag (through the option tag)
> determines if each option is selected it seems to be using the toString()
> method of the selected cat and
> comparing this to the getCatId() value.
>
> Should it be like that? Any ideas on how to work around this?
>
> -dennis
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


-- 
 Morten Matras
 Consultant
 Blob Communication ApS
 Svendsagervej 42
 DK-5240 Odense NĂ˜
 P: (+45) 76 6-5-4-3-2-1
 W: www.blobcom.com
 E: [email protected]
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to