[Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Xuefeng Wu
Hi, When I use ModalDialog I want to setup the css but fail, My code would be: ModalDialog(someHtml, top: '10px') I found the ModalDialog code at Lift: class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd { val toJsCmd = jQuery.blockUI({ message: +

[Lift] S.render function was removed

2009-12-03 Thread Paul Sandoz
Hi, Any reason why the S.render function was first commented out: http://github.com/dpp/liftweb/commit/b2b6bb4979e6e8d7d700c079432ded11fbcf9748#diff-1 and then removed: http://github.com/dpp/liftweb/commit/523e97751833ac03b522a224b31020fb72f1f70b#diff-7 ? See the following discussion

[Lift] Re: S.render function was removed

2009-12-03 Thread Marius
I think Dave commented it out and I remove it after it was commented out. I'm don't like very much code commented out. Personally I really don't think such API should exist. You already have a LiftSession#runTemplate that would process surrounds, snippets etc.Why would this not suffice? Br's,

Re: [Lift] Re: S.render function was removed

2009-12-03 Thread Paul Sandoz
On Dec 3, 2009, at 11:33 AM, Marius wrote: I think Dave commented it out and I remove it after it was commented out. I'm don't like very much code commented out. Personally I really don't think such API should exist. You already have a LiftSession#runTemplate that would process surrounds,

[Lift] Re: How to redirect to a specify url when logged in successfully?

2009-12-03 Thread Neil.Lv
I added this code in the User model, but it doesn't work yet. This println method is never executed. Maybe some configuration need to be set ? ### object User extends User with MetaMegaProtoUser[User] { ... override def loginFirst = If( loggedIn_? _, () = { import

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Alex Boisvert
On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, When I use ModalDialog I want to setup the css but fail, My code would be: ModalDialog(someHtml, top: '10px') I found the ModalDialog code at Lift: class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd {

[Lift] JSON Reponses

2009-12-03 Thread deadfolk
Hi all, I'm still at the evaluation stage of Lift, so please forgive my ignorance, but I cannot figure out how to render any non-XML reponses. I'm looking to create a simple web service which can send reponses back in either XML or JSON. I have the XML side covered, but I can't figure out how

Re: [Lift] JSON Reponses

2009-12-03 Thread Ross Mellgren
Try using a dispatch: LiftRules.dispatch.append { case Req(my::path::Nil, _, _) = () = Full(JavaScriptResponse (JSObj(foo - bar))) } in boot. When you visit http://host/my/path, a JSON response with { foo: bar } should be generated. -Ross On Dec 3, 2009, at 12:06 PM, deadfolk wrote:

Re: [Lift] JSON Reponses

2009-12-03 Thread David Pollak
Matt, Lift has 2 major branches in its rendering pipeline: standard XHTML and Dispatch. The standard XHTML is the view-first, snippet-based mechanism that loads the templates and processes the snippet stuff in the templates. The dispatch mechanism requires that you register a handler during the

Re: [Lift] JSON Reponses

2009-12-03 Thread Alex Boisvert
On Thu, Dec 3, 2009 at 9:06 AM, deadfolk deadf...@gmail.com wrote: I'm still at the evaluation stage of Lift, so please forgive my ignorance, but I cannot figure out how to render any non-XML reponses. I'm looking to create a simple web service which can send reponses back in either XML or

Re: [Lift] Re: S.render function was removed

2009-12-03 Thread David Pollak
Yeah I'm not sure why this code was removed. Please open a ticket and I'll put it back. On Thu, Dec 3, 2009 at 3:04 AM, Paul Sandoz paul.san...@sun.com wrote: On Dec 3, 2009, at 11:33 AM, Marius wrote: I think Dave commented it out and I remove it after it was commented out. I'm

Re: [Lift] Re: Filtering of script tags from ajax replies and executing the javascript

2009-12-03 Thread David Pollak
Jon, The joys of being a committer is that you can open a ticket for adding this feature (and others), add it, get it reviewed and get it into Lift. My general rules is that if a pattern is useful for builders of one or two production apps, they'll probably be useful for others. So, please

[Lift] Re: JSON Reponses

2009-12-03 Thread Daniel Nelson
Hi Matt, I'm pretty new/novice myself, but I believe you do this through View instead of Snippet. Don't forget to add the specific View page to Sitemap otherwise it won't be accessible when you call it. Hope this is accurate / helpful. Dan On Dec 3, 11:06 am, deadfolk deadf...@gmail.com

Re: [Lift] Re: JSON Reponses

2009-12-03 Thread Ross Mellgren
Views are for providing template XML, I believe, and so are still using NodeSeq and wouldn't address the problem. Looking at the type of LiftRules.viewDispatch seems to imply that, at least. -Ross On Dec 3, 2009, at 1:59 PM, Daniel Nelson wrote: Hi Matt, I'm pretty new/novice myself,

[Lift] Spaces getting removed from title in head merge?

2009-12-03 Thread Alex Black
In one of my templates I have this: lift:HelloWorld.foobar head titlehello:one vs hello:two/title /head /lift:HelloWorld.foobar The XHTML output I get looks like this: head titleOutput1vsOutput2/title /head Where hello:one is

Re: [Lift] Spaces getting removed from title in head merge?

2009-12-03 Thread Ross Mellgren
The example you posted isn't valid XML (needs to be hello:one / or something along those lines), so I'm wondering if you could post the actual example code? I can't think of any reason offhand those should be stripped. -Ross On Dec 3, 2009, at 2:41 PM, Alex Black wrote: In one of my

[Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Alex Black
Here's the actual code: head lift:Compare.products titlecompare:product1/ vs compare:product2//title /lift:Compare.products /head On Dec 3, 2:45 pm, Ross Mellgren dri...@gmail.com wrote: The example you posted isn't valid XML (needs to

Re: [Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Ross Mellgren
Hmm I can't reproduce it. Here's the whole template I used: lift:surround with=default at=content head lift:Compare.products titlecompare:product1 / vs compare:product2 //title /lift:Compare.products /head h2Welcome to your project!/h2 p /p

[Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Alex Black
I copy and pasted your template and snippet, and it reproduced the problem for me... strange. Keep in mind I am on Lift 1.0, is it possible this behaviour has changed? Here is the output from the template: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

Re: [Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Ross Mellgren
Ohh, I created a 1.1-SNAPSHOT one. It's possible, I guess, I'm not terribly familiar with 1.0. Can you upgrade to 1.1-SNAPSHOT? It's better in practically every aspect :-) -Ross On Dec 3, 2009, at 3:14 PM, Alex Black wrote: -- You received this message because you are subscribed to the

Re: [Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Ross Mellgren
Well, I'd recommend using 1.1-SNAPSHOT even so. It tends to be stable and 1.1-M8 (the next milestone) is going to be spun soon (next wednesday) As it is, I'm glad you found a workaround. -Ross On Dec 3, 2009, at 3:19 PM, Alex Black wrote: Ah.. I've worked around the problem for now. If

Re: [Lift] Re: Jetty question

2009-12-03 Thread David Pollak
On Wed, Dec 2, 2009 at 12:54 PM, Marius marius.dan...@gmail.com wrote: On Dec 2, 10:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett timo...@getintheloop.euwrote: Hey Marius, Im not 100% sure that Servlet 3.0 will solve

Re: [Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 12:19 PM, Alex Black a...@alexblack.ca wrote: Ah.. I've worked around the problem for now. If my snippet outputs titlefoo vs bar/title then the spaces don't get removed. I'm waiting on 1.1 to be released before upgrading - but if there is a stable release now I might

[Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread Alex Black
Thanks for the info - I'll look into trying out 1.1-M6. On Dec 3, 4:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Dec 3, 2009 at 12:19 PM, Alex Black a...@alexblack.ca wrote: Ah.. I've worked around the problem for now. If my snippet outputs titlefoo vs bar/title then the

[Lift] Re: Jetty question

2009-12-03 Thread Marius
Ok. I'll add a ticket on that and I'll start noodling on it followed up by a proposed solution. Br's, Marius On Dec 3, 10:51 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 2, 2009 at 12:54 PM, Marius marius.dan...@gmail.com wrote: On Dec 2, 10:26 pm, David Pollak

[Lift] json form and checkboxes

2009-12-03 Thread edgarchan
Hi i tried the json form tutorial (HowTo_use_JSON_forms) and everything was ok until i put some checkboxes ... the thing is that no matter how many of them i check only one is being send to the server. example lift:JSONForm.show input type=text name=name /

Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-03 Thread Derek Chen-Becker
I agree on both points (foreign keys and documentation). Please open a ticket asking for proper foreign key support and I'll work on it next week. Derek On Wed, Dec 2, 2009 at 6:05 PM, Julian Backes julianbac...@googlemail.comwrote: Hi Derek, It's been a long time since I looked at that

Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 1:47 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I agree on both points (foreign keys and documentation). Please open a ticket asking for proper foreign key support and I'll work on it next week. Please make sure it works on PG 8.0/8.1 as there is at least 1 Lift

Re: [Lift] json form and checkboxes

2009-12-03 Thread John Goodsen
Use the SHtml.checkbox to generate your checkboxes: From the ExploringLift book: The checkbox method generates a checkbox form element, taking an initial Boolean value as well as a function ( Boolean) = Any that is called when the checkbox is submitted. If you've done a lot of HTML form

Re: [Lift] json form and checkboxes

2009-12-03 Thread David Pollak
Yeah... this is a bug in the way we serialize the form. Please open a ticket at http://github.com/dpp/liftweb/issues On Thu, Dec 3, 2009 at 1:33 PM, edgarchan edgarchancarri...@gmail.comwrote: Hi i tried the json form tutorial (HowTo_use_JSON_forms) and everything was ok until i put some

[Lift] Newbie question on the Scala Todo sample application.

2009-12-03 Thread itsjar
Hi, when I was working on the tutorial I got to the point where it tells you to run it and go to localhost:8080. I was surprised to see a complete login/signup application which I didn't code. So when I set up the program by using the command: mvn archetype:generate -U \

[Lift] Re: Newbie question on the Scala Todo sample application.

2009-12-03 Thread Peter Robinett
Hey itsjar, The user account stuff was created for you because you used the lift- archetype-base archetype. Use lift-archetype-blank to get a truly blank setup. Peter On Dec 3, 3:47 pm, itsjar its...@gmail.com wrote: Hi, when I was working on the tutorial I got to the point where it tells

Re: [Lift] Newbie question on the Scala Todo sample application.

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 3:47 PM, itsjar its...@gmail.com wrote: Hi, when I was working on the tutorial I got to the point where it tells you to run it and go to localhost:8080. I was surprised to see a complete login/signup application which I didn't code. So when I set up the program by

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Xuefeng Wu
http://github.com/dpp/liftweb/issues/#issue/218 Thanks On Thu, Dec 3, 2009 at 10:37 PM, Alex Boisvert alex.boisv...@gmail.comwrote: On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, When I use ModalDialog I want to setup the css but fail, My code would be:

[Lift] Schemify has SQL Exception, IDENIFY instead of IDENTIFY is in the SQL query

2009-12-03 Thread James Black
I had used LIFT 1.0 to build my framework, and I am curious what I need to do to get beyond this error. I tried to use mvn -U clean install compile jetty:run I had set my dependency in pom.xml to point to LIFT 1.0, 1.0.2 and 1.1, but none of these made any difference, so I am not certain it made

[Lift] (Maybe it's a bug ?) About the Schedule's execute counts in the ActorComet

2009-12-03 Thread Neil.Lv
Hi all, Here is an example code that about the ActorComet. ### package com.liftcode.comet import net.liftweb._ import http._ import js._ import JsCmds._ import net.liftweb.common._ import net.liftweb.util._ import Helpers._ import net.liftweb.http._ import _root_.scala.xml._ import