Yes, i have tries it.
### it works !
def handleBook(id: String) {
book.type_id(id.toLong)
Log.infoF _
}
###
### it doesn't work !
def handleBook(id: String) {
book.type_id(id.toLong) // Log.infoF _
}
###
I'm confused with this !
:)
Cheers,
Neil
On Oct 30, 11:17 pm, bob <[email protected]> wrote:
> interesting! have you tried /* Log.infoF _ */ ?
>
> On Oct 30, 10:31 am, "Neil.Lv" <[email protected]> wrote:
>
> > Hi all,
>
> > There is a question that about the SHtml.select method.
>
> > ### This code will be error ?
> > def handleBook(id: String) {
> > book.type_id(id.toLong)
> > //Log.infoF _
> > }
>
> > bind("book", xhtml,
> > "type" -> select(Book.getBooks, Empty, handleBook _)
> > ...
> > )
> > ###
>
> > If i call the Log.infoF _ in the end of the hadleBook method, and it
> > will be work correctly.
> > ###
> > def handleBook(id: String) {
> > book.type_id(id.toLong)
> > Log.infoF _
> > }
> > ###
>
> > I don't know why comment the last statement the app will be error,
> > and the error message will
> > be like this, and somethings the erorr message will not clear, and
> > can't find where the error occurs.
> > ---> Error message:
> > ((scala.xml.Node) => Boolean)scala.xml.NodeSeq (and) (Int)
> > scala.xml.Node not be
> > applied to Long.
> > Or
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited
> > with an er
> > ror: -2147483648(Exit value: -2147483648)
>
> > Thanks for any suggestion!
>
> > Cheers,
> > Neil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---