On Tue, Aug 25, 2009 at 2:45 AM, celestocalculus <
[email protected]> wrote:

>
> I really love the Lift framework. It handles a lot of things for you
> and it makes web programming really easy!
>
> I was reading "The Definitive guide to Lift" though I just finished
> the SiteMap chapter (ie chapter 5), I tried to link to another URL, a
> html document I created in the same directory but I kept getting the
> following error:
>
> Exception occured while processing /next
>
> Message: java.lang.IllegalArgumentException: line 5 does not exist
>        scala.io.Source.getLine(Source.scala:280)
>        scala.io.Source.report(Source.scala:368)
>        scala.io.Source.reportError(Source.scala:355)
>        scala.io.Source.reportError(Source.scala:344)
>        scala.xml.parsing.MarkupParser$class.reportSyntaxError
> (MarkupParser.scala:1113)
> ...


This indicates that there's a problem parsing the XHTML document.  The error
is super-unfriendly, but has been made much more friendly in Lift
1.1-SNAPSHOT.

Please look at the next.html document and run it through a tools to make
sure it's valid XML.


>
>
> Where next.html is the name of the html document.
>
> The Html tag that links is:
> ...
> Link <f:link/>
> ...
>
> The code that controls the snippet is:
> ...
> bind("f", tag,"link" -> SHtml.link("/next", () => println
> ("Linked..."), Text("lint to next")),)
> ...
>
> Can anyone help me with this please? I'll also appreciate it with lots
> of explanations and/or better ways of linking URLs with and without
> maintaining state.
>
> Thanks in advance.
>
> >
>


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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to