Hi, Josh!

On Thu, Dec 29, 2011 at 5:52 AM, Josh Kamau <[email protected]> wrote:
> Hi guys;
>
> When i have an object say User, that has an association another object say,
> Role, I want to display the list of roles in a dropdown.
>
> Do i have to get my roles and then construct option objects ?
>
> Is there a way the select component construct the options based on the List
> of objects passed through the data provider?
>

The docs about select[1] has some goods examples. I've done some
experiments using JPA[2], maybe it could help as well.

Gilberto

[1] http://click.apache.org/docs/click-api/org/apache/click/control/Select.html
[2] 
http://code.google.com/p/construtor/source/browse/trunk/park-samples/park-jpa/src/main/java/park/web/page/EditVehicle.java

Reply via email to