[Lift] How to execute client-side js from ajax callback?

2009-11-18 Thread jhonig
Hi All, I am trying to execute a local (ie: defined in the template) javascript function from an Ajax callback. This is the callback: def testAjax2 (theXhtml : NodeSeq) : NodeSeq = { def getWidth () = { Call ("getAvailableWidth").cmd; } def al

[Lift] How to make Ajax call from "onLoad"/"onResize"?

2009-11-18 Thread jhonig
Hi All, Yet another question: I need to make Ajax calls when a page is loaded or resized. The call would need to pass some local client information (browser size). The return should be javascript code that populates a div on that page (in particular: an image that is scaled on the server to matc

[Lift] Re: XML Parsing Error: prefix not bound to a namespace

2009-11-18 Thread mr najmi
thanks for your reply.but unfortunately it still didn`t solve the problem On Nov 18, 12:57 pm, Ross Mellgren wrote: > You forgot to quote "branches" before -> in your bind. That is, > > >    bind("e",xhtml, > >         branches -> SHtml.text(branches,branches=_) > > >    ) > > Should be: > > >  

[Lift] Re: XML Parsing Error: prefix not bound to a namespace

2009-11-18 Thread mr najmi
sory..it works..thank you very much.. On Nov 18, 12:57 pm, Ross Mellgren wrote: > You forgot to quote "branches" before -> in your bind. That is, > > >    bind("e",xhtml, > >         branches -> SHtml.text(branches,branches=_) > > >    ) > > Should be: > > >    bind("e",xhtml, > >         "branch

Re: [Lift] How to execute client-side js from ajax callback?

2009-11-18 Thread Eros Candelaresi
Hi, I ran into the same problem. The Alert case class takes only a string. |case class Alert(val text : String )| | |I.e. the result of getWidth is quoted such that it remains a plain string when it is evaluated on client side. Best t

[Lift] Re: How to execute client-side js from ajax callback?

2009-11-18 Thread jhonig
Hi Eros, Thanks for your reply! > I ran into the same problem. The Alert case class takes only a string. > |case class Alert(val text : String > )| | > > |I.e. the result of getWidth is quoted such that it remains a plain > string when

Re: [Lift] Re: How to execute client-side js from ajax callback?

2009-11-18 Thread Eros Candelaresi
Hi, as a rule of thumb: when the Lift class expects a String as parameter, this will also be a String on JavaScript side. Alert expects a String, so it does not matter if the string is "Hello World!", "getAvailableWidth()" or anything else. By the time it reaches the client, Lift has already m

Re: [Lift] scala eclipse plugin with lift

2009-11-18 Thread Miles Sabin
On Wed, Nov 18, 2009 at 7:25 AM, Francois Armand wrote: > What plugin version are you using ? There is a 2.7 version of the plugin > that has to be used with Lift. This version is notoriously buggy, slow > and not maintained. > > The new Eclipse plugin version, which only target Scala 2.8, is far

[Lift] Hello world problems

2009-11-18 Thread jimmy
I am trying to try out lift/scala and I must say I am not getting a warm cosy feeling about this! First after following the instructions on the "mvn jetty:run" step I get-- "mortbay.jetty. etc etc not found message. A quick web search revelas this to be a ubiquitous apache/maven problem but afte

[Lift] Re: How to execute client-side js from ajax callback?

2009-11-18 Thread jhonig
Dear Eros, I had hoped to avoid reading the source code to get something done :-) Indeed I noticed that the argument was a String. I just hoped that it would be evaluated :-) Your code is working now; next step was to try to assemble a Javascript string from some bits and pieces, including dat

[Lift] Re: scala eclipse plugin with lift

2009-11-18 Thread Marius
Glad to hear that Miles. 2.7.7 eclipse plugin made me switch to emacs. It interpreted my scala code as java out of the sudden. I tried the JDT weving trick and nothing. I'm quite pleased with emacs the only thing I miss is the auto- completion for class methods but that never worked consistently f

Re: [Lift] Re: scala eclipse plugin with lift

2009-11-18 Thread Miles Sabin
On Wed, Nov 18, 2009 at 12:17 PM, Marius wrote: > It interpreted my scala code as java out of the sudden. I tried the > JDT weving trick and nothing. If you had JDT weaving enabled then only way you would see Scala code interpreted as Java is if the .project file included the Java builder. That o

[Lift] MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread opyate
Hello Lifters, I'm overriding my model's primary key like so, because the "id" field is non-autoincrement: (taken from Derek's suggestion on http://groups.google.com/group/liftweb/browse_thread/thread/41650fc1eb0098bd/cd93612309878979?lnk=gst&q=primary+key#) --START-- override def primaryKeyFiel

Re: [Lift] H2 foreign keys

2009-11-18 Thread Derek Chen-Becker
That's what I've been doing as we have to make changes. For instance, we needed to change how schemifier creates index columns to accomodate Oracle sequences, so I moved that to DriverType. On Sun, Nov 15, 2009 at 10:24 AM, Naftoli Gugenheim wrote: > > The H2 DriverType does not indicate H2 suppo

Re: [Lift] MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread David Pollak
This is a bug, but in order to debug it, I need a complete, runnable application. Please create one and put it up on GitHub and then open a ticket at http://github.com/dpp/liftweb/issues On Wed, Nov 18, 2009 at 5:37 AM, opyate wrote: > Hello Lifters, > > I'm overriding my model's primary key l

Re: [Lift] Re: Possible lift error in tag

2009-11-18 Thread Derek Chen-Becker
This was my fault when I added the post-submit ajax handling. It had worked fine on my test app, so I'm not sure what happened here, but I'm sorry for the hassle. On Sun, Nov 15, 2009 at 12:50 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Marius, > > Thanks for turning this fix aroun

Re: [Lift] H2 foreign keys

2009-11-18 Thread Naftoli Gugenheim
I don't think I ended up creating the ticket, but do you want to volunteer to fix this? IIRC the H2 syntax was like the currently used syntax but without the firsy to words or so. Search the H2 SQL Grammar page. Thanks. P.S. I wonder which other DBs use H2's syntax. -

[Lift] Model field validation

2009-11-18 Thread Ferdinand Chan
If I have a model "Item" as follows, class Item extends LongKeyedMapper[Item] with IdPK{ def getSingleton = Item object chiBrandName extends MappedPoliteString(this,255) object engBrandName extends MappedPoliteString(this,255) } An item is valid if and only if at least one of the brand

Re: [Lift] Hello world problems

2009-11-18 Thread Naftoli Gugenheim
What did you do to create the project? - jimmy wrote: I am trying to try out lift/scala and I must say I am not getting a warm cosy feeling about this! First after following the instructions on the "mvn jetty:run" step I get-- "mortbay.jetty. etc etc not foun

Re: [Lift] Hello world problems

2009-11-18 Thread David Pollak
Please include a step-by-step description of what Maven commands you used and what the output was. Also, please include the results of "mvn -version" I'm no Maven guru. I know how to type "mvn clean install jetty:run" and that's about it. Yes, I manage to create at least 1 new Lift app a day an

Re: [Lift] odd ajax issue (works every other time)

2009-11-18 Thread David Pollak
On Tue, Nov 17, 2009 at 10:33 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > I am able to reproduce the problem with a simple Ajax control. > > It's very, very odd. It seems to be an intermittent failure of the servlet > container to find the HttpServletSession. The client is present

[Lift] Tutorials or documentation about Factory?

2009-11-18 Thread Vesa
Hi, It would be nice to have some kind of tutorial on how to use this new addition. - Vesa -- 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 li

Re: [Lift] MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread Jim McBeath
Juan, I ran into this same bug. I have not yet had time to put together a test app to demonstrate it. That's on my to-do list, but if you get to it first, that would be great. Re not seeing the INSERT statement in your log file: the SQL is only logged after it is executed, and the log info incl

[Lift] Re: MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread opyate
I'll create the test app momentarily. Thanks Mr. Pollak - you're the reason I have a San Fran clock on my dashboard :-) On Nov 18, 2:52 pm, Jim McBeath wrote: > Juan, > > I ran into this same bug.  I have not yet had time to put together a > test app to demonstrate it.  That's on my to-do list,

Re: [Lift] odd ajax issue (works every other time)

2009-11-18 Thread Kris Nuttycombe
I've got a few other things that I have to take care of today, but if I can get those out of the way I will run a git bisect, compiling & running with your test project to see if I can at least figure out the commit that introduced the error. I've been wanting to learn about bisect anyway. :) Kris

[Lift] Re: MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread opyate
Issue created: http://github.com/dpp/liftweb/issues/#issue/199 The markdown went ballistic, and I don't know how to edit, but I'm sure the gist is communicated. Thanks guys! On Nov 18, 3:04 pm, opyate wrote: > I'll create the test app momentarily. > > Thanks Mr. Pollak - you're the reason I hav

[Lift] Where are the dragons hiding?

2009-11-18 Thread Paul Butcher
I'm seriously considering Lift for a new project. I know what the benefits of Scala and Lift are (that's why I'm seriously considering this as a route forwards :-) What I'm wondering is whether there are any lurking nasties that I should be aware of (so that I can avoid learning about them the hard

Re: [Lift] Re: MetaMapper trying to open Empty Box - best practice?

2009-11-18 Thread Ross Mellgren
There's an "edit" and "delete" link near the top (to the right of "Created nnn minutes ago by opyate", I believe) that you can use. If you make sure each "code" line has 4 spaces in front of it, markdown should do the right thing. -Ross On Nov 18, 2009, at 11:12 AM, opyate wrote: > Issue cr

Re: [Lift] Re: XML Parsing Error: prefix not bound to a namespace

2009-11-18 Thread Ross Mellgren
Still getting the same error? Can you post the code you're using so we can see what's going on? It looks like it should work, with the quotes. To confirm, the Appointment class is located in a your.package.snippet, and there's LiftRules.addToPackages ("your.package") in Boot.scala? Do you get

Re: [Lift] How to make Ajax call from "onLoad"/"onResize"?

2009-11-18 Thread Ross Mellgren
(n.b. not compiled or tested, and there might be an easier way:) class MySnippet { def handlers(ns: NodeSeq): NodeSeq = { val handleResize = SHtml.jsonCall(JE.JsObj("width" -> JE.JsVar ("window", "screen", "width"), "height" -> J

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Heiko Seeberger
Jim, 2009/11/17 Jim Barrows > > The behavior of a method, it's implementation is part of the contract I > have with the library. > Behavior yes, as long as agreed part of the contract. Implementation no. > So, just because you, or some committee ... > Not a committe, but the developer of the

[Lift] Re: Where are the dragons hiding?

2009-11-18 Thread Marius
On Nov 18, 6:31 pm, Paul Butcher wrote: > I'm seriously considering Lift for a new project. I know what the > benefits of Scala and Lift are (that's why I'm seriously considering > this as a route forwards :-) What I'm wondering is whether there are > any lurking nasties that I should be aware of

[Lift] Re: Where are the dragons hiding?

2009-11-18 Thread harryh
Some issues I've run into along the way that you should be aware of (in no particular order): - Don't use Lift with MySQL, they don't play nicely. Use PostgreSQL - Be away that Lift webservers are stateful, so if you have more than 1 of them serving the same application you will need sticky sess

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Jim Barrows
On Wed, Nov 18, 2009 at 10:25 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Jim, > > 2009/11/17 Jim Barrows > >> >> The behavior of a method, it's implementation is part of the contract I >> have with the library. >> > > Behavior yes, as long as agreed part of the contract. Imple

Re: [Lift] Lift & Scala style.

2009-11-18 Thread Heiko Seeberger
Hi, As "now is the time to improve names", I suggest to change the Actor names in lift-common: SimpleActor -> Receiver SimplestActor -> DefaultReceiver TypedActor -> Actor GenericActor -> BaseActor SimplestGenericActor -> DefaultActor Heiko 2009/11/16 Kris Nuttycombe > > Hi, all, > > This is

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Heiko Seeberger
Jim, Let's stop this discussion (I won't convince you and you wont't convince me) and start doing something more valuable: Are you in town for a couple of beers? Heiko 2009/11/18 Jim Barrows > > > On Wed, Nov 18, 2009 at 10:25 AM, Heiko Seeberger < > heiko.seeber...@googlemail.com> wrote: > >>

[Lift] Suggestion for a Lift app

2009-11-18 Thread Donna Malayeri
As I mentioned on the Scala mailing list (http://thread.gmane.org/ gmane.comp.lang.scala/18399), I've written a tool that will take scaladoc as XML input and write back to the Scala sources. From now on, submitted patches that are changes to scaladoc are to use this file format (described in the me

[Lift] Re: Where are the dragons hiding?

2009-11-18 Thread cody koeninger
On Nov 18, 11:32 am, harryh wrote: > - Don't use Lift with MySQL, they don't play nicely.  Use PostgreSQL > Can you elaborate? -- 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: Where are the dragons hiding?

2009-11-18 Thread Marius
If I may .. this statement is confusing leading to incorrect interpretation. Lift works with MySQL as ANY Java application. Harry may have referred to Lift's Mapper framework which for MySql may be some problems that I'm not aware of. But if MySQL becomes critical for you I'm sure things can be pri

[Lift] Re: Where are the dragons hiding?

2009-11-18 Thread harryh
See this thread: http://groups.google.com/group/liftweb/browse_thread/thread/4a174ecf34873967/ In which we discuss how certain queries generated by Mapper perform very poorly on MySQL. Certainly this problem could be addressed, but until it is using Mapper with MySQL will be problematic. -harry

[Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
Where are all the java source files in http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT-sources.jar? It's kind of hard to debug without them. Glenn -- You received this message because you are subscribed to the Google Groups "Lift" group. To p

Re: [Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Kris Nuttycombe
I recommend cloning dpp's github repository: http://github.com/dpp/liftweb Kris On Wed, Nov 18, 2009 at 11:41 AM, glenn wrote: > Where are all the java source files in > http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT-sources.jar? > > It's kind

Re: [Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Indrajit Raychaudhuri
Still, something looks wrong: http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.1-M7/lift-webkit-1.1-M7-sources.jar has the .scala sources but http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT-sources.jar doesn't. - Indrajit O

[Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
I'm returning Full(CreatedResponse(form, "text/xhtml" )) in LiftRules.DispatchPF, where form is just a MetaMapper.toForm node, which works fine in IE but fails in Firefox with the following error. XML or text declaration not at start of entity [Break on this error] http://www.w3.org/1999/xhtml";>

Re: [Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread Ross Mellgren
Try turning off the XHTML mime type by putting LiftRules.useXhtmlMimeType = false into your Boot and see if it goes away? -Ross On Nov 18, 2009, at 2:21 PM, glenn wrote: > I'm returning Full(CreatedResponse(form, "text/xhtml" )) in > LiftRules.DispatchPF, where form is just a MetaMapper.toFor

[Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
Kris, Don't want to clone the GitHub repo, as I need a Maven repo. Glenn On Nov 18, 11:19 am, Indrajit Raychaudhuri wrote: > Still, something looks wrong: > > http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.1-M7/l... > has the .scala sources > > buthttp://scala-tools.org/repo-sna

[Lift] Re: Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
Ross, Yep, that fixes it. Thanks, although I'm not sure if the solution is worse than the problem. I mean, what possible side affects could turning off the use of Xhtml mime type have? Glenn On Nov 18, 11:23 am, Ross Mellgren wrote: > Try turning off the XHTML mime type by putting > > LiftRules

Re: [Lift] Re: Firefox error in returning a CreatedResponse

2009-11-18 Thread Ross Mellgren
It's less rigorous. The reason you have to turn it off it is makes some javascript fail to work. Lift itself and all it generates (to my knowledge) out of the box works with it on, but some third party libraries don't like it on, as it disables document.write. I don't think offhand there's a

Re: [Lift] Re: Where are the dragons hiding?

2009-11-18 Thread Eros Candelaresi
Hi, Marius wrote: > On Nov 18, 6:31 pm, Paul Butcher wrote: > >> I'm seriously considering Lift for a new project. I know what the >> benefits of Scala and Lift are (that's why I'm seriously considering >> this as a route forwards :-) What I'm wondering is whether there are >> any lurking nast

Re: [Lift] Re: Firefox error in returning a CreatedResponse

2009-11-18 Thread David Pollak
On Wed, Nov 18, 2009 at 11:40 AM, Ross Mellgren wrote: > It's less rigorous. The reason you have to turn it off it is makes > some javascript fail to work. Lift itself and all it generates (to my > knowledge) out of the box works with it on, but some third party > libraries don't like it on, as i

Re: [Lift] odd ajax issue (works every other time)

2009-11-18 Thread David Pollak
Kris, As far as I can tell, it's a Jetty issue. Could you start by trying to reproduce the problem in Tomcat? If you can repro it in Tomcat, then clearly the problem is in Lift. If, however, the problem does not manifest in Tomcat, then we're poking Jetty wrong. Thanks, David On Wed, Nov 18,

Re: [Lift] odd ajax issue (works every other time)

2009-11-18 Thread David Pollak
Okay, I've reproduced the issue on Tomcat, so it's definitely something in Lift that's borking the session On Wed, Nov 18, 2009 at 12:00 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Kris, > > As far as I can tell, it's a Jetty issue. Could you start by trying to > reproduce the

Re: [Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Jeppe Nejsum Madsen
glenn writes: > Where are all the java source files in > http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT-sources.jar? > > It's kind of hard to debug without them. FWIW, http://github.com/dpp/liftweb/issues#issue/167 /Jeppe -- You received th

Re: [Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Indrajit Raychaudhuri
Tried a local build, sources.jar contains the *.scala files. And so does 1.1-M7. In both cases, they were built outside Hudson (Chas probably builds outside Hudson). At the moment I am suspecting Hudson, needs more investigation. - Indrajit On 19/11/09 1:49 AM, Jeppe Nejsum Madsen wrote: > gl

Re: [Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Kris Nuttycombe
On Wed, Nov 18, 2009 at 12:31 PM, glenn wrote: > Kris, > > Don't want to clone the GitHub repo, as I need a Maven repo. > > Glenn > Out of curiosity, is this because you have a Maven tool that helps automate interaction with a debugger? If so I'd be interested in learning about it - I've got a Li

[Lift] Lift Scaladocs for Maven?

2009-11-18 Thread braver
Perhaps I'm not looking in the right place, but I didn't find the scaladocs alongside the jars and source.jars for Lift in the usual maven repo. Are we supposed to use scaladoc manually, or IDEs, to generate the API docs? Also, I'm interested in liftweb-actor separately, and see its jar and source

Re: [Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Jeppe Nejsum Madsen
Kris Nuttycombe writes: > On Wed, Nov 18, 2009 at 12:31 PM, glenn wrote: >> Kris, >> >> Don't want to clone the GitHub repo, as I need a Maven repo. >> >> Glenn >> > > Out of curiosity, is this because you have a Maven tool that helps > automate interaction with a debugger? If so I'd be interest

[Lift] Presenting on Lift @ NYC Scala Meetup: Dec 7

2009-11-18 Thread harryh
For anyone who lives in the NYC are and would be interested in this sort of thing: http://www.meetup.com/New-York-Scala-Enthusiasts/calendar/11900384/ -harryh -- 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] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Kris Nuttycombe
On Wed, Nov 18, 2009 at 1:51 PM, Jeppe Nejsum Madsen wrote: > Kris Nuttycombe writes: > >> On Wed, Nov 18, 2009 at 12:31 PM, glenn wrote: >>> Kris, >>> >>> Don't want to clone the GitHub repo, as I need a Maven repo. >>> >>> Glenn >>> >> >> Out of curiosity, is this because you have a Maven tool

Re: [Lift] odd ajax issue (works every other time)

2009-11-18 Thread Kris Nuttycombe
I'm reproducing it on Glassfish, so yes I think it's Lift. Kris On Wed, Nov 18, 2009 at 1:18 PM, David Pollak wrote: > Okay, I've reproduced the issue on Tomcat, so it's definitely something in > Lift that's borking the session > > On Wed, Nov 18, 2009 at 12:00 PM, David Pollak > wrote: >>

[Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Marius
I've noticed this today as well but in a different context. Sometimes out of the sudden, I'm being kicked out of the session to the login page. Dave I wonder is this may have been caused by the S.init call inside LiftSession#contextFuncBuilder. I can't think of a reason right now on why would that

[Lift] Re: How to make Ajax call from "onLoad"/"onResize"?

2009-11-18 Thread jhonig
Hi Ross, Thanks for your suggestion! So I can actually use any jsonCall as if it were Ajax and deal with the result... OK, nice. Will try it out tomorrow! Job On Nov 18, 6:24 pm, Ross Mellgren wrote: > (n.b. not compiled or tested, and there might be an easier way:) > > class MySnippet { >

Re: [Lift] Re: How to make Ajax call from "onLoad"/"onResize"?

2009-11-18 Thread Ross Mellgren
Yes, jsonCall is an extension of ajaxCall that automatically does the JSON conversion for you, which why you get an immutable.Map out of it rather than a blob of text. Let me know how it works out. -Ross On Nov 18, 2009, at 4:16 PM, jhonig wrote: > Hi Ross, > > Thanks for your suggestion! S

Re: [Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread Jeppe Nejsum Madsen
Kris Nuttycombe writes: > On Wed, Nov 18, 2009 at 1:51 PM, Jeppe Nejsum Madsen wrote: >> Kris Nuttycombe writes: >> >>> On Wed, Nov 18, 2009 at 12:31 PM, glenn wrote: Kris, Don't want to clone the GitHub repo, as I need a Maven repo. Glenn >>> >>> Out of curiosity

[Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
You can either use debugging facilities in Eclipse or, as I mostly do, sprinkle a lot of println or Log.info statements around. But coding it right in the first place requires access to Lift source code, and for that I use maven's facility for downloading source jars from the pom. If the source jar

[Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Marius
Ok I did some more debugging on this. I put traces in the code and at some point when LiftRules is requesting the session from the SessionMaster I'm seeing a different sessionId provided to the SessionMaster thus the session is not found. I removed my addition from LiftSession#contextFuncBuilder

[Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Marius
My assumption on the causality is that things remained set on ThreadGlobals and threads are re-used by container. I know it doesn't make the most sense what I'm saying since the ThredGlobals are properly scoped but the previous thread-global value is cached and restored after the closure execution.

[Lift] Re: Where are the dragons hiding?

2009-11-18 Thread Paul Butcher
Thanks everyone - that's exactly the kind of information that I was looking for. Now all I need to do is persuade my colleagues that selecting a young technology (again) is a good idea ;-) Thanks again, paul.butcher->msgCount++ -- You received this message because you are subscribed to the Goo

Re: [Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread David Pollak
Marius, Thanks for tracking this down and checking in a fix. I'm still curious as to why a double-init was causing session destruction... I'll do more digging. We should also document this in the code (and maybe even thrown an exception on a double-init). Thanks, David On Wed, Nov 18, 2009 a

Re: [Lift] Presenting on Lift @ NYC Scala Meetup: Dec 7

2009-11-18 Thread David Pollak
I so wish I could come to this! On Wed, Nov 18, 2009 at 1:00 PM, harryh wrote: > For anyone who lives in the NYC are and would be interested in this > sort of thing: > > http://www.meetup.com/New-York-Scala-Enthusiasts/calendar/11900384/ > > -harryh > > -- > > You received this message because y

Re: [Lift] Re: Where are the dragons hiding?

2009-11-18 Thread David Pollak
Paul, I think this thread contains the key dragons in Lift. Basically, it boils down to: Lift is highly stateful... that has its pluses and minuses. We're working on mitigating the minuses (session replication and persistence). But one of the key things to keep in mind regarding Lift is how we

Re: [Lift] Lift Scaladocs for Maven?

2009-11-18 Thread Josh Suereth
Yes. http://www.scala-tools.org/. I think you need to look at the snapshot sites. Also, I'm not sure the scaladoc are being attached to the lift builds correctly. If one of the maven guru committers wants to attack that, otherwise I'll add it to my pile of TODOs. - Josh On Wed, Nov 18, 2009

[Lift] Re: Hello world problems

2009-11-18 Thread jimmy
Thankyou everybody for the prompt replies! I was running on a Windows XP machine with java sdk 1.6 already installed. I downloaded and ran the "windows installer" from here : http://liftweb.net/download.html I then followed the instructions here http://liftweb.net/docs/getting_started/mod_maste

Re: [Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Kris Nuttycombe
Okay, I finally got to test this an the fix looks good to me. Thanks Marius! Kris On Wed, Nov 18, 2009 at 3:26 PM, Marius wrote: > Ok I did some more debugging on this. > > > I put traces in the code and at some point when LiftRules is > requesting the session from the SessionMaster I'm seeing a

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Jim Barrows
Only if Phx is in town :) On Wed, Nov 18, 2009 at 10:48 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Jim, > > Let's stop this discussion (I won't convince you and you wont't convince > me) and start doing something more valuable: Are you in town for a couple of > beers? > > Heik

[Lift] Re: Lift Scaladocs for Maven?

2009-11-18 Thread aw
Note that the Maven Javadoc Plugin has a specific goal defined for creating a jar of the javadocs: http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html Then you need to add a goal to attach it when you create a package: http://maven.apache.org/plugin-developers/cookbook/attac

[Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Marius
Cool. On Nov 19, 6:54 am, Kris Nuttycombe wrote: > Okay, I finally got to test this an the fix looks good to me. Thanks Marius! > > Kris > > On Wed, Nov 18, 2009 at 3:26 PM, Marius wrote: > > Ok I did some more debugging on this. > > > I put traces in the code and at some point when LiftRules is

[Lift] Re: Ajax + Comet Chat across a Cluster

2009-11-18 Thread aw
I certainly understand the Actor model, but I am new to Akka... From browsing their wiki (http://wiki.github.com/jboner/akka), it is unclear to me that they provide a publish/subscribe concept -- and I think I would need that... Please point me to that reference if you are aware of that. I'll ta

[Lift] Re: odd ajax issue (works every other time)

2009-11-18 Thread Marius
That makes two of us David ... The thing is that during my debugging there was no session destruction and I traced this right in the guts of SessionMaster. The session was always there. But somehow the sessionId fed in was different even though the cookie seemed to be correct. I know I know ... it

Re: [Lift] Re: Ajax + Comet Chat across a Cluster

2009-11-18 Thread Margaret
hi,aw I create a simple chat app online http://maweis.com:8080 the source is git://github.com/maweis1981/chatOnLift.git if you have a good idea on cluster, dont forget to be share with us. - mawei...@gmail.com 13585201588 http://maweis.com

[Lift] Re: Lift Mapper support for Oracle Sequences

2009-11-18 Thread aw
Thank you Derek... Clever trick! I'm not using 1.1-SNAPSHOT -- I am using 1.1-M7... But that shouldn't matter to me since I am not using Schemifier to create and manage the database... (I am using LiquiBase.) I had imagined an alternative strategy whereby I would provide a sequence name to the