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
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
)
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
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
,
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
[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
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
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
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
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
!, 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
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
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
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
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
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
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
/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
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
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
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
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
. 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
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
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
, 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
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
27 matches
Mail list logo