[ 
https://issues.apache.org/jira/browse/TAP5-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679880#action_12679880
 ] 

Thiago H. de Paula Figueiredo commented on TAP5-213:
----------------------------------------------------

By the way, the GenericSelectModel approach suggested by 
http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects (implementing 
SelectModel and ValueEncoder in the same class and relying in a list to do the 
encoding) is so bad that sometimes I want to put a "Thiago does not recommend 
this approach" warning on it.

> Create an easier way to populate List of object to Select component
> -------------------------------------------------------------------
>
>                 Key: TAP5-213
>                 URL: https://issues.apache.org/jira/browse/TAP5-213
>             Project: Tapestry 5
>          Issue Type: Wish
>    Affects Versions: 5.0.15
>            Reporter: Joshua Partogi
>            Assignee: Kevin Menard
>
> Create an easier way to populate List of object to Select component. 
> Currently we must create a class that implement SelectModel and a class that 
> implement ValueEncoder. Perhaps it would be nice if there property in the 
> Select component such as list that corresponds to the list of object to be 
> displayed for the combobox as such:
> <select t:type="Select" t:id="member" model="member" list="members"  />
> and the Page class as such:
> private List<Member> members;
>       public List<Member> getMembers()
>       {
>               return members;
>       }
>       public void setMembers(List<Member> members)
>       {
>               this.members = members;
>       }
>       @SetupRender
>       public void init(){
>               members = dao.getMembers();             
>       }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to