I have the following codes in my form -

... (truncated for simplicity) ...
                
                        
                        
                        * select more than once for multiple roles
                
        

UserRole is Enum type -

public enum UserRole {

        ROLE_USER, ROLE_MANAGER, ROLE_ADMIN, 
... (truncated for simplicity) ...

t:multiple="true" works but just for the display and UI layer, when I saved
it, it does not "remember" more than one selection. What should I do? I
looked high and low, scrapping big old Google, found nothing. I read
somewhere that I need to -

1. Need to create a class (option model) that implements OptionModel; to use
as t:model
2. Need to create a class (select model) that extends AbstractSelectModel;
to use as t:value
3. Need to create a class (encoder) that implements ValueEncoder; to use as
t:encoder

But there is no sample codes to explain what I need to write in each
methods.

Could any kind soul/Tapestry guru in here help me?

Thanks.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4304338.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to