Does this thread help?

http://groups.google.com/group/liftweb/browse_thread/thread/d95e00b430203fc6/9e7460ebb9489d36

-Ross

On Nov 10, 2009, at 10:40 AM, Ferdinand Chan wrote:

>
> Hi,
>
> If I have an Enumeration, say
>
> object PromotionType extends Enumeration{
>  val PriceDiscount = Value("Price discount")
>  val ComboDiscount = Value("Combo discount")
>  val Freemium = Value("Freemium")
> }
>
> How can I create a HTML select element in a snippet based on this?
>
> I tried something like
>
> "promotionType" -> SHtml.selectObj(PromotionType, Empty,
> userSelectedPromotionType = _ ),
>
> But failed, Would appreciate if someone can help on this.
>
> Thanks
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to