Done in dpp_issue_276.
I couldn't get the compilation through, however.
For now, let lift-oauth-mapper be a peer to lift-oauth with dependency
on lift-oauth and lift-mapper. We might have to do little bit of nesting
down the line if lift modules get too much crowded at the top level. But
Hi,
What's the preferred way of sending back a static file (that lives on
the host filesystem) through lift? I'm using lift's custom dispatch.
I'm currently putting a FileInputStream into StreamingResponse. I'm
not setting a Content-Type in the StreamingResponse constructor, but
Jetty seems to
It works like a charm,
thanks David
On Jan 8, 5:09 am, David Pollak feeder.of.the.be...@gmail.com wrote:
On Thu, Jan 7, 2010 at 2:24 PM, Mads Hartmann mads...@gmail.com wrote:
Hello
Is it possible to add a Loc to the menu which would point to a file in
webapp/allcategories.html but the url
On Thu, Jan 7, 2010 at 6:34 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Can you post some example code of your current thinking as a GitHub project
and we can work on refining it and tuning Mapper/MetaMapper to suit your
needs?
I realize the original mail wasn't that informative.
(Sorry for the late reply ... I were disconnected from internet)
So, I just have to wait for the patch approval by the review board, great !
Thank you very much for your help, Ross, Tim and David !
Jean-Luc
2010/1/8 David Pollak feeder.of.the.be...@gmail.com
On Thu, Jan 7, 2010 at 5:12 PM,
Hi,
I'm really new with lift.
I wanted to create a new menu object, there is no problem to display
this new object, but when i click on it, there is a error message...
Here is what i did:
- created the file: /src/main/webapp/test/test.html
- in the file Boot.scala, i wrote:
// Build SiteMap
I'm really enjoying using Lift. It makes this AJAX and comet stuff
very easy!
I have a problem with rendered AJAX NodeSeqs using SHtml.
This is within a Comet actor. On first render, it works fine. For
instance, in my HTML, I get:
a key=F2524140538393W2 href=javascript://
How does you partialUpdate code looks like?
Note that with partialUpdate you need to return a JsCmd, and not a
NodeSeq.
Br's,
Marius
On Jan 8, 2:25 pm, Dan Gravell dan.grav...@talk21.com wrote:
I'm really enjoying using Lift. It makes this AJAX and comet stuff
very easy!
I have a problem
Hi Marius. It's pretty simple:
creations : Seq[JsCmd]
deletions : Seq[JsCmd]
partialUpdate(JsCmds.seqJsToJs(creations ++ deletions))
Which is just a seq of JsCmds right? The JsCmds themselves appear to
work ok, it's just that a small part of their content (this AJAX a)
is not rendered correctly.
Here's some example cut down code:
JsCrVar(newDiv, Jq(JsRaw(nodeSeq.toString.encJs)) ~ JsFunc(hide))
Jq(JsVar(newDiv)) ~ JsFunc(insertInOrder, # + BLAH)
JsRaw(newDiv) ~ JsFunc(fadeIn, slow)
Where nodeSeq is the NodeSeq we are discussing.
Dan
On Jan 8, 2:07 pm, Dan Gravell
I need to see a sample code how you are creating the link and how you
set it on the JsCmd. No lift:a is not automatically resolved as the
a snippet is not processed here.
Typically if you want to deal with xml nodes and JsCmc you'd need to
use Jx classes. This creates a JS document fragment out
The path of your page, represented by the List in the Loc, should
decompose all path item as list item.
I.e. Menu(Loc(Test), List(test, test), Test Page)) :: [...]
On Jan 8, 12:03 pm, Lagonn cparga...@gmail.com wrote:
Hi,
I'm really new with lift.
I wanted to create a new menu object, there
Ok, from the top. The actor sends the following partialUpdate:
partialUpdate(creations)
Where creations is
def creations = {
JsCrVar(newDiv, Jq(JsRaw(newDiv(obj).toString.encJs)) ~
JsFunc(hide))
Jq(JsVar(newDiv)) ~ JsFunc(insertInOrder, # + BLAH)
JsRaw(newDiv) ~
Jim Wise jw...@draga.com writes:
However, although the new defaultValue is honored, the new validations
don't seem to get run -- I can create duplicate, empty, or illegal
category names without triggering a FieldError.
What am I missing?
This turns out to have been a maven/dependency issue
Hello,
I'm playing around with the AutoComplete widget, or rather trying to
play around with it. I've looked at the example project called
'example' that is included in the Lift-1.1-M8 version of lift (which
compiles and runs smoothly) but when i try to integrate it in my own
project i get the
Jim Wise jw...@draga.com writes:
Validation is now working fine -- I'll push it to github after a little
cleanup.
Done.
--
Jim Wise
jw...@draga.com
pgp4LsteWgMBn.pgp
Description: PGP signature
If I'm not mistaken the reason why I used a mixin trait and not
LifecycleCallback in OneToMany is to affect the return value of save and
delete_!.
-
Jeppe Nejsum Madsenje...@ingolfs.dk wrote:
On Thu, Jan 7, 2010 at 6:34 PM, David Pollak
--
Heiko Seeberger
My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post
Did you smoke test the lift-examples/example app?
On Fri, Jan 8, 2010 at 9:45 AM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
--
Heiko Seeberger
My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the
Hi all,
Let me preface this by saying that I'm learning Lift, so I'm a
relative newbie. Please be gentle.
I'm struggling to figure out a good way to do role-based authorization
natively in Lift. Based on examples in the Lift book, the wiki, and
reading the Lift source, I've gotten to
val roles
On Fri, Jan 8, 2010 at 12:14 AM, Indrajit Raychaudhuri
indraj...@gmail.comwrote:
Done in dpp_issue_276.
I couldn't get the compilation through, however.
For now, let lift-oauth-mapper be a peer to lift-oauth with dependency on
lift-oauth and lift-mapper. We might have to do little bit of
Ethan,
Dont worry, this appears to be a confusing thing for many lift new-
commers. The role stuff is *only* for use with HTTP authentication...
for the scenario you described, it wont help you.
What is it you want to authenticate? A user? An api call?
Cheers, Tim
On Jan 8, 5:45 pm, Ethan
You have to include the lift-widget dependency in your pom.xml file.
On Fri, Jan 8, 2010 at 8:51 AM, Mads Hartmann mads...@gmail.com wrote:
Hello,
I'm playing around with the AutoComplete widget, or rather trying to
play around with it. I've looked at the example project called
'example'
On 09/01/10 12:10 AM, David Pollak wrote:
On Fri, Jan 8, 2010 at 12:14 AM, Indrajit Raychaudhuri
indraj...@gmail.com mailto:indraj...@gmail.com wrote:
Done in dpp_issue_276.
I couldn't get the compilation through, however.
For now, let lift-oauth-mapper be a peer to lift-oauth
On Fri, Jan 8, 2010 at 7:09 AM, elsten software
elstensoftw...@googlemail.com wrote:
Ok, from the top. The actor sends the following partialUpdate:
partialUpdate(creations)
Where creations is
def creations = {
JsCrVar(newDiv, Jq(JsRaw(newDiv(obj).toString.encJs)) ~
JsFunc(hide))
Ethan,
This is a very interesting issue.
You're right the Req (uest) instance is not available at the time of the
auth call. Normally, the Req object is available in S(tate), but S the S
context is not entered at the time of the auth.
So, I think we have two choices:
1. Change up the
Aha! Works, thanks a lot again :) How come that dependency isn't
listed in the dependencies tag in the example project?
On Jan 8, 7:58 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
You have to include the lift-widget dependency in your pom.xml file.
On Fri, Jan 8, 2010 at 8:51 AM,
Tim,
Right now I'm trying to authenticate an API call using a session token
that can be resolved to a specific user. Authorization is then based
on the user.
My thought was that I might be able to bypass issue #2 by creating a
custom class extending the HttpAuthentication trait (first with Lift
I am reading through the lift book to start getting an understanding
of lift.
I saw code like this
override def readPermission_? = true
override def writePermission_? = true
protected def i_obscure_!(in : BigDecimal) = defaultValue
protected def real_i_set_!(value : BigDecimal): BigDecimal = {
On Fri, Jan 8, 2010 at 11:54 AM, harmanjd harma...@gmail.com wrote:
I am reading through the lift book to start getting an understanding
of lift.
I saw code like this
override def readPermission_? = true
override def writePermission_? = true
protected def i_obscure_!(in : BigDecimal) =
On Fri, Jan 8, 2010 at 12:12 PM, Jim Wise jw...@draga.com wrote:
harmanjd harma...@gmail.com writes:
My question is if there is some implied meaning by ending a field in
_! or not? It seems confusing as a newbie to have that when scala has
an _ operator and a _*. I got confused with
On Fri, Jan 8, 2010 at 11:43 AM, Mads Hartmann mads...@gmail.com wrote:
Aha! Works, thanks a lot again :) How come that dependency isn't
listed in the dependencies tag in the example project?
The examples all depend on lift-core which is everything in Lift
On Jan 8, 7:58 pm, David Pollak
David Pollak feeder.of.the.be...@gmail.com writes:
The _ is required by the Scala parser. open! is not a valid method name,
but open_! is valid.
Aha!
--
Jim Wise
jw...@draga.com
pgpCgWKVQwRyO.pgp
Description: PGP signature
On Fri, Jan 8, 2010 at 12:21 PM, Ethan Jewett esjew...@gmail.com wrote:
David,
For my use case (where pretty much the entire API is authenticated
anyway), I would be perfectly fine if there was a second signature
that tested a Req before the dispatch, allowing me to do my
authorization code
It looks like Lift sets response headers to prohibit caching of
responses. I have some pages I need to permit the browser to cache,
whats the best way to go about that?
Can I overwrite/change the response headers? I don't see a method to
do this on S, I do see S.getHeaders?
Thanks!
- ALex
--
I definitely agree for httpAuthProctectedResource to take a Req
instead of a ParsePath even this is a breaking change but I doubt that
many people are using this yet. I could implement this tomorrow if
this is fine with everyone.
Br's,
Marius
On Jan 8, 10:28 pm, David Pollak
On Fri, Jan 8, 2010 at 12:55 PM, Marius marius.dan...@gmail.com wrote:
I definitely agree for httpAuthProctectedResource to take a Req
instead of a ParsePath even this is a breaking change but I doubt that
many people are using this yet. I could implement this tomorrow if
this is fine with
On Fri, Jan 8, 2010 at 12:28 PM, Alex Black a...@alexblack.ca wrote:
It looks like Lift sets response headers to prohibit caching of
responses. I have some pages I need to permit the browser to cache,
whats the best way to go about that?
Open a ticket and we'll add the feature. ;-)
Can
On Jan 8, 10:58 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Fri, Jan 8, 2010 at 12:55 PM, Marius marius.dan...@gmail.com wrote:
I definitely agree for httpAuthProctectedResource to take a Req
instead of a ParsePath even this is a breaking change but I doubt that
many people
I got something working like this:
LiftRules.defaultHeaders = {
// Permit caching of our home page
case (_, Req(List(index),_,_)) =
List(Cache-Control - private, max-age=10800, pre-
check=10800,
Pragma - private,
Expires -
Why is Box.open_! nasty? is it just returning the value held in Box?
Thanks_!
On Jan 8, 3:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Fri, Jan 8, 2010 at 11:54 AM, harmanjd harma...@gmail.com wrote:
I am reading through the lift book to start getting an understanding
of
Gang wangga...@gmail.com writes:
Why is Box.open_! nasty? is it just returning the value held in Box?
Thanks_!
Or throwing an exception if the box is not Full()...
--
Jim Wise
jw...@draga.com
pgptg5cEOK2TD.pgp
Description:
This may have been discussed before but I couldn't find it, so here is
goes.
I know that in the past Comet and other actor using features did not
work on Google App Engine. Did the new Lift Actors solve this problem?
and if so what versions (or nightlies) have this code?
Also I understand that
So I'm trying to write the CouchDB / Lift-JSON record instance, however I've
run into a major snag, which is null handling. The DBRecord implementation is
not complete, so I can't see how other things are doing it, and I tried hacking
around and I can't figure out how Record supports null
Arthur,
I've got a design for a thread-stealing dispatch model for Lift Actors, but
haven't had time to implement it.
Sorry.
David
On Fri, Jan 8, 2010 at 3:18 PM, Arthur arthur.pet...@gmail.com wrote:
This may have been discussed before but I couldn't find it, so here is
goes.
I know that
Folks,
HarryH and FourSquare have kindly donated their OAuth server code to the
Lift code base (Thanks guys!). The code is on review board at
http://reviewboard.liftweb.net/r/172/ And it's on the dpp_issue_276 branch.
If anyone out their is interested in OAuth server support in Lift, please
Whilst I didn't need option feilds, making custom field types is part
of the course with Record as the defaults are just that; defaults :-)
Cheers, Tim
Sent from my iPhone
On 8 Jan 2010, at 23:37, Ross Mellgren dri...@gmail.com wrote:
So I'm trying to write the CouchDB / Lift-JSON record
It's nasty because it could blow up with either exception or null -
neither of which we like in scala land!
Boxing values keeps things far more managable
Cheers, Tim
Sent from my iPhone
On 8 Jan 2010, at 21:52, Gang wangga...@gmail.com wrote:
Why is Box.open_! nasty? is it just returning
Hi is it possible to integrate Apache Sling ( http://sling.apache.org ) which
uses Apache Jackrabbit: JCR as its back-end with Lift? I understand that Lift
processes forms differently, the code below is an excerpt from
http://people.apache.org/~mduerig/scala4sling/scala4sling.pdf in which
Hey guys,
i was wondering if i can implement a real distributed application with
lift and akka.
Since akka actors can be forwarded (so that the actor can reply to the
original sending actor),
i thought it would be awesome if my akka-remoteActor could directly
reply to a lift actor to interact
50 matches
Mail list logo