Don't use a List (the spec requires that no conversion happens), use an
array.  The type of array elements should be that of what you want to
store (e.g. Long, OrgPerson).  Provide a converter if it is your own
class (e.g. OrgPerson).

See
http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UISelectMany.html
especially the 3 bullet points in the class description.

[EMAIL PROTECTED] wrote:
> Hi all!
> 
> I'm just trying the SelectManyCheckbox component. What is the best
> Object type the value of the SelectManyCheckbox should point to?
> 
> Should I take a List or a Long[]  or a Object[]? What should be*/
> newPartnerDto.datenarten/*//?
> And how can I retrieve the selected items in my backing bean?
> 
> 
> <h:selectManyCheckbox id="Datenarten" required="true"
> value="#{newPartnerDto.datenarten}">
>         <f:selectItems value="#{queryHelper.datenartContact}"/>
> </h:selectManyCheckbox>
> 
> 
> Regards,
> Andy
> 
> 
> ______________________________________________________________________
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this email in error please notify your
> system manager. This footnote also confirms that this email message has
> been swept for the presence of computer viruses.
> ______________________________________________________________________


-- 
Dave Brondsema
Software Developer
Cornerstone University

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to