[Lift] Re: URL Rewriting - 'nested' ParsePath?

2010-02-06 Thread philip
Hi Alex, I am making a CMS, so I had to get database content for any page up to 4 levels under the URL http://site/page/leve1/level2/etc ... Here is some example code from this: class Boot { def selectTemplate(template: String, subPages: List[String]): RewriteResponse = { var levels

[Lift] Re: OSGi example, what to do to make it run?

2010-02-05 Thread philip
Hi, I want to explain my desire for OSGi in Lift, I understand that Lift being split into modules and being able to load different modules is desirable. However what I want to be able to do is to dynamically compile Scala code, load into OSGi and use it from my liftweb application. I don't want

[Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread philip
) CompleteMenu(tmp.lines.toList ::: menu.toList) } } LiftRules.setSiteMap(sitemap) Philip On 11月25日, 上午6時42分, David Pollak feeder.of.the.be...@gmail.com wrote: Ross, You can dynamically add child elements right now: new SiteMap(menuItems) {   override  def buildMenu(current: Box[Loc

[Lift] Re: Change to support dynamic top level menu items

2009-11-22 Thread philip
Essential for the CMS I am programming as the user needs to be able to define the menu structure. On 11月22日, 上午4時46分, Ross Mellgren dri...@gmail.com wrote: In the recent thread, a couple people asked for the ability to create dynamic menu items per request from the database. David suggested

[Lift] Re: Menu generated from database?

2009-11-21 Thread philip
, Nil)) result.toList ::: super.supplimentalKidMenuItems } } def menu: List[Menu] = { Menu(Loc(home, List(index), Home)) :: Menu(DynMenuLoc(Dynamic Menu, Link(List(dynamic), true, / dynamic), Dynamic Menu)) :: Nil } Thanks, Philip On 11月21日, 下午2時56分, Ross Mellgren dri

[Lift] Re: Menu generated from database?

2009-11-21 Thread philip
[DynMenuItem] with IdPK { def getSingleton = DynMenuItem object label extends MappedString(this, 32) object link extends MappedString(this, 255) } I can post the full example code on github if it'd help, also. -Ross On Nov 20, 2009, at 10:37 PM, philip wrote: Hi David, Really

[Lift] Re: Menu generated from database?

2009-11-21 Thread philip
example code on github if it'd help, also. -Ross On Nov 20, 2009, at 10:37 PM, philip wrote: Hi David, Really looking forward to this - I spent a day on this with absolute failure. Philip On 11月20日, 上午1時56分, David Pollak feeder.of.the.be...@gmail.com wrote: Philip list

[Lift] Re: H2 Database?

2009-11-21 Thread philip
Hi, I am using H2 database without any problems so far. Just change the connection, use the right maven build or jars. val driverName: String = Props.get(db.driver) openOr org.h2.Driver val dbUrl: String = Props.get(db.url) openOr jdbc:h2:tcp://localhost/~/databasename On

[Lift] Re: Menu generated from database?

2009-11-20 Thread philip
Hi David, Really looking forward to this - I spent a day on this with absolute failure. Philip On 11月20日, 上午1時56分, David Pollak feeder.of.the.be...@gmail.com wrote: Philip list, I've had it on my to-do list to write up an example... and haven't... but... In your Loc, you can override def

[Lift] Re: Menu generated from database?

2009-11-19 Thread philip
log message. Maybe I have to subclass SiteMap? Can you point me in the right direction? Thanks, Philip On 10月21日, 下午11時20分, David Pollak feeder.of.the.be...@gmail.com wrote: I owe the list example code to do this... maybe tomorrow. On Wed, Oct 21, 2009 at 6:26 AM, philip philip14

[Lift] How to output un-escaped content from the database

2009-11-17 Thread philip
!, Philip -- 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

[Lift] How to catch sub-path urls and only render one page?

2009-11-16 Thread philip
go to test.html Also in test.html my snippet needs to know the subpath, so it can pull some content from the database. Any help? Thanks! Philip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: How to catch sub-path urls and only render one page?

2009-11-16 Thread philip
more then 4 levels deep path. Philip On 11月16日, 下午10時30分, Thiébaut Champenier tchampen...@gmail.com wrote: 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

[Lift] Re: How to catch sub-path urls and only render one page?

2009-11-16 Thread philip
its not working now and i don't know why. On 11月17日, 上午11時13分, philip philip14...@gmail.com wrote: Hi Thiebaut, Thanks. So for a 4 level page system I do.    LiftRules.rewrite.prepend(NamedPF(inner pages)    {      case RewriteRequest(ParsePath(List(page, level1

[Lift] Re: How to catch sub-path urls and only render one page?

2009-11-16 Thread philip
Oh, working now - my new template was not in the Menu, so it was not being processed by Lift, added it to the def menu: List[Menu] and ok now. On 11月17日, 上午11時13分, philip philip14...@gmail.com wrote: Hi Thiebaut, Thanks. So for a 4 level page system I do.    LiftRules.rewrite.prepend

[Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-16 Thread philip
easy to get cheap Liftweb hosting! ... or does anyone have a solution for that? Thanks, Philip -- 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

[Lift] Menu generated from database?

2009-10-21 Thread philip
Hi, How can I get a Liftweb menu to be generated from database content? Alternatively, can the menu come from a XML datasource? could I load/ serialize from that? Could it change dynamically at any time? Thanks, Philip --~--~-~--~~~---~--~~ You received

[Lift] Cannot get YUI text editor to work from Liftweb in Firefox or Google Chrome, works in IE

2009-10-14 Thread philip
/editor_adv_editor.html It does not make any sense, it runs fine in Internet explorer 8, but does not work in Firefox or Google Chrome. Is it some javascript from Liftweb interfering with YUI? Has anyone had any success or failure with this case? Thanks, Philip

[Lift] Beginner question, how to run Javascript from function?

2009-09-29 Thread philip
Hi, I want to run some javascript to initialize my component which is a YUI richtexteditor. Can help? This seems to be the wrong way to do it. Thanks, Philip class RichEditor { def show = form method=post action=# id=form1 textarea id=editor name=editor rows=20 cols=75

[Lift] CMS for Lift?

2009-08-16 Thread philip
Hi, Has anyone made a CMS for Liftweb? or I should say, in liftweb. Thanks, Philip --~--~-~--~~~---~--~~ 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

[Lift] Re: JPA and Record

2008-12-13 Thread philip
Hi Derek, Is there any demo code for this NEW record method of accessing/using database? Is there any docs on it? I want to understand it but don't know where to start - I know there is the other legacy way to do it and JPA. Thanks, Philip On Nov 26, 2:24 am, Derek Chen-Becker dchenbec

[Lift] Re: Why JPA?

2008-12-10 Thread philip
B's changes. 2. Couldn't navigate lazy associations on subsquent call-backs without re-loading from the database Thanks, Philip On Dec 10, 4:25 am, Derek Chen-Becker [EMAIL PROTECTED] wrote: I think you misunderstand the lifecycle of a stateful snippet. A stateful snippet has specific techniques

[Lift] Re: Why JPA?

2008-12-09 Thread philip
. It then makes sense for me to use JPA, I'll reverse engineer first from mysql then convert from Java to Scala and use the JPA example project as a starting point, I can do the project in waterfall steps. Thanks, Philip On Dec 8, 2:01 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote: I use request

[Lift] Re: Why JPA?

2008-12-07 Thread philip
in a persistence context is violated. You may also run into a lazy loading exception if you hit an uninitialized association on the detached instance dur- ing the merge. Avoid merging if at all possible. Thanks, Philip On Dec 6, 10:47 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote: Here

[Lift] Re: The first Lift tutorial: a ToDo application

2008-12-06 Thread philip
Its great! reading through it now. (sorry my comment isn't anymore helpful than that) On Dec 6, 9:09 am, David Pollak [EMAIL PROTECTED] wrote: Folks, I've got a first draft of the first Lift tutorial: a ToDo application. The application demonstrates creating a new Lift project, creating a

[Lift] Re: a plea for documentation

2008-12-04 Thread philip
, sure there's documentation, but I wouldn't be contributing back. Also I like Scala and I like where Liftweb is going. Anyway, just thoughts, Philip On Nov 30, 4:34 pm, philip [EMAIL PROTECTED] wrote: Hi, I also agree with David that I'm very excited to use Lift and have great enthusiasm about

[Lift] Re: a plea for documentation

2008-11-30 Thread philip
compare it to SEAM, SEAM is also complex but there is so much documentation I won't get stuck so I'm willing to use it on the big project. Thanks, Philip On Nov 27, 10:15 am, David Stein [EMAIL PROTECTED] wrote: On Wed, Nov 26, 2008 at 3:10 PM, David Pollak [EMAIL PROTECTED] wrote: If you've been