On Mon, 2006-01-02 at 18:00 +0100, [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>
Hopefully the improved taglib documentation in the current MyFaces TRUNK
makes this clear. Search this file for "selectManyCheckbox":
http://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/tld/myfaces_html.tld
If the docs still aren't clear enough, please let me know.
Regards,
Simon