Reputation: 144
In my tapestry 5.3 project, I use a form to gather some parameters. One of the parameters is a dropdown-list. I want to enable multi-selection of the items in the dropdown. Hence, the user could select more than one entry from the dropdown before submitting the parameters entered.
I already tried to implement the example in the tapestry wiki (here1), but in vain. It is causing some Java errors during compilation. The methods used in the example do not exist in the tapestry jars I use.
Anyway, I'm stuck with this since weeks. I would be very thankful if anyone could help me.
Upvotes: 0
Views: 1338
Reputation: 27994
Select doesn't support multiple choices, use checklist or pallette instead.
Or you could roll-your-own multiselect
component which is a select
element that supports multiple selections (backed by a collection). You'll likely extend AbstractField to accomplish this.
Upvotes: 3