[Lift] Re: immutable bindings

2009-04-30 Thread Oliver Lambert
I just realized, I removed the header comments to the classes under the package scalame and had removed credit to Lift for SBind (modifying Bind). My apologies, and I understand my code is nowhere near as well written as the original. Oliver --~--~-~--~~~---~--~~

[Lift] [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
Guys, Maven just pulled the latest jars from hudson and ooops, now my project is broken! lol. The changes to the string helpers etc to move to double quotes not single quotes has broken my entire application which is due to go out tomorrow. For instance: {'useJSToGetCustomizationValues':

[Lift] Re: timestamp versioning for javascript includes

2009-04-30 Thread Alexander Kellett
On Wed, Apr 29, 2009 at 7:14 PM, David Pollak feeder.of.the.be...@gmail.com wrote: /classpath/date_2009_04_29_18_20/json.js i don't really see many advantages to having the number half way through the path, only disadvantages, it makes it slightly more difficult to see / copy and paste the

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Alexander Kellett
btw this is completely okay (no idea about valid) in a onclick for example, just not in a script block. On Thu, Apr 30, 2009 at 12:26 PM, Timothy Perrett timo...@getintheloop.eu wrote: Guys, Maven just pulled the latest jars from hudson and ooops, now my project is broken! lol. The

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
David, Thanks for your reply - so what your saying is that if I wrap it in a CDATA block then issues will go away? Thanks, Tim On Apr 30, 1:02 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Apr 30, 2009 at 3:26 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys,

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
Yeah of course - im already familiar with the Script object. My code looks like: def show(xhtml: NodeSeq): NodeSeq = bind(uedit, xhtml, application - Script(Run(script)) ) And the rendered html looks like: script type=text/javascript // ![CDATA[ swfobject.embedSWF(

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 5:44 AM, Timothy Perrett timo...@getintheloop.euwrote: Yeah of course - im already familiar with the Script object. My code looks like: def show(xhtml: NodeSeq): NodeSeq = bind(uedit, xhtml, application - Script(Run(script)) ) script is a String. How is it

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The items with ‘item’ single quotes are just concatenated strings as they are fixed paths etc. Its not those which are causing the problem – its the serialization of JsObj that appears to be the issue here. If you remember some time ago I was asking about JsObj and Map [String,String], anyway I

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The items with Œitem¹ single quotes are just concatenated strings as they are fixed paths etc. Its not those which are causing the problem ­ its the serialization of JsObj that appears to be the issue here. If you remember some time ago I was asking about JsObj and Map[String,String], anyway I

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 6:13 AM, Timothy Perrett timo...@getintheloop.euwrote: The items with ‘item’ single quotes are just concatenated strings as they are fixed paths etc. Its not those which are causing the problem – its the serialization of JsObj that appears to be the issue here. If you

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The latter, its a toString Are you doing a toJsCmd on the JsObj that you're creating or a toString? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 6:44 AM, Timothy Perrett timo...@getintheloop.euwrote: The latter, its a toString That's the problem. JsExp (JsObj is a JsExp) are NodeSeq as well (this is to support the ability to render XML literals and JavaScript into client-side node building). toString on a

[Lift] Re: [TheLiftBook:212] confused about version of lift referenced in book

2009-04-30 Thread Derek Chen-Becker
That's really weird. The version in Git uses 1.0. I just used this command: mvn archetype:generate -DarchetypeRepository= http://scala-tools.org/repo-snapshots-DarchetypeArtifactId=lift-archetype-jpa-basic -DarchetypeVersion=1.1-SNAPSHOT -DgroupId=com.foo.jpaweb -DartifactId=JPADemo

[Lift] RE: [TheLiftBook:214] Re: confused about version of lift referenced in book

2009-04-30 Thread Tim Pigden
Derek, Note jpa-blank-single. I actually pasted the text from pdf into local bat file so I could re-run. I did that last week, though I don’t think you’ve changed anything in that part of the book since. Only used lift from maven (in fact, to be honest I can’t claim to have used “lift” at all

[Lift] Re: Building lift on Windows

2009-04-30 Thread bradford
I can't get it to build on Windows XP. I get a different error though. YUI compressor complains about some invalid character at the start of some JavaScript file (which I don't see visible in the file). Unfortunately, I do not have the exact error available right now. On Apr 30, 10:41 am,

[Lift] Do I use a view for this type of redirect?

2009-04-30 Thread bradford
I have a link that needs to accept 2 request parameters, set a cookie according to param1, and then redirect to / + param2. Is this what a view is for? for example, /change_language?lang=en_USredirect=products. This would set the lang cookie to en_US (expiring in 3 years) and then redirect me

[Lift] Re: [TheLiftBook:215] Re: confused about version of lift referenced in book

2009-04-30 Thread Derek Chen-Becker
Ah. blank-single never existed under Lift 1.0, so I updated the POM to track Lift's snapshot. The only changes you should have to make to use the archetype under 1.0 is to modify the POM dependencies and set the scala.version property to 2.7.3. I believe we're looking at doing a bugfix release of

[Lift] Re: Do I use a view for this type of redirect?

2009-04-30 Thread bradford
Thank you, David. On Apr 30, 12:05 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Personally, I'd use a custom dispatch.  You're not rendering any HTML, so there's no reason to use the rendering machinery. LiftRules.dispatch.append {   case r @ Req(change_language :: Nil, _,

[Lift] Re: how to add object into session scope in lift

2009-04-30 Thread Andrew Scherpbier
Derek, That's awesome. I want to help. What can I do? I can start by proof reading stuff. --Andrew Derek Chen-Becker wrote: Updating docs are a high priority for me (an my TODO). I'm working on the proof copy of the APress book today and tomorrow but next week I'm going to start adding

[Lift] Re: javascript escaping issue!!

2009-04-30 Thread Derek Chen-Becker
I'll make sure to note all of the things discussed here in the API updates. On Thu, Apr 30, 2009 at 1:15 PM, Timothy Perrett timo...@getintheloop.euwrote: Thanks guys, this is working great now - never knew that about jscmd! Thanks, Tim On Apr 30, 3:15 pm, marius d. marius.dan...@gmail.com

[Lift] Showing a directory in lift

2009-04-30 Thread lostem...@gmail.com
I'm new to lift, so I'm sorry if it was covered somewhere, please point me to the link if it was. So the question is what is the best way to show a tree (directory tree, or yahoo type tree) in lift? It's a dynamic tree so it can't be hardcoded in code. Also I would like to have sitemap

[Lift] Re: [scala-user] Update to maven-scala-plugin 2.10.1 and add maven-compiler-plugin?

2009-04-30 Thread Heiko Seeberger
The root POM for what? Well, plugin settings are inherited by child projects = Hence you can import lift-webkit, lift-util, etc. into Eclipse and will find the correct compiler settings. Heiko 2009/4/30 Josh Suereth joshua.suer...@gmail.com I'm fine with these changes, but The root pom for

[Lift] Fwd: Update to maven-scala-plugin 2.10.1 and add maven-compiler-plugin?

2009-04-30 Thread Heiko Seeberger
Oops, wrong list = Once more ;-) -- Forwarded message -- From: Heiko Seeberger heiko.seeber...@googlemail.com Date: 2009/4/30 Subject: Update to maven-scala-plugin 2.10.1 and add maven-compiler-plugin? To: _scala-user scala-u...@listes.epfl.ch Hi, I would like to change the root

[Lift] Re: [scala-user] Update to maven-scala-plugin 2.10.1 and add maven-compiler-plugin?

2009-04-30 Thread Josh Suereth
Ah, sorry, I saw this come out on the scala-user mailing list. I assume you mean the root pom of Lift? Well, maven-scala-plugin 2.10.1 is working now, and I have lift as one of my final integration tests before release. So you should be good to go :). - Josh On Thu, Apr 30, 2009 at 4:08 PM,

[Lift] Re: Showing a directory in lift

2009-04-30 Thread marius d.
Please see the lift-widgets project. There is a tree widget in there. Br's, Marius On Apr 30, 10:36 pm, lostem...@gmail.com lostem...@gmail.com wrote: I'm new to lift, so I'm sorry if it was covered somewhere, please point me to the link if it was. So the question is what is the best way