Oscar,

Please use Lift 1.1.  You'll get a much more information error message.

Basically, you need to add an entry to SiteMap.

Thanks,

David

On Sat, Nov 21, 2009 at 9:32 AM, Oscar Picasso <oscarpica...@gmail.com>wrote:

> Hi,
>
> I just created a simple project with the maven archetype and tried to add a
> view as explained in the "The Definitive Guide to Lift".
>
> package org.opicasso.two.view
>>
>> import net.liftweb.http.LiftView
>> import scala.xml.NodeSeq
>>
>> class SomeView extends LiftView {
>>
>>     override def dispatch = {
>>       case "show" => doShow _
>>     }
>>
>>     def doShow () : NodeSeq = {
>>       <lift:surround with="default" at="content">
>>           <h1>hello</h1>
>>      </lift:surround>
>>     }
>> }
>>
>
> The Boot class was not changed:
>
>> package bootstrap.liftweb
>>
>> import _root_.net.liftweb.util._
>> import _root_.net.liftweb.http._
>> import _root_.net.liftweb.sitemap._
>> import _root_.net.liftweb.sitemap.Loc._
>> import Helpers._
>>
>> /**
>>   * A class that's instantiated early and run.  It allows the application
>>   * to modify lift's environment
>>   */
>> class Boot {
>>   def boot {
>>     // where to search snippet
>>     LiftRules.addToPackages("org.opicasso.two")
>>
>>     // Build SiteMap
>>     val entries = Menu(Loc("Home", List("index"), "Home")) :: Nil
>>     LiftRules.setSiteMap(SiteMap(entries:_*))
>>   }
>> }
>>
>
> However when trying
> http://localhost:8080/SomeView/show
> I get
> The Requested URL /SomeView/show was not found on this server
>
> Is there something else that needs to be done? Is the url correct?
>
> Oscar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=.
>



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

--

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


Reply via email to