Re: [Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?
> This is all because its not so easy to get cheap Liftweb hosting! ... > or does anyone have a solution for that? > I don’t know how cheap this is going to be once out of beta, but at stax.netthey have lift support. -- 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=.
Re: [Lift] Re: How to "catch" sub-path urls and only render one page?
Something like that yes, but it looks like a lot of repetition. You can try to match like that: case RewriteRequest(ParsePath("page" :: rest, _, _,_), _,_) => and then build your map from the rest list, for example like that: Map() ++ (List("level1", "level2", "level3", "level4") zip rest) this should be equivalent to your code. Apparently we’re not in the same time zone ;-) -- 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=.
[Lift] Re: How to "catch" sub-path urls and only render one page?
Hi Philip, Just add something like that to your Boot.scala // Rewrite some URLs LiftRules.rewrite.prepend(NamedPF("test rewrite") { case RewriteRequest(ParsePath(List("test", stuff1, stuff2), _, _,_), _, _) => RewriteResponse("test_page" :: Nil, Map("stuff" -> stuff1, "other-stuff" -> stuff2)) }) The page test_page will then receive parameters, get them via S.param("stuff"). It’s better not to name your page the same as the URL path fragment ("test") to avoid looping rewrites. Adapt the pattern matching and the RewriteResponse to your parameters. Hope it helps, Thiébaut --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@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=en -~--~~~~--~~--~--~---
[Lift] Re: View List content
Hi Torsten, In your html, you have to use according to how you bind: > def list(xhtml:NodeSeq):NodeSeq = { > elem.flatMap(file => bind("list", xhtml, "item" -> file)) > } > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@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=en -~--~~~~--~~--~--~---
[Lift] Re: Submitting a form and returning results
Hi ben, >def doBind(form: NodeSeq) = { > bind("peopleSearch", form, >"nameToSearchFor" -> search.nameToSearchFor.toForm, >"submit" -> submit("Search For People", performSearch), >"searchResults" -> renderResults(search) >) >} You’re relying on the order of execution in your call to bind; I think it is safe, can some guru confirm? The only thing I can point out is in renderResults: > if (search.nameToSearchFor != "") You should use search.nameToSearchFor.is, but maybe some implicit is already doing that for you. I suppose you’re saving all searches to a database, is that why you’re using a mapped object for PeopleSearch? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@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=en -~--~~~~--~~--~--~---
[Lift] Re: CRUDifier and auto menu generation
On Thu, Sep 10, 2009 at 12:17 PM, Marcin Jurczuk wrote: > Menu(Loc("home", List("index"), "Home")) :: User.sitemap :: > MyModelWithCRUD.menus Hi Marcin, You should use ::: to concatenate the to lists like this: Menu(Loc("home", List("index"), "Home")) :: User.sitemap ::: MyModelWithCRUD.menus I believe this one bites every Lift newcomer… I know it bit me a few days ago ;-) cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@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=en -~--~~~~--~~--~--~---