Type error in Listing 4.5

4 views
Skip to first unread message

rj

unread,
Aug 13, 2010, 2:34:06 PM8/13/10
to The Lift Book
Hi --

I believe there is a type error in the code in Listing 4.5 ("Explicit
View Dispatch")

I have been using Lift 2.1 and I believe that the
object that should be appended should have type:

Either[() => net.liftweb.common.Box[scala.xml.NodeSeq],
net.liftweb.http.LiftView]

So perhaps the line:

RSSView.recent(acctId, authToken)

Should be changed to:
Left(() => Full(RSSView.recent(acctId, authToken)()))

(Or the body of RSSView.recent can be changed...) ?

My apologies if I've missed something...

Thanks for your excellent work!

-Ranjit.

Derek Chen-Becker

unread,
Aug 16, 2010, 5:27:07 PM8/16/10
to the-li...@googlegroups.com
Yup, that was erroneous. I've fixed listing 4.5 and updated section 4.2 to better describe how to do custom View dispatch. A new master.pdf is up on the group page.

Cheers,

Derek


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


Reply all
Reply to author
Forward
0 new messages