[Lift] Re: How to make JsCmds.RedirectTo context path sensitive?

2010-02-04 Thread Java1Guy
I think David's analysis is exactly right: "CometActors do not run in the scope of any HTTP requests. I'm guessing that the context path is not getting to the CometActor." As the button text I put S.contextPath+"/index" and sure enough, it shows "/index" - even though the above output shows that

[Lift] Re: How to make JsCmds.RedirectTo context path sensitive?

2010-02-04 Thread Java1Guy
Ross: no, the opposite. in "mvn jetty:run" all is well since it is in the root context. (?) When I deploy the war to jetty and use the "/mt" context all the ajaxButtons insist on going to the root. PS - although i've had trouble before, 2.0-M1 seems *more* broken :( On Feb 4, 3:37 pm, Ross Mellg

[Lift] Re: How to make JsCmds.RedirectTo context path sensitive?

2010-02-04 Thread Java1Guy
FWIW, my Jetty config I tried to make as simple as possible: /mt / webapps/menutest-1.0-SNAPSHOT.war false false /etc/webdefault.xml -- 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 unsubs

[Lift] Re: How to make JsCmds.RedirectTo context path sensitive?

2010-02-04 Thread Java1Guy
>From mvn jetty:run: Here's request map: Full()Here's session map: Full()and finally S.contextPath: >From jetty Here's request map: Full(/mt)Here's session map: Full(/mt)and finally S.contextPath: /mt WTF? My actor code is: bind("f", defaultXml, "nakedHomeButton" -> SHtml.a

[Lift] How to make JsCmds.RedirectTo context path sensitive?

2010-02-04 Thread Java1Guy
This sure seems like it should be a simple problem, but I sure can't find the answer. I have a simple CometActor page with an ajaxButton on it. I want the button to go to a different page. No problem - except when I deploy it into a jetty container where it isn't in the root context, it doesn't

[Lift] Re: Memory behavior in Jetty with CometActor - 25MB of scala.xml.Text!

2010-01-21 Thread Java1Guy
David: Thanks for having a look. Curious about that missing dependency - i guess it's in the pom.xml but not really used. Anyway, I'll digest your recommendations and have a go at it. The scenario I have running right now is one page open (and therefore its session) for a very long time. While

[Lift] Re: Memory behavior in Jetty with CometActor - 25MB of scala.xml.Text!

2010-01-20 Thread Java1Guy
did post the project to drop.io -http://drop.io/memtest. > > This drop is empty > > > > > > > On Wed, Jan 20, 2010 at 10:06 PM, David Pollak < > > feeder.of.the.be...@gmail.com> wrote: > > >> On Wed, Jan 20, 2010 at 9:03 PM, Java1Guy wrot

[Lift] Re: Memory behavior in Jetty with CometActor - 25MB of scala.xml.Text!

2010-01-20 Thread Java1Guy
almost 80K displayList partial function objects in my CometActor. To me that sounds like a lot of functions! Thanks in advance if you can have a look. Mark On Jan 18, 6:36 pm, Java1Guy wrote: > Thanks for the response.  I have created a small project > here:http://drop.io/memtest(btw - the zi

[Lift] Re: Memory behavior in Jetty with CometActor

2010-01-18 Thread Java1Guy
Thanks for the response. I have created a small project here: http://drop.io/memtest (btw - the zip file is so big because there are 3 heap dumps - before that it was only 21k!) which i believe does exhibit the problem. One comet actor page which gets updated every 20 sec. via tick. So to run thi

[Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-31 Thread Java1Guy
I'm not quite understanding... I just got the zip files from the download page of the GitHub (http://github.com/dpp/liftweb/downloads) for both 1.1-M7 and Lift-1.1-M8-release. Both of them fail the build with the same error: C:\Users\mark\Library\Lift-1.1-M7\lift-modules\lift-jta\src\main\scala \ne

[Lift] Re: Caching Comet Actors

2009-12-15 Thread Java1Guy
On Tue, Dec 15, 2009 at 9:54 AM, Java1Guy wrote: > > Hey all! > > I'm having great luck coding up my web site which consists of a > > handful of pages each of which contains a Flot graph.  Behind each > > page is a CometActor which dynamically updates the graph. >

[Lift] Caching Comet Actors

2009-12-15 Thread Java1Guy
Hey all! I'm having great luck coding up my web site which consists of a handful of pages each of which contains a Flot graph. Behind each page is a CometActor which dynamically updates the graph. Since appetite grows while dining, I'm now interested in optimizing a bit. I presume I have the defa

[Lift] Re: Flot Demo Broken

2009-10-26 Thread Java1Guy
I got it to run pretty easily by locally back porting to 1.1m4. Just change back the one package name change, IIRC. Otherwise it was becoming a big rat hole. Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lif

[Lift] Re: Lift's CometActor and multiple dynamic charts

2009-10-15 Thread Java1Guy
FWIW - I went with choice #1. Seems like CometActor name method doesn't really get the value of the name parameter in the XML :( Appended uniqueId on all the variables and functions - worked just fine! On Oct 15, 12:56 pm, Java1Guy wrote: > Hey all! > I have had some great success

[Lift] Lift's CometActor and multiple dynamic charts

2009-10-15 Thread Java1Guy
Hey all! I have had some great success in putting together a web page using Flot for client-side JavaScript charting. I *even* generate said JavaScript in my Scala code (well, the data and the call to the appropriate function) - FTW! Now my question is this: I need multiple graphs on a given pag

[Lift] Page parsing error

2009-10-08 Thread Java1Guy
Hey! I'm quite baffled by this - Template flottest.html: var i=0; while (i < 14) { i = i + 5; }; H2 Template flotsupport.html (in templates-hidden): http://www.w3.org/1999/xhtml"; xmlns:lift="http:// liftweb.net/"> Flot Toolkit Test Page

[Lift] Re: jQuery - esp. datepicker

2009-08-04 Thread Java1Guy
Well... only sort-of :( 1) if you're using the id attribute, doesn't that mean i can only use one per page? 2) i don't think it explains why is was getting the JavaScript error... In the meantime, I downloaded jQuery and include it explicitly on the page and use style classes, so it seems to work

[Lift] jQuery - esp. datepicker

2009-08-03 Thread Java1Guy
I'm trying to put a datepicker on some text fields on a page... For a while there was missing stuff that was present in the PocketChange app which works: Looking at the DOM in firebug, I see this: How did that get there? Also in the date field itself: How did 'hasDatepicker' get assigned as the