Do something like:
val radios = SHtml.radio(List("business", "technical"), Full
(preference.preference_selection), s => whatever.field(s))
bind("form", xhtml,
"options_one" -> radios.apply(0),
"options_two" -> radios.apply(1),
"save" -> SHtml.submit("Submit", submit _)
)
Cheers, Tim
On Nov 30, 9:29 am, mr najmi <[email protected]> wrote:
> hai again..
>
> i try to bind the data from the db in the radio button but have an
> error like this:
>
> overloaded method value bind with alternatives
> (String,net.liftweb.util.Box[(scala.xml.NodeSeq) =>
> scala.xml.NodeSeq],net.liftweb.util.Box[(scala.xml.PrefixedAttribute)
> =>
> scala.xml.MetaData],scala.xml.NodeSeq,net.liftweb.util.Helpers.BindParam*)
> scala.xml.NodeSeq <and>
> (String,scala.xml.NodeSeq,net.liftweb.util.Helpers.BindParam*)
> scala.xml.NodeSeq cannot be applied to
> (java.lang.String,scala.xml.NodeSeq,net.liftweb.util.Helpers.TheBindableBin
> dParam
> [object i.Slot_Time],(String, net.liftweb.http.SHtml.ChoiceHolder
> [String]),net.liftweb.util.Helpers.TheBindableBindParam[object
> i.staff_id],net.liftweb.util.Helpers.TheBindParam)
>
> this is my code:
>
> app.flatMap ({ i =>
> bind("app",xhtml,
> "time" -> i.Slot_Time,
> "slot" -> SHtml.radio(Map("" ->
> i.id).keys.toList,Empty,ae=_),
> "ae" -> i.staff_id,
> "remark" -> SHtml.text(remark,remark=_,"name"-
>
> >"remark"),
>
> )
> })
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.