[Lift] Can't find Javascript files using LiftRules.resourceServerPath

2009-04-08 Thread glenn
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd htmlbodyThe Requested URL /classpath/jquery-tabs.js was not found on this server/body/html Any help on getting this to run would be appreciated. Glenn Silverman

[Lift] How to use the new Record framework and Jackrabbit

2009-04-08 Thread glenn
Has anyone tried to use the Scala OSGI bundle, say in Sling, to persist data to Jackrabbit? Any attempt at an implementation, at this stage, would be welcome. Glenn Silverman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Can't find Javascript files using LiftRules.resourceServerPath

2009-04-09 Thread glenn
Problem solved. It seems you can't just put your js files in the path src/main/resources/toserver. You need to put them in a subfolder of toserve and specify the subfolder in ResourceServer.allow in your Boot class. I think improved documentation is needed in this area. Glenn Silverman On Apr

[Lift] Exception thrown in Firefox but not in IE. What Gives????

2009-04-11 Thread glenn
, please help. By the way, if I just create an html file with the containerPlus node as above and display it in Firefox without using Lift, I don't get the error. Everything works great. Glenn Silverman --~--~-~--~~~---~--~~ You received this message because you

[Lift] maven lift-archtype 1.0 generators don't work with jetty version 7.0.0.

2009-04-11 Thread glenn
By the way, the maven lift-archetype-basic and blank ver 1.0 project generators don't work with jetty versions greater than 6.1.16. The new jetty 7.0.0 does not contain WebAppContext.class, which Lift requires. Glenn Silverman --~--~-~--~~~---~--~~ You received

[Lift] Scala and Lift/JavaFX code similarieties

2009-04-11 Thread glenn
Has anyone looked at JavaFX lately? Is there a common code base, or is it just coincidence that it looks and behaves a lot like Scala? Glenn Silverman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group

[Lift] Re: Exception thrown in Firefox but not in IE. What Gives????

2009-04-11 Thread glenn
grasp. But, then again, it's probably something simple. Glenn Silverman On Apr 11, 6:53 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Apr 10, 2009 at 9:49 PM, glenn gl...@exmbly.com wrote: I'm getting concerned about the viability of a Lift/JQuery web solution. I am trying

[Lift] Using Jx classes to output HTML

2009-04-15 Thread glenn
(it, class)}'/li) head script type=text/javascript Jx(ul class=tabMenu{JxMap(JsVar(it.tabs), renderTabs)}/ul) /script /head } I see the value in the Jx classes, if only I knew how to use them. Any help would be appreciated Glenn Silverman

[Lift] Re: Using Jx classes to output HTML

2009-04-15 Thread glenn
- SHtml.ajaxButton(Text(Press me), () = ajaxFunc) Maybe that's why I'm getting 'F560600551708Y4K=true' emitted. I'm beginning to think nobody has actually written code using the Jx classes that works. Glenn Silverman On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote: How about 1. Use

[Lift] Re: Using Jx classes to output HTML

2009-04-15 Thread glenn
to emit a javascript function and have it called. Glenn Silverman On Apr 15, 2:58 pm, glenn gl...@exmbly.com wrote: Marius, I appreciate the reply. Not sure if it helps, though. What's with (JsVar(items) and why did you use that? The Liftbook is very cryptic on the use of Jx classes. It just

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread glenn
stumped. I'll be the first to admit there is a steep learning curve here that I'm not anywhere near over yet, but I'm getting there, with a little help, thank you. Glenn Silverman On Apr 16, 6:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Apr 15, 2009 at 3:19 PM, glenn gl

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread glenn
,net.liftweb.http.js.JsCmd) TabMenu.scala sample/src/ main/scala/com/exmbly/scala/sample/snippet Unknown Scala Problem Changing the call to bind(ex, xhtml, button - SHtml.ajaxButton(Text(Press me), () = ajaxFunc) does work, however (Press me needs to be quoted. It's not in the book). Glenn Silverman

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread glenn
Marius, This is definitely getting closer. One question? I don't understand why you used this function to handle the button clicked event. val matches = names.filter(e = e.indexOf(value) -1 Where does the 'names' list and 'value' param come from? Glenn Silverman On Apr 16, 9:26 am, marius

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread glenn
is emitted but the items variable is not. In any case, the code above does not do anything. Have I got it all wrong? Glenn Silverman On Apr 16, 9:26 am, marius d. marius.dan...@gmail.com wrote: Glenn, It looks like there was a typo in the book: bind(ex, xhtml,   button - SHtml.ajaxButton(Text(Press

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread glenn
said, you probably only tested in Firefox. Try it in IE. It doesn't populate the div in version 7 when I tried it. Glenn Silverman On Apr 16, 12:20 pm, marius d. marius.dan...@gmail.com wrote: Glenn, I just tested the code and it is working correctly. Here is my full class source: package

[Lift] How do you debug snippet code

2009-04-17 Thread glenn
Are there any debugging tools or techniques for stepping through snippet code? I would be interested in hearing from anyone on this subject. Glenn Silverman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Error message undecipherable

2009-04-21 Thread glenn
handler. even though the call to SHtml.ajaxCall in the construct is correct - at least alone it doesn't generate any compiler errors. If instead, I use onclick={alert('This is a test')}, everything works fine. Glenn... On Apr 20, 3:40 pm, Charles F. Munat c...@munat.com wrote: There are three

[Lift] Re: Error message undecipherable

2009-04-21 Thread glenn
, net.liftweb.http.js.JsExp), and the MetaData So you need to look at the ajaxCall method and figure out what you are doing wrong. Does this help? Chas. glenn wrote: When I try to compile the following code: bind(ex, xhtml, button1 - button onclick={SHtml.ajaxCall(Str (Button1),ajaxFunc _)}Press me

[Lift] Re: class hierarchy with models

2009-04-21 Thread glenn
extends MappedPostalCode[OwnerType](owner, mc) } Glenn Silverman On Apr 1, 2:21 am, Tobias Daub hannes.flo...@gmx.li wrote: Hi There, I'm new to Scala and Lift and still feeling a little bit lost. In case of the ToDo example from the Getting started guide: Would it be possible to make a more

[Lift] Debugging with Firebug

2009-05-01 Thread glenn
I often find it convenient to trace what's happening with snippets by inspecting the html produced in Firebug. Currently, I'm using a short snippet that logs event output to the Firebug console. It doesn't cover all the bases but it's quick and dirty. Anyone doing something similar??? class

[Lift] How do you submit a post request to an external url

2009-05-05 Thread glenn
attribute on the form, substituting just / for the url. Does this call for a custom dispatch function? If so, what would it look like. I understand the path part is just a list, but what about the context-path and how would I set that up? Glenn Silverman

[Lift] Re: How do you submit a post request to an external url

2009-05-05 Thread glenn
that be necessary? If I wanted to write Java EE servlets, I'd do it from the beginning and not use lift at all. By the way,I thought lift already wraps HttpServlet. Aren't there some method calls I can use to do the job? Glenn... On May 5, 5:45 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn

[Lift] Re: How do you submit a post request to an external url

2009-05-05 Thread glenn
Tim, Ahh... I see what you mean. Just bypass lift altogether. Now you see why I'm just a novice lifter. I suppose the same applies to retrieving data from external sources (other than a db connection)? Thanks. Glenn... On May 5, 10:13 am, David Pollak feeder.of.the.be...@gmail.com wrote

[Lift] How about a lift + sling marriage

2009-05-07 Thread glenn
that seems insurmountable. Glenn Silverman --~--~-~--~~~---~--~~ 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

[Lift] Re: How about a lift + sling marriage

2009-05-07 Thread glenn
My mistake. I see in the Lift Book quite a bit about RESTFUL services under the Web Services chapter. This I will read. Glenn Silverman On May 7, 12:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, May 7, 2009 at 12:23 PM, glenn gl...@exmbly.com wrote: Are there any thoughts

[Lift] Lift and interoperability

2009-05-11 Thread glenn
Just some observations from a struggling lift user... Yes, I see it's utility in delivering dynamic html to the browser. But in today's world of rapidly evolving technologies for mashups and flex- like richness and gadgetization, interoperability is the key to adoption in the enterprise. It's

[Lift] Menu access control not working as expected

2009-05-12 Thread glenn
the right mechanism to control page access? Glenn... --~--~-~--~~~---~--~~ 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

[Lift] Re: Menu access control not working as expected

2009-05-12 Thread glenn
children are accessible.  SiteMap does not display any pages that are inaccessible. In the example, you've got all the menus controlled by the loggedIn If() clause and that's blocking access to menu and thus the menu is not displayed. On Tue, May 12, 2009 at 4:54 PM, glenn gl...@exmbly.com wrote

[Lift] Re: Menu access control not working as expected

2009-05-13 Thread glenn
David, Pardon my ignorance, but I see a Test case class in the Lift 1.0 api for Loc, but not TestAccess, which seems similar. Glenn... On May 13, 6:58 am, David Pollak feeder.of.the.be...@gmail.com wrote: Glenn, I've added another Loc param:   /**    * Allows extra access testing

[Lift] Re: Menu access control not working as expected

2009-05-13 Thread glenn
,com.exmbly.scala.apbul.model.Company] with com.exmbly.scala.apbul.model.Company with net.liftweb.mapper.KeyedMetaMapper [Long,com.exmbly.scala.apbul.model.Company] Was something changed in the definition of Crudify? What do I need to change in my code? The error is a bit confusing. Glenn... On May 13, 2:58 pm, David Pollak

[Lift] Re: Menu access control not working as expected

2009-05-13 Thread glenn
(Menu(Loc(Create +Prefix, createPath, Continue..., locSnippets, LocGroup(company), testLogin, Loc.Template(createTemplate On May 13, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, May 13, 2009 at 3:30 PM, glenn gl...@exmbly.com wrote

[Lift] Re: Lift and interoperability

2009-05-14 Thread glenn
systems and at every stage I found the life-cycle hooks into lift very rich and completely empowering. Cheers, Tim On May 11, 11:31 pm, Alex Boisvert boisv...@intalio.com wrote: Hi Glenn, I don't understand where you're coming from either...  I've integrated Lift

[Lift] Re: Lift and interoperability

2009-05-14 Thread glenn
rich and completely empowering. Cheers, Tim On May 11, 11:31 pm, Alex Boisvert boisv...@intalio.com wrote: Hi Glenn, I don't understand where you're coming from either...  I've integrated Lift with a different persistence layer (home-grown), another authentication system (Tempo

[Lift] Re: Menu access control not working as expected

2009-05-14 Thread glenn
David, Your sample app works. Mine doesn't. I even put your sample Menu item in my app, but in it's own LocGroup, and it does not work. It seems the only difference is that I'm separating my menus into groups. Could that be the culprit? Glenn... On May 13, 9:27 pm, David Pollak

[Lift] Maven, Lift and Eclipse problem

2009-05-14 Thread glenn
(Unknown Source) ... 52 more Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\Users\Glenn\usr\local\develop\ws\myscala \apgarBullardWeb\lift_example. I have to stop jetty and restart just to test. Funny thing, I was able to do continuous build

[Lift] Re: Lift and interoperability

2009-05-14 Thread glenn
otherwise you are risking to not be taken seriously and that would be a shame ... On May 14, 8:39 am, glenn gl...@exmbly.com wrote: I appreciate all the comments on lift and interoperability. What I'm hearing is that if an integration can be done in a plain old Java EE application, it can

[Lift] Re: Menu access control not working as expected

2009-05-14 Thread glenn
liFake Out/li /lift:Menu.item div lift:snippet type=msgs/ hr class=space / /div /div It seems this only works if you stick to outputting the full menu in your templates with lift:Menu.builder/. Anything else and it's broken. Glenn... On May

[Lift] lift-webkit src not on github

2009-05-15 Thread glenn
I was looking for the latest src for lift-webkit and it's not available on github. Where can I get hold of it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread glenn
Yes, I see it under lift. Does this mean the lift-webkit jar is going away? glenn... On May 15, 5:39 am, David Bernard david.bernard...@gmail.com wrote: in the subdir lift (and not lift-webkit) http://github.com/dpp/liftweb/tree/501dc7c63306b0306ed0a1abd0537cfe3e... On Fri, May 15, 2009

[Lift] Redirect after login

2009-05-15 Thread glenn
it? Would I need different login pages for each case, or is there a cleaner way in which I can use a single login page for job? Glenn... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group

[Lift] Re: Redirect after login

2009-05-17 Thread glenn
, and other's use for debugging that might help. Thanks in advance for your assistance. Glenn... On May 15, 3:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote: In your User object, do the following: object loginReferer extends SessionVar(/) override def homePage = {   var ret

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
documents from it, but I haven't figured out how to PUT documents from a non-lift resource into my lift app, since that requires that you can somehow access lift's Req object via a URL Glenn... On May 17, 10:26 am, Barry Kaplan meme...@gmail.com wrote: I'm looking for a bootstrap example of integrating

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
On May 17, 2:16 pm, Timothy Perrett timo...@getintheloop.eu wrote: but I haven't figured out how  to PUT documents from a non-lift resource into my lift app, since that requires that you can somehow access lift's Req object via a URL Hmm - im afraid your just plain wrong here... it

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
Tim, If I have a PUT dispatch case like so: case r @ Req(api :: company :: Nil, , PutRequest)= () = addCompany(r) and the handler is looking for something in r.xml like this: req.xml match { case Full(company{parameters @ _*}/company) = { for(parameter - parameters){parameter

[Lift] Re: Lift and interoperability

2009-05-18 Thread glenn
to. regards, Glenn... On May 17, 2:22 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 17, 2009 at 2:33 AM, rintcius rintc...@gmail.com wrote: Interesting discussion! I think I see a bit where Glenn is coming from. I'm all for interoperability... I like baseball and apple pie, too

[Lift] ActorPingException error

2009-05-18 Thread glenn
I keep getting an ActorPingException error in the server console. It's not fatal, as the app doesn't crash. Any ideas on the cause? I'm not extending Actor in any of my classes. INFO - Service request (GET) /images/ajax-loader.gif took 1 Milliseconds net.liftweb.util.ActorPingException: ActorBug

[Lift] Re: ActorPingException error

2009-05-18 Thread glenn
wrote: Glenn, It looks like Jetty is restarting your application.  This can cause issues with java.util.concurrent schedulers.  Try setting the from scanIntervalSeconds5/scanIntervalSeconds to scanIntervalSeconds0/scanIntervalSeconds in your pom.xml file. Thanks, David On Mon, May 18

[Lift] Re: ActorPingException error

2009-05-18 Thread glenn
(Global.scala:667) [WARNING] at scala.tools.nsc.Main$.process(Main.scala:73) [WARNING] at scala.tools.nsc.Main$.main(Main.scala:87) [WARNING] at scala.tools.nsc.Main.main(Main.scala) [ERROR] On May 18, 4:38 pm, glenn gl...@exmbly.com wrote: Setting the scan interval to 0 eliminates

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-18 Thread glenn
, glenn gl...@exmbly.com wrote: Deriek, Appreciate your response.  What I did was change the case to just case Req(api :: company :: Nil, , PutRequest)= () = saveCompany and in saveCompany I just extracted the Req object from S.request open_!. As long as the body of my

[Lift] Which lift version should I be using

2009-05-19 Thread glenn
I was using lift 1.1-SNAPSHOT,which I had in my local repository. There is a version 1.1-M1 on http://scala-tools.org/repo-releases. Should I be using that, or is there another repository that I should use in my POM? Glenn... --~--~-~--~~~---~--~~ You received

[Lift] Re: Redirect after login

2009-05-19 Thread glenn
David, I'm sorry too, because I was already using loginReferer.is. The problem is the loginReferer.remove line has to be removed for the redirect to work. Don't know why. You would think the ret var would stay put, but it doesn't. Glenn... On May 18, 3:57 pm, David Pollak feeder.of.the.be

[Lift] Re: Redirect after login

2009-05-19 Thread glenn
{ case group = ret = Company.createPathString case _ = ret = loginReferer.is } ret } On May 19, 9:08 am, glenn gl...@exmbly.com wrote: David, I'm sorry too, because I was already using  loginReferer.is. The problem is the loginReferer.remove  line has

[Lift] Re: your first Lift application on GAE/J

2009-05-20 Thread glenn
://code.google.com/eclipse/docs/existingprojects.html I'm not sure how to run this, however. Do you just use mvn jetty:run, or do you also need to launch the Google App Engine as well? Have you tried it? Glenn... On May 15, 9:23 pm, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, Thank

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn
I'd be happy to write up a step-by-step of getting a Lift project running in Eclipse, from installing Eclipse to installing the scala and maven plugins and setting them up and creating a new maven project using the lift archetypes. Glenn... On May 21, 10:59 am, Miles Sabin mi...@milessabin.com

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn
Miles, I did a basic instruction page in the wiki for you to review. Note that the repository locations in the archetype catalog point to the release, not the SNAPSHOT versions. I'll change that, but just wanted to get the basic concepts out there first. Glenn.. On May 21, 12:17 pm, Miles

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn
Miles, Ignore my last note about the released vs. snapshot, I just made the changes to point to the 1.1 snapshot versions, and removed the need to change the jetty version. Glenn.. On May 21, 12:17 pm, Miles Sabin mi...@milessabin.com wrote: On Thu, May 21, 2009 at 8:25 PM, glenn gl

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-22 Thread glenn
to install the jars in your local maven repo, however. Glenn... On May 22, 12:48 am, Miles Sabin mi...@milessabin.com wrote: On Fri, May 22, 2009 at 12:35 AM, glenn gl...@exmbly.com wrote: Ignore my last note about the released vs. snapshot, I just made the changes to point to the 1.1 snapshot

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-22 Thread glenn
application. Glenn... On May 22, 9:51 am, Miles Sabin mi...@milessabin.com wrote: On Fri, May 22, 2009 at 5:54 PM, glenn gl...@exmbly.com wrote: Solution 2 is problematic because the GAE Plugin generates a project with a non-maven standard structure. Worse yet, it's not even an Eclipse Web

[Lift] Re: GAE - working example?

2009-05-28 Thread glenn
creates, and starts the App Engine, but nothing else. The application is not accessible from the URL http://localhost:. Am I doing something completely wrong, here? Glenn... On May 27, 2:38 pm, denew de...@clear.net.nz wrote: Embarassingly simple really - RTFM. Within the known limitation

[Lift] Re: GAE - working example?

2009-05-29 Thread glenn
trace the running code to the point where S.param(login) matches Empty, but that's about it. Any idea why that is happening? Glenn... On May 28, 1:39 pm, denew de...@clear.net.nz wrote: I'm using maven for builds, so I can't help with your Ant process, but you need to start the appengine

[Lift] Re: GAE - working example?

2009-05-29 Thread glenn
Forget that last post. I got it working. I had template tag error in my code. Glenn... On May 28, 1:39 pm, denew de...@clear.net.nz wrote: I'm using maven for builds, so I can't help with your Ant process, but you need to start the appengine with something like: root\appengine-java-sdk

[Lift] Maven lift-archetype-basic error

2009-06-01 Thread glenn
The 0.0.1-SNAPSHOT version of the lift-archetype-basic generates a default.html template with lift-tag:bind name=content /, which generate the following error: XML Parsing Error: prefix not bound to a namespace Changing the tab to lift:bind name=content/ eliminates this problem. Glenn

[Lift] Re: YA menu question: separate menus

2009-06-08 Thread glenn
I have a similar request: namely, being able to apply expandAll=true attribute not just to lift:Menu.builder.../ but to lift:Menu.group name=mygroup/ and lift:Menu.item name=myMenu/, or, as Joe requests below, to any siteMap that is not the root siteMap. Glenn... On Jun 8, 2:06 pm, Joe Wass j

[Lift] Re: YA menu question: separate menus

2009-06-08 Thread glenn
or horizontal menu for groups or non-root siteMaps just as easily as for the entire root siteMap. Glenn... On Jun 8, 3:51 pm, Joe Wass j...@folktunefinder.com wrote: What I really wanted was a menu group. Doing things in groups has solved my particular question. Glenn, can you not just use groups? Do

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
DynamicImport-Package*/DynamicImport-Package /instructions /configuration /plugin Either that, or there's something else going on. Any ideas? Glenn... On Jun 11, 11:54 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm building some code right now that I think should handle

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
My error. Ignore this. I did a mvn clean then mvn install outside of Eclipse on the parent pom and everything worked fine. Glenn... On Jun 12, 4:45 am, glenn gl...@exmbly.com wrote: Derek, I'd love to test the changes you made to Menu, but my build fails when I run mvn install on the pom

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
} / head ++ div {for(group - groups) yield {buildMenu(group)}} /div } Someone should redo the MenuWidget snippet to handle your new Menu.builder construct, so it doesn't have to be subclassed. Glenn... On Jun 12, 4:59 am, glenn gl...@exmbly.com wrote

[Lift] URL Rewriting problem

2009-06-12 Thread glenn
be appreciated. Glenn... --~--~-~--~~~---~--~~ 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

[Lift] Re: URL Rewriting problem

2009-06-12 Thread glenn
a fledgling CMS built with relatively few lines of code. If you have some alternative ideas for creating a programatic navigation system, I would be very interested. Glenn... On Jun 12, 2:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jun 12, 2009 at 10:44 AM, glenn gl...@exmbly.com

[Lift] Re: URL Rewriting problem

2009-06-13 Thread glenn
David, Looks like I can incorporate the functionality I need just by writing my own Loc implementation. Cool. There's a lot going on in your code so I need to work through it, but seems like it's all there. Thanks, Glenn... On Jun 12, 3:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote

[Lift] Re: URL Rewriting problem

2009-06-13 Thread glenn
this in response to my post, it's darn good, or is this something you are already using or perhaps know of it's use in other Lift projects? I'd be interested. Glenn.. On Jun 12, 3:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote: So, you want custom content with menus generated from the database

[Lift] MEMDEBUG failure

2009-06-17 Thread glenn
I don't know whether this is a Scala problem or a Llift one, so I'll post this problem here with apologies if it's a Scala issue. I keep getting the following error message since I upgraded to Scala 1.7.5. This pops up in my console every 5 seconds, the default jetty scan interval in the pom.

[Lift] Mapper and display generation

2009-06-18 Thread glenn
I'm looking for a relatively simple way to modify the form and form elements that are generated by Mapper, such as adding or modifying attributes. I've been using the following method in my model classes that extend Mapper: def mf(in: Node, name:String, value:String): NodeSeq = in match {

[Lift] Re: YA menu question: separate menus

2009-06-19 Thread glenn
Derek, It does not appear that these changes have been migrated to the snapshot repository yet. What are you plans? thanks, Glenn... On Jun 19, 8:57 am, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I've committed some new support for groups in the MenuWidget class. Also, the existing

[Lift] Re: YA menu question: separate menus

2009-06-30 Thread glenn
) at org.codehaus.classworlds.Launcher.main(Launcher.java:31) When I ran the my app, all the menu links just said No navigation defined. I'm using lift 1.1-SNAPSHOT out of http://scala-tools.org/repo-snapshots. Is this where you made your changes? Glenn... On Jun 22, 9:37 am, Derek Chen-Becker

[Lift] using file-based data storage in Lift app

2009-07-03 Thread glenn
I've searched this group and combed through the lift book for an answer, but found none - how to use file-based storage for data within Lift. For example, how would I call something like: def xml = XML.loadFile(fileName) without getting a java.io.FileNotFoundException? I tried storing the

[Lift] Some help persisting MetaMapper

2009-07-03 Thread glenn
I'm trying to do something like: override def afterSave = addAfterSave _ :: Nil private def addAfterSave(c: Content) { } } and assume afterSave automatically gets called after saving a mapper entity. But it never does. What could I be missing or doing wrong?

[Lift] Re: using file-based data storage in Lift app

2009-07-05 Thread glenn
Thanks, Marius. Now, is there something similar for writing XML to a file. I saw nothing on LiftRules that seems to apply. Glenn... On Jul 4, 12:36 am, marius d. marius.dan...@gmail.com wrote: Try LiftRules.loadResourceAsXml Br's, Marius On Jul 4, 1:11 am, glenn gl...@exmbly.com wrote

[Lift] Re: using file-based data storage in Lift app

2009-07-06 Thread glenn
is the default. What kind of server are you using? - glenngl...@exmbly.com wrote: Thanks, Marius. Now, is there something similar for writing XML to a file. I saw nothing on LiftRules that seems to apply. Glenn... On Jul 4, 12:36 am, marius d

[Lift] Re: Maven Lift archetype errors

2009-07-07 Thread glenn
On Windows. On Jul 7, 11:57 am, David Pollak feeder.of.the.be...@gmail.com wrote: Can you provide the exact line you typed on the command line?  Are you Windows, Linux or Mac? I'll try to reproduce the problem in a clean VMWare instance. On Tue, Jul 7, 2009 at 11:33 AM, glenn gl

[Lift] How to use selectObj over a range of integers

2009-07-17 Thread glenn
I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? It seems a load to have to create a list of pairs. And what does the third param to selectObj look like in this

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread glenn
  that was + (10 + i))) -Ross On Jul 17, 2009, at 6:27 PM, glenn wrote: I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? It seems a load to have

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread glenn
(i, i.toString)),            Full(0),            i = println(the number chosen was + i + and 10 plus   that was + (10 + i))) -Ross On Jul 17, 2009, at 6:27 PM, glenn wrote: I would like to know how to create a selectObj over a range of integers. Do I have to use val numList

[Lift] Re: New features

2009-07-27 Thread glenn
Sounds great. I've been using hacks such as adding code like this to my mapper classes just to create a Many-to-Many relationship between say, tag and content tables (using an intermediary ContentTag table). Similarly, I've done User/Roles relationships. private object _dbTags extends

[Lift] Modularization of Lift code

2009-07-27 Thread glenn
I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
to using Java reflection. Glenn... On Jul 28, 9:36 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
and editing source files should always be a last-resort option. Glenn... On Jul 28, 9:36 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
Hi, Ross, So, with the changes, where would templates need to be placed in jar files in order to be found - or can they be put in any directory as long as the resource is noted in ResourceServer? Glenn... On Jul 28, 9:39 am, Ross Mellgren dri...@gmail.com wrote: http://github.com/dpp/liftweb

[Lift] Re: New features

2009-07-28 Thread glenn
Naftoli, The ManyToMany class is in the new lift-mapper jar, but the source is not available in 1.1-SNAPSHOT-sources. Could you provide? Thanks, Glenn... On Jul 27, 3:50 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I committed it last night, so I think it should be there. To use many

[Lift] Re: Modularization of Lift code

2009-07-29 Thread glenn
is a good thing, where modularization is the rule, not the exception, but that doesn't take the place of statically dropping in code/jars during development. That is what needs to be addressed foremost, I think. Glenn... On Jul 29, 4:55 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Just

[Lift] Re: Wymeditor or FCKEditor

2009-07-31 Thread glenn
. Then, in a bind helper, use something like bind(content, xhtml, ... description = textarea(loadHtml(currentContent.link.is).toString, page(_), (class, wymeditor)), ...) Does that help? Glenn... On Jul 30, 1:24 pm, Avo Reid avor...@cox.net wrote: Has anyone tried to use wymeditor or FCKEditor

[Lift] Lift maven archetypes seem to be broken ... again

2009-07-31 Thread glenn
, but something has changed, and I don't believe I've changed anything local to cause this. I am still investigating, but if anyone has similar experiences, that would help me to debug. Also, shouldn't the POM use Thanks. scala.version2.7.5/scala.version rather than 2.7.4? Glenn

[Lift] Re: Lift maven archetypes seem to be broken ... again

2009-07-31 Thread glenn
the 2.7.4 scala version. Could it be that my local .m2 repository is not being updated with a new archetype from repo-snapshot? Glenn... On Jul 31, 8:40 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, What command are you using to pull the archetype? Its certainly not an issue

[Lift] Re: Lift maven archetypes seem to be broken ... again

2009-07-31 Thread glenn
. Glenn... On Jul 31, 9:26 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jul 31, 2009 at 8:55 AM, glenn gl...@exmbly.com wrote: Tim, I'm using Eclipse's maven plugin to create a new maven project with the following parameters: groupIdnet.liftweb/groupId artifactIdlift

[Lift] Re: New features

2009-07-31 Thread glenn
- SHtml.submit(S.??(edit), testEdit _)) } here roles is defined as var roles = theUser.roles.map(_.name.is).mkString(, ) Do you have an example of how to achieve something similar with your new ManyToMany and MappedManyToMany code? Appreciate any help you can give me. Thanks, Glenn... On Jul 28

[Lift] Re: Lift maven archetypes seem to be broken ... again

2009-08-03 Thread glenn
Guys, Is there a scala archetype catalog in repo-snapshots. There is one in scala-tools.org, but that uses scala 2.7.3 and only draws from the repo-releases. Glenn... On Jul 31, 9:54 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jul 31, 2009 at 9:47 AM, Timothy Perrett timo

[Lift] Re: New features

2009-08-03 Thread glenn
Naftoli, Liked your OneToMany article, but not sure how the new ModelView and ModelSnippet code can be applied to ManyToMany. Can you provide a sample? Glenn... On Aug 2, 1:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I put an article on the wiki about OneToMany --http

[Lift] Re: New features

2009-08-03 Thread glenn
Just to add to what I just wrote, I don't see how your ModelView can be applied to User, which already extends a class, MegaProtoUser. Maybe I'm not comprehending this correctly. Glenn... On Aug 3, 3:48 pm, glenn gl...@exmbly.com wrote: Naftoli, Liked your OneToMany article, but not sure

[Lift] Re: New features

2009-08-05 Thread glenn
in the ModelSnippet was instantiated with the selected User on each request. It sounds like your plate is pretty full, so I won't expect much, but sometime soon, could you provide an example, or improved docs, for using TableEditor and its related ItemsList trait. Thanks for all. Glenn

[Lift] Re: New features

2009-08-05 Thread glenn
your plate is pretty full, so I won't expect much, but sometime soon, could you provide an example, or improved docs, for using TableEditor and its related ItemsList trait. Thanks for all. Glenn... On Aug 5, 9:18 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Correction

  1   2   3   >