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: " +
AltXML.toXML(Group(S.sessio
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
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,
Mar
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 surround
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 net.li
On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu 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 {
> val
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 to
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, dead
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
On Thu, Dec 3, 2009 at 9:06 AM, deadfolk 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 JSON. I have t
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 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 don't like very m
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 don't
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 wrote:
> Hi all,
>
> I'm
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,
In one of my templates I have this:
vs
The XHTML output I get looks like this:
Output1vsOutput2
Where hello:one is "Output1" and hello:two is "Output2", where did my
spaces go, between the items and the "vs"?
- Alex
The example you posted isn't valid XML (needs to be 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 templates I hav
Here's the actual code:
vs
On Dec 3, 2:45 pm, Ross Mellgren wrote:
> The example you posted isn't valid XML (needs to be or
> something along those lines), so I'm wondering if you could post the
> actual example code? I can't
Hmm I can't reproduce it. Here's the whole template I used:
vs
Welcome to your project!
And snippet:
class Compare {
def products(in: NodeSeq): NodeSeq =
Helpers.bind("compare", in, "product1" -> "foo", "product2" ->
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:
http://liftweb.net/"; xmlns="http://www.w3.org/1999/
xhtml">
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 G
Ah.. I've worked around the problem for now. If my snippet outputs
foo vs bar 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 try it out.
- Alex
On Dec 3, 3:16 pm, Ross Mellgren wrote:
> Ohh, I created a 1.1-SN
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 m
On Wed, Dec 2, 2009 at 12:54 PM, Marius wrote:
>
>
> On Dec 2, 10:26 pm, David Pollak
> wrote:
> > On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett <
> timo...@getintheloop.eu>wrote:
> >
> > > Hey Marius,
> >
> > > Im not 100% sure that Servlet 3.0 will solve our problems... im
> > > worried tha
On Thu, Dec 3, 2009 at 12:19 PM, Alex Black wrote:
> Ah.. I've worked around the problem for now. If my snippet outputs
> foo vs bar 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 try it out.
>
In general
Thanks for the info - I'll look into trying out 1.1-M6.
On Dec 3, 4:11 pm, David Pollak wrote:
> On Thu, Dec 3, 2009 at 12:19 PM, Alex Black wrote:
> > Ah.. I've worked around the problem for now. If my snippet outputs
> > foo vs bar then the spaces don't get removed.
>
> > I'm waiting on 1.1 to
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
wrote:
> On Wed, Dec 2, 2009 at 12:54 PM, Marius wrote:
>
> > On Dec 2, 10:26 pm, David Pollak
> > wrote:
> > > On Wed, Dec 2, 2009 at 12:24 PM, Timothy
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
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
wrote:
> Hi Derek,
>
> > It's been a long time since I looked at that particular code, so I may
>
On Thu, Dec 3, 2009 at 1:47 PM, Derek Chen-Becker wrote:
> 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 app in
production
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 processi
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 wrote:
> Hi
>
> i tried the json form tutorial (HowTo_use_JSON_forms) and everything
> was ok until i put some checkboxes ... the thing i
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 \
-DarchetypeGroupId=
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 wrote:
> Hi,
>
> when I was working on the tutorial I got to the point where it tells
> you to run it
On Thu, Dec 3, 2009 at 3:47 PM, itsjar 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 using the co
http://github.com/dpp/liftweb/issues/#issue/218
Thanks
On Thu, Dec 3, 2009 at 10:37 PM, Alex Boisvert wrote:
> On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu wrote:
>
>> Hi,
>>
>> When I use ModalDialog I want to setup the css but fail,
>> My code would be:
>> ModalDialog(someHtml, "top: '10px'")
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
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 scala.acto
37 matches
Mail list logo