if you have:

val books: List[Book] = ...

def chosenBook(in: Book): Unit = {
... this method will be called when the form is processed
}

SHtml.selectObj[Book](books.map(b => (b, b.name.is)), Empty, chosenBook _)

Hope this helps.

On Thu, Nov 19, 2009 at 7:55 PM, mr najmi <mnajm...@gmail.com> wrote:

> can anyone show me how to fill the dropdown list with the data in the
> database.i want the simplest one,because i didn`t undestand the
> example given in the web and book..
>
> let say we have one table that is book
>
> i want one dropdown that will be fill with the data from this book
>
> thank you for your time
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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