[Lift] radio button problem

2009-11-30 Thread mr najmi
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

[Lift] binding error

2009-11-23 Thread mr najmi
i have one error that is found : scala.xml.NodeSeq required: scala.xml.Node bind("app",html, ^ here is my code: var app = AvailableSlot.findAll() def viewapp(xhtml:NodeSeq):NodeSeq={ var ae = "" var remark = "" def prevSlot()={ }

[Lift] url problem

2009-11-22 Thread mr najmi
dear all, i have one problem in url rewriting..what i want is something like this guest/view?branch=?&date=?...or guest/view/branch/date. my code as below: LiftRules.rewrite.append { case RewriteRequest( ParsePath(List("guest", "view", branch, date),_,_,_),_,_) => RewriteResp

[Lift] how to fill dropdown list with data in the database

2009-11-22 Thread mr najmi
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 t

[Lift] Re: XML Parsing Error: prefix not bound to a namespace

2009-11-18 Thread mr najmi
> >    ) > > Should be: > > >    bind("e",xhtml, > >         "branches" -> SHtml.text(branches,branches=_) > > >    ) > > As it is, the only tag that would be accepted would be "" (the empty string) > > -Ross > > On Nov 17, 2009, at

[Lift] Re: XML Parsing Error: prefix not bound to a namespace

2009-11-18 Thread mr najmi
ranches,branches=_) > > >    ) > > Should be: > > >    bind("e",xhtml, > >         "branches" -> SHtml.text(branches,branches=_) > > >    ) > > As it is, the only tag that would be accepted would be "" (the empty string) > >

[Lift] XML Parsing Error: prefix not bound to a namespace

2009-11-17 Thread mr najmi
hai, i have a problem in liftweb that is XML Parsing Error: prefix not bound to a namespace.. Branch : ^ here is the code Branch : Search class Appointment { def search(xhtml:NodeSeq):NodeSeq={ v