Hi,

I've got a problem with the select tag. I am declaring the select tag like
this:

<ww:select ... name="'affiliateTransport.affiliateCategories'"
list="valueStore.allCategories" ... />

Where affiliateTransport.affiliateCategories represents transport object
which has a getter/setter (affiliateCategories) for a List object and
valueStore.allCategories a getter for a List which contains all selectable
categories.

What I really want is that all the Long objects which are in the
affiliateCategories List (i.e. a Long for ID 1, 2 and 7) are selected when
the multiselectbox is rendered (of course only possible if
valueStore.allCategories returns a List which contains matching IDs, but in
my case it does) and secondly that a Long is correctly treated as a wrapper
for a number and not only handled by executing the toString() method (which
inevitably returns the string "[Ljava.lang.Long..." and not "1", "2" and
"7").

Am I simply using the select incorrectly, is it simply not possible to
supply a list of "preselected" IDs. Isn't it possible to handle Longs and
finally: will multiselect really create a List of selected IDs or will only
one ID be returned no matter how many items are selected.

Thanks in advance,
/Daniel


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to