Quantcast

How to implement a dropdown list from the domain class

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How to implement a dropdown list from the domain class

kumudu
Hi..

In my grails project i want to implement a drop down list.
As we define,
 String stage in the domain class,

it generated as a normal text field to input data.
I want to know how define stage as a dropdown list which would contain stage 1, stage 2 as its items.

If can please help me for this

regards
kumudu


Get your new Email address!
Grab the Email name you've always wanted before someone else does!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to implement a dropdown list from the domain class

lucastex
take a look in inList constraint.

[]s,


Lucas Frare Teixeira .·.
- [hidden email]
- blog.lucastex.com
- twitter.com/lucastex


On Tue, Aug 18, 2009 at 9:39 AM, kumudu Samarappuli <[hidden email]> wrote:
Hi..

In my grails project i want to implement a drop down list.
As we define,
 String stage in the domain class,

it generated as a normal text field to input data.
I want to know how define stage as a dropdown list which would contain stage 1, stage 2 as its items.

If can please help me for this

regards
kumudu


Get your new Email address!
Grab the Email name you've always wanted before someone else does!

Loading...