Please post a reproducible example. I use this call pretty regularly and
have not seen any problems.
Sure thing. I will put something together tomorrow. If feel like I
must be making a silly newbie mistake of some kind because I'm sure
that you (and others) must be doing this sort of things
Hi,
I am new to lift .
I am using mapper framework.
i have table emp with name ,salary, location columns
now i want to put query to find employee whose salary is less than
1 and greater that 1000 and location is California.
For this i am using BySql query...as foolows -
val emp_List =
David Pollak feeder.of.the.be...@gmail.com writes:
* DSL to produce valid JSON
Examples:
http://github.com/jonifreeman/liftweb/tree/e2e59b63a427258e7dde9b0877691322c29c8552/lift-json
Sweet! Will this be integrated with Lift's Js constructs so we can use
this to e.g construct a JsObj?
pravin pravinka...@gmail.com writes:
Hi,
I am new to lift .
I am using mapper framework.
i have table emp with name ,salary, location columns
now i want to put query to find employee whose salary is less than
1 and greater that 1000 and location is California.
For this i am using
Bienvenue
On Thu, Aug 13, 2009 at 18:06, David
Pollakfeeder.of.the.be...@gmail.com wrote:
Folks,
I'm pleased to announce that Joni Freeman has joined the Lift committers.
Joni will be adding his high performance JSON library as a module in Lift...
and I certainly hope that Lift's JSON
i am a newer to lift, and now i am reading the book the definitive
guide to lift. In chapter 5.1, book told me this:
val helpMenu = Menu(Loc(helpHome,(help :: :: Nil) -
true,Help)) make all the files under help folder accessible, but i
found the loc object in the Menu item should write like
On Aug 14, 11:10 am, xiaomingzhen...@gmail.com
xiaomingzhen...@gmail.com wrote:
i am a newer to lift, and now i am reading the book the definitive
guide to lift. In chapter 5.1, book told me this:
val helpMenu = Menu(Loc(helpHome,(help :: :: Nil) -
true,Help)) make all the files under help
marius d. marius.dan...@gmail.com writes:
[...]
besides, does all pages accessible in lift project must be import to
Sitemap?
To access a page you should put it in the SiteMap. You can choose to
not use SiteMap at all but rather work only with DispatchPF and so on,
but for a web
What listing from the book are you referring to ? 7.13 ?
lift:Ledger.balance
ledger:time ledger:id=myId class=bold/
/lift:Ledger.balance
and the code:
class Ledger {
def balance (content : NodeSeq ) : NodeSeq = {
bind (ledger, content,
time - span{(new java.util.Date).toString}/span)
}
}
Is the path to that file defined in your SiteMap? In the case of using
ResourceServer, the js that you've tried means that the script should be
under a js subdir.
Derek
On Thu, Aug 13, 2009 at 7:57 PM, Peter Robinett pe...@bubblefoundry.comwrote:
My Lift project is in a git repository and to
That looks like a typo in the book. I'll fix it.
Derek
On Fri, Aug 14, 2009 at 2:10 AM, xiaomingzhen...@gmail.com
xiaomingzhen...@gmail.com wrote:
i am a newer to lift, and now i am reading the book the definitive
guide to lift. In chapter 5.1, book told me this:
val helpMenu =
On Fri, Aug 14, 2009 at 1:10 AM, xiaomingzhen...@gmail.com
xiaomingzhen...@gmail.com wrote:
i am a newer to lift, and now i am reading the book the definitive
guide to lift. In chapter 5.1, book told me this:
val helpMenu = Menu(Loc(helpHome,(help :: :: Nil) -
true,Help)) make all the
Yes, 7.12 vs. 7.13.
Apparently the prefix is not supposed to be lift like I thought but the prefix
of the node it belongs to. But I still have the question. It would seem more
logical that just like nodes, attributes that are prefixed are not html, and
html attributes should not be prefixed.
On Fri, Aug 14, 2009 at 12:31 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
David Pollak feeder.of.the.be...@gmail.com writes:
* DSL to produce valid JSON
Examples:
http://github.com/jonifreeman/liftweb/tree/e2e59b63a427258e7dde9b0877691322c29c8552/lift-json
Sweet! Will this be
On Thu, Aug 13, 2009 at 10:26 PM, pravin pravinka...@gmail.com wrote:
Hi,
I am new to lift .
I am using mapper framework.
i have table emp with name ,salary, location columns
now i want to put query to find employee whose salary is less than
1 and greater that 1000 and location is
Of course you can access it from the snippet. But if you want it to be output
automatically, then you prefix it with whatever the node's prefix is. In other
words, by default it's not outputted.
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Thu, Aug
Basically, you're asking why a bind tag like
ledger:entry id=foo class=bar /
doesn't preserve the id and class attrs when it binds, but
ledger:entry ledger:id=foo ledger:class=bar /
does?
Derek
On Fri, Aug 14, 2009 at 10:08 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Of course you
On Fri, Aug 14, 2009 at 9:08 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Of course you can access it from the snippet. But if you want it to be
output automatically, then you prefix it with whatever the node's prefix is.
In other words, by default it's not outputted.
This has nothing
Exactly!
-
Derek Chen-Beckerdchenbec...@gmail.com wrote:
Basically, you're asking why a bind tag like
ledger:entry id=foo class=bar /
doesn't preserve the id and class attrs when it binds, but
ledger:entry ledger:id=foo ledger:class=bar /
does?
Derek
On
On Fri, Aug 14, 2009 at 9:23 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Exactly!
-
Derek Chen-Beckerdchenbec...@gmail.com wrote:
Basically, you're asking why a bind tag like
ledger:entry id=foo class=bar /
doesn't preserve the id and class
The book seems to think it's intentional!
But why can't unprefixed nodes by preserved automatically? Maybe there could be
a setting?
Thanks.
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Fri, Aug 14, 2009 at 9:23 AM, Naftoli Gugenheim
On Fri, Aug 14, 2009 at 9:43 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
The book seems to think it's intentional!
I'm not sure how the code crept in, but it's wrong and should not have been
part of Lift.
But why can't unprefixed nodes by preserved automatically?
I explained this
Hi,
How do I tell lift to serve /foo.html directly (without parsing xml
or adding javascript) where foo.html is a file that lives in my
webapp folder? I still want lift to process the rest of my html
files.
- Jon
--~--~-~--~~~---~--~~
You received this message
Where above? Do mean when you said that binding is about inserting xml in well
defined points?
If so, I understand that, but it would be convenient if there was a simple way
that SHtml inputs could take their attributes from the view.
-
David
LiftRules.liftRequest.append {
case Req(foo :: Nil, _, _) = false
}
On Fri, Aug 14, 2009 at 9:54 AM, jon jonhoff...@gmail.com wrote:
Hi,
How do I tell lift to serve /foo.html directly (without parsing xml
or adding javascript) where foo.html is a file that lives in my
webapp folder? I
On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Where above?
The contents of my messages send 35 minutes ago:
This has nothing to do with snippets. This is below the level of the
snippet. This is the operation of the bind() operation (if I understand
your
I'm seeing some odd behaviour with a cookie I'm setting not being
removed. I'm unsure which phase of my code is broken or how deep my
misunderstandings are here... so I'm looking for some clues.
I'm setting a keep me logged in cookie for users of my application.
That works fine using...
val c
I guess #2 was what I was looking for. :)
I wrote some code that enables me to bind
query % SHtml.text(clientQuery, clientQuery=_)
which means you're actually binding to a function that preserves the input
node's attributes.
Does anyone like/dislike the syntax or feature?
Thanks.
Tim, Viktor,
Do you wire your SOAP services into lift or do you keep that independent? i
was just talking to DPP and according to him it appears you can successfully
wire WS-generated code anywhere along in the http-request processing
pipeline. He pointed out a gotcha that i think can be
It is not in my site map. I did try the ResourceServer with the
symlinked script in the 'js' subdir.
Peter
On Aug 14, 6:43 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
Is the path to that file defined in your SiteMap? In the case of using
ResourceServer, the js that you've tried means
By the way, there does seem to be some other kind of built in attribute binding
mechanism (BindWithAttr, etc.). How does it work?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
The book exposes current functionality for Lift 1.0. If functionality
X was not intended to be there is a different story, but regardless it
is there and the way I see it it is OK to be in the book.
Personally I don't see it as defect as preserving attributes (to the
top level resulting NodeSeq)
As I mentioned, I wrote some code that allows you to use % instead of - to
preserve the attributes. (I chose it because the % symbol is used to merge
attributes to an Elem.) The right side can be an Elem or a Box/Option of an
Elem.
What do people think of this syntax?
P.S. Another way is to
IMHO:
The problem with
name some_new_operator_beside_- expr
would lead to a handful of overloading as - in SuperArrowAssoc. Looks
a little messy to me.
Looks like we already have a way to do this:
import Helpers._
name - {node: NodeSeq = mixinAttributes(expr _that_yields_an_Elem)
(node)}
I have a stateful snippet:
class TemplateEditor
extends StatefulSnippet
{
...
val template =
(TemplateEditor.template.is
openOr
S.redirectTo(chooser, () = {
S.error(Session information lost, please choose what
template to edit again)
Not sure if I read your message closely enough, but if you want to redirect to
a pre-initialized StatefulSnippet, one option is to instantiate it and use its
snippet function in call to S.mapSnippet, in the redirect function. This will
override lift's default behavior and use the snippet
The missing piece there is that I would like it to redirect to another
page if the RequestVar is not populated. With mapSnippet, it sounds
like I'd have to have a dummy snippet with the same shape as the
original snippet where all the snippets redirect, e.g.
class
I agree with Viktor - in a similar vein, this is exactly what I
implemented with Akka; the servlet runs in conjunction with lifts
filter and lift just hands off stuff it doesnt know what to do with.
So if you want to use AxisServlet or whatever its real easy.
From my point of view, you'd need a
I think it's a mistake, and it's per request. Could someone confirm?
In any case, I don't see why you need a separate template class or a RequesVar.
Just use an Option or Box var in your snippet, and let it redirect whenever
it's None/Empty. You can put the check in the dispatch partial
The problem with the Box is unwrapping it in every snippet method,
when I really want to guarantee that if the StatefulSnippet is
instantiated, it has these parameters. Moreover, I have additional
pieces of state which need to be initialized based on the other
parameters.
For this
They're just names of pages in my app which have a similar functionality.
Anyway, one method you can use is:
Make your snippet functions actually have a parameter list before the xhtml
parameter list:
def edit(x: X)(xhtml: NodeSeq) = ...
or alternatively
def edit(x: X) = (xhtml: NodeSeq) = ...
Or you could define a def that returns it unboxed if possible or else redirects
the first time its accessed.
-
Ross Mellgrendri...@gmail.com wrote:
Yeah, I don't want to do that because then I have to either modify all
the snippet methods to handle the
Yeah, I don't want to do that because then I have to either modify all
the snippet methods to handle the state or treat each snippet method
differently depending on which state I know it needs, and then also
pass down any state the snippet methods receive to any helper methods
they might
Hi all,
I'm part of a very young Silicon Valley startup that is looking for
Lift developers. We use ultra-low-power WiFi-based temperature sensors
to monitor rack temperatures in datacenters. RIght now it's just me
doing the main development, and as I'm sure you've noticed on this
list, I'm
44 matches
Mail list logo