[Lift] SiteMaps and multiple menus

2008-09-06 Thread Charles F. Munat
So how would one create a site map and then break it into two or more pieces and show those pieces on different parts of the page? I want one menu across the top of the page for certain pages (home, about, contact, login, etc.), then a general navigation bar down the left side of the page, and

[Lift] Re: Unit tests (JPA tutorial)

2008-09-06 Thread Charles F. Munat
No need, as I fixed the problem. I think it was a problem with PostgreSQL anyway (and specific to my setup -- something weird is going on). Good to know that's in the trace and not something I'm missing -- for future reference. Chas. Derek Chen-Becker wrote: > It actually should show it in th

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Another note, you can put conditionals on whether to show menu items via the If, Test and Unless clauses :) On Sat, Sep 6, 2008 at 11:09 PM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote: > Thanks, I'll add that in. You can also craft a link so that entire > subdirectory trees are permitted based on

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Thanks, I'll add that in. You can also craft a link so that entire subdirectory trees are permitted based on matching the head of the list. Derek On Sat, Sep 6, 2008 at 6:57 PM, Tim Perrett <[EMAIL PROTECTED]> wrote: > > Oh yes of course! > > Ergo, the sitemap should be: > >val entries = Sit

[Lift] Re: Unit tests (JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
It actually should show it in the stack trace. Can you post the whole error log? Derek On Sat, Sep 6, 2008 at 6:43 PM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > > After making some changes to the Book model in the persistence layer of > the tutorial, I get unit test failures on insert. Part

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Tim Perrett
Oh yes of course! Ergo, the sitemap should be: val entries = SiteMap(Menu(Loc("Home", "index" :: Nil , ? ("Home"))), Menu(Loc("Authors", "authors" :: "list" :: Nil, ? ("Author List"))), Menu(Loc("Add Author", "authors" :: "add" :: Nil, ? ("Add Author"), Hi

[Lift] Unit tests (JPA tutorial)

2008-09-06 Thread Charles F. Munat
After making some changes to the Book model in the persistence layer of the tutorial, I get unit test failures on insert. Part of the error message says this: Call getNextException to see the cause. How exactly does one call "getNextException"? I tried yelling it out a few times, but the othe

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread David Pollak
On Sat, Sep 6, 2008 at 5:24 PM, Tim Perrett <[EMAIL PROTECTED]> wrote: > > Cheers Derek. > > One other thing, my understanding is that SiteMap will only allow urls > that are defined in the sitemap to be accessible. Ergo, you need to > add the URL's that are needed to add books and authors into th

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Tim Perrett
Cheers Derek. One other thing, my understanding is that SiteMap will only allow urls that are defined in the sitemap to be accessible. Ergo, you need to add the URL's that are needed to add books and authors into the sitemap right? Is there a way of defining a url in the sitemap without it then

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Charles F. Munat
How nice! Take a little time off and come back to find solutions in the mailbox. Derek, you'll want to do a global search and replace on .html because there are some links in the list and add pages that won't work otherwise. But it seems to be working now. Chas. Tim Perrett wrote: > Hey Dere

[Lift] Re: A favor from Marius

2008-09-06 Thread David Pollak
On Sat, Sep 6, 2008 at 11:59 AM, Marius <[EMAIL PROTECTED]> wrote: > > Hi Dave, > > I just committed it. The only thing I had to do is to remove the tryo > and along with that the flatMap(s => s) call. Indeed this was > swallowing method exceptions. Regarding reflection exceptions they are > alrea

[Lift] Re: A favor from Marius

2008-09-06 Thread Marius
Hi Dave, I just committed it. The only thing I had to do is to remove the tryo and along with that the flatMap(s => s) call. Indeed this was swallowing method exceptions. Regarding reflection exceptions they are already handled correctly as they are transformed by _invokeMethod into a Failure and

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Sorry, here it is: // Set up a site map val entries = SiteMap(Menu(Loc("Home", "index" :: Nil , ?("Home"))), Menu(Loc("Authors", "authors" :: "list" :: Nil, ?("Author List"))), Menu(Loc("Books", "books" :: "list" :: Nil, ?("Book List"))), Menu(Loc(

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread David Bernard
I don't known, but now I could access the site. You're goal is a great extension, and need to up the version to 2.8. If you don't know git or don't have time to prepare a patch send me the whole project, I'll do the merge. Thanks /davidB PS: could we switch the conversation to maven-and-scala m

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Tim Perrett
Hey Derek, Sweet - when I remove the site-map it indeed does work so thats the problem like you say. For the sake of completeness in this thread, can you post the working site-map? Cheers Tim --~--~-~--~~~---~--~~ You received this message because you are sub

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread David Bernard
On Sat, Sep 6, 2008 at 4:58 PM, Jesse Eichar <[EMAIL PROTECTED]> wrote: > > Excuse my typing, my daughter is in one arm so I am working with one > hand. > > Odd I can access the site... Although oddly if I add www it doesn't > work. Maybe make sure that your browser doesn't add it. > > Tell you

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread Jesse Eichar
Ah. Apparently you have to compile twice... Sorry I didn't ready any instructions. On Sep 6, 6:25 pm, Jesse Eichar <[EMAIL PROTECTED]> wrote: > Here is the first errors: > /Users/jesse/dev/repo/maven_scala/src/main/java/scala/maven/ > ScalaRunMojo.java:[66,14] cannot find symbol > symbol  : clas

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread Jesse Eichar
Here is the first errors: /Users/jesse/dev/repo/maven_scala/src/main/java/scala/maven/ ScalaRunMojo.java:[66,14] cannot find symbol symbol : class Launcher location: class scala.maven.ScalaRunMojo /Users/jesse/dev/repo/maven_scala/src/main/java/scala/maven/ ScalaRunMojo.java:[66,14] cannot fin

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Thanks, that works :). I didn't find that in the docs anywhere, would it be possible to add a note on that behavior to Loc or Link's docs? Derek On Sat, Sep 6, 2008 at 9:42 AM, David Pollak <[EMAIL PROTECTED]>wrote: > Trailing slashes in URLs get re-written to index. > > Thus: > >- / -> inde

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread David Pollak
Trailing slashes in URLs get re-written to index. Thus: - / -> index - /foo/ -> foo :: index - /foo -> foo On Sat, Sep 6, 2008 at 8:15 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote: > It doesn't :(. I tried: > > Menu(Loc("Home", new Link("" :: "index" :: Nil, true) , ?("Home"))) > >

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread Jesse Eichar
Excuse my typing, my daughter is in one arm so I am working with one hand. Odd I can access the site... Although oddly if I add www it doesn't work. Maybe make sure that your browser doesn't add it. Tell you what. I will checkout the latest source, make a patch and send it to you. You can lo

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
It doesn't :(. I tried: Menu(Loc("Home", new Link("" :: "index" :: Nil, true) , ?("Home"))) and that didn't work, but this did: Menu(Loc("Home", new Link("index" :: Nil, true) , ?("Home"))) Derek On Sat, Sep 6, 2008 at 8:41 AM, Marius <[EMAIL PROTECTED]> wrote: > > I wonder if something like

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread David Bernard
I can't access http://pragmaticdesign.net/maven-scala-plugin-site/index.html On Sat, Sep 6, 2008 at 4:45 PM, David Bernard <[EMAIL PROTECTED]> wrote: > Hi, > > Contributions are welcome (send me a patch, if possible provide the > doc for the feature). > FYI : > * the latest source are at > http:/

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread David Bernard
Hi, Contributions are welcome (send me a patch, if possible provide the doc for the feature). FYI : * the latest source are at http://github.com/davidB/maven-scala-plugin/tree/master (svn is no more used) * I started (today) a new mailing list about maven and scala http://groups.google.com/group/

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Marius
I wonder if something like Menu(Loc("Home", Nil, "Home")) does the trick (I haven't tried it). If not it probably should IMHO ... with some small changes. Br's, Marius On Sep 6, 5:31 pm, "Derek Chen-Becker" <[EMAIL PROTECTED]> wrote: > OK, removing ".html" from the SiteMap entries fixed it. The

[Lift] Re: A favor from Marius

2008-09-06 Thread Marius
Sure thing. I'll do it either today or tomorrow morning. On Sep 6, 5:26 pm, "David Pollak" <[EMAIL PROTECTED]> wrote: > Marius, > > I'm beyond swamped between now and Wednesday afternoon getting ready for > DemoJam. > > In LiftSession.findAttributeSnippet, the invocation of the found method is >

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
OK, removing ".html" from the SiteMap entries fixed it. The only thing I can't figure out is how to make it so that if someone goes to " http://foo.com/";, they get served "http://foo.com/index";. I know I can hack it with the dispatch functions, but is there a way to do it via SiteMap? Derek On

[Lift] A favor from Marius

2008-09-06 Thread David Pollak
Marius, I'm beyond swamped between now and Wednesday afternoon getting ready for DemoJam. In LiftSession.findAttributeSnippet, the invocation of the found method is surrounded by a tryo... it turned out that this is swallowing any exceptions that may be generated by either attempting to invoke or

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Aha! RequestState.testLocation is returning a Right(Empty) on any request. If I comment out my SiteMap setup in Boot, then everything loads fine, but obviously then I don't have a menu. My menu items currently have ".html" on the path ends, so I'll try removing those and see what happens. Derek O

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread David Pollak
Please try /index On Sat, Sep 6, 2008 at 7:14 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote: > Actually, just "/" fails to process the index.html file. It just returns > the raw XML. I didn't know about that recommendation, but it seems in this > case that something else is going on. > > Derek >

[Lift] Re: Scripting and Maven scala plugin

2008-09-06 Thread David Pollak
Jesse, I don't speak for DavidB, the Maven Scala plugin maintainer, but I certainly think this is a feature I'd like to see. :-) Thanks, David On Sat, Sep 6, 2008 at 7:08 AM, Jesse Eichar <[EMAIL PROTECTED]> wrote: > > Hi, > > Inspired by the GMaven plugin I have taken the maven-scala plugin a

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Actually, just "/" fails to process the index.html file. It just returns the raw XML. I didn't know about that recommendation, but it seems in this case that something else is going on. Derek On Sat, Sep 6, 2008 at 7:59 AM, David Pollak <[EMAIL PROTECTED]> wrote: > Are you making a request on /

[Lift] Scripting and Maven scala plugin

2008-09-06 Thread Jesse Eichar
Hi, Inspired by the GMaven plugin I have taken the maven-scala plugin and added a new Scripting Goal. It allows you to inline scala directly into a pom or execute a scala script from another file. In order to make it more applicable for the build process the MavenProject and Log can be optional

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread David Pollak
Are you making a request on /foo.html or on /foo? I strongly recommend against /foo.html Marius wrote: > > On Sep 6, 12:04 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: > >> FYI - when I ctrl-c to stop jetty, I see this: >> >> 2008-09-06 10:03:27.331::INFO: Shutdown hook executing >> DEBUG - Des

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Some progress on debugging. It appears that for some reason the request isn't matching the dispatch table here: http://github.com/dpp/liftweb/tree/master/lift/src/main/scala/net/liftweb/http/LiftServlet.scala#L187 I'm going to dig into LiftRules a bit and see if I can figure out why, but I'm hitt

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
I swear this was working before! I just did a "git pull" to refresh my liftweb code and now I'm getting the exact same thing. It definitely appears that the LiftFilter isn't processing the XML but rather just chaining the request so that the raw XML is served up. I'm going to debug a little into Li

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Marius
On Sep 6, 12:04 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: > FYI - when I ctrl-c to stop jetty, I see this: > > 2008-09-06 10:03:27.331::INFO: Shutdown hook executing > DEBUG - Destroyed servlet Why the above dump indicates crashing on ctrl-c ? Looks to me like a normal dump when stopping the

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Tim Perrett
FYI - when I ctrl-c to stop jetty, I see this: 2008-09-06 10:03:27.331::INFO: Shutdown hook executing DEBUG - Destroyed servlet So its certainly crashing but with no stack trace or anything!!! Cheers Tim --~--~-~--~~~---~--~~ You received this message becaus

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Tim Perrett
I can validate that this is happening - seeing this here too. I've built lift from my local trunk (which is bang up to date), and when running mvn -U jetty:run I firstly get a whole bunch of [WARNING] output from the YUI compressor moaning about datePicker.css. However, thats just CSS so wouldnt

[Lift] Re: tags not replace (new JPA tutorial)

2008-09-06 Thread Marius
Most likely an exception somewhere. Can you check container's logs? Br's, Marius On Sep 6, 5:53 am, "Charles F. Munat" <[EMAIL PROTECTED]> wrote: > Ah, sadly, it's more than that. None of the lift tags is being replaced. > I can get jetty to run, and it will respond at localhost:9090, but this >