Oh yes of course!
Ergo, the sitemap should be:
val entries = SiteMap(Menu(Loc(Home, index :: Nil , ?
(Home))),
Menu(Loc(Authors, authors :: list :: Nil, ?
(Author List))),
Menu(Loc(Add Author, authors :: add :: Nil, ?
(Add Author), Hidden)),
Ah cool - this is quite nice actually; good work Oliver!
@Derek, what are your thoughts?
It certainly strikes me that as time wears on and more people are
using the lift/jpa stuff that we should really create an archetype for
it would others find that useful?
Cheers
Tim
Just been doing some more debugging on this - it appears that the
correct values are being passed through and are assigned to an entity
instance, but they blow up when trying to do the em.merge(author)
call.
The stack trace I get is:
### AUTHOR
[EMAIL PROTECTED]
### AUTHOR ID
0
### AUTHOR NAME
Hey all,
Very strange, I re-wrote the classes in Java and I still see the same
issue!!!
What on earth could be going on here? I tried calling persist rather
than merge, but it appeared to have no impact.
Cheers
Tim
--~--~-~--~~~---~--~~
You received this
Out of interest, I tried playing around with hibernate-validator on
this demo to see if it works, and (as you can see below), it doesnt.
Any ideas why its doing this?
Looking at the compiled bytecode, its trying to invoke the synthesized
method name_$eq(String x$1), and for some reason, failing
This is very cool!
Its also great for lift as a brand as generally speaking, anything
that is associated with SAP is considered 'enterprise' by those in the
business world which hopefully should aid lift's adoption :-)
Cheers
Tim
--~--~-~--~~~---~--~~
You
Interesting thread - my understanding of Acegi is that it can be
implemented as a servlet filter (i guess in a similar way to lift),
but it has some dependencies on the spring framework itself? Its been
a *long* time since i did anything with spring!
Im no JSecurity or Acegi expert, but just
Oh cool - I tried 2.7.2 the other day and lift bombed massively.
What's the ETA for scala 2.7.2? I guess it would be good to know to
what extent it will affect the lift API when it moves to a proper
release?
Cheers
Tim
On 13 Sep 2008, at 14:40, David Pollak wrote:
Marius,
Jorge has
Hey Derek,
You're probably on the right track, although I want to clarify: are the
entity and its collections something that won't change often? Do you need
transactional views on it (i.e. changes made by one session are immediately
visible in others)? From your question about caching at
Hey guys,
If you have a call like:
lift:mysnippet form=post is translated to form method=post
action=blah
however, is there a way to set the id attribute on that node? Simply
adding the id in the markup is removed by lifts processing, so thats
no good as most javascript / css things either
Guys,
Just been noodling a few things and one of them was how to create a
process (kind of like Step 1, Step 2 etc) that can be variable? Some
times I might have 2 steps, other times X number of steps. System
wise, my thought was to have some kind of XML data-source that would
possibly look
Yeah sure - thats the kind of functionality im after. Perhaps not
quite so involved with java in xml, but sure, the variable screens and
validations are what i'm trying to achieve for sure.
Am I crazy / re-inventing the wheel to want to do something like this
with lift?
Cheers
Tim
On Sep 17,
I was one of the folks who designed and built SmartMode back in
2000/2001. SiteMap in Lift is substantially what we built in SmartMode
(but in SmartMode, we needed XML files rather than a DSL.)
Wow, awesome. SiteMap is easily the dark horse of lift :-)
When you say SiteMap in Lift is
Guys,
I have this DTD in my layout:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
xmlns:lift=http://liftweb.net/;
And lift is replacing it with:
?xml version=1.0 encoding=UTF-8?
Ok I found a post going back some time explaining about the doc
types
However Im not sure how to implement it in boot? It appears that the
syntax steve details here:
Ah thanks David - sorry about the additional post... we must have
posted at the same time! Freeky!
I'll document this on the wiki
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to
timperrett$ curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Expires: 0
Set-Cookie: JSESSIONID=1gid6kn3mc11r;Path=/
Content-Length: 3515
Content-Encoding: UTF-8
Content-Type: text/html
Server: Jetty(6.1.12rc1)
In this particular instance I've managed a work-around with CSS, but
it would be good to
I've also posted this information onto the wiki
http://liftweb.net/index.php/Setting_Template_Doctype
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to
Are you running 0.9 or 0.10-SNAPSHOT (not that that should make a
difference).
Im running the bleeding edge.
Also, the Content-Type is text/html and it should be something else that
indicates xhtml.
Shouldnt XHTML have Content-type: application/xhtml+xml ?
What browser are you having a
markup, but it
always crashed out. Is it not possible? I've not needed to do it up
until now so have never tried... Is there a solution for this?
Cheers
Tim
On Sep 18, 3:02 pm, David Pollak [EMAIL PROTECTED]
wrote:
On Thu, Sep 18, 2008 at 6:52 AM, Tim Perrett [EMAIL PROTECTED] wrote
Awesome, cheers David.
Looking through trunk with-param appears to be specified in sites/
example/wiki, but there is no corresponding bind point in the layout
Cheers
Tim
On Sep 19, 5:03 pm, David Pollak [EMAIL PROTECTED] wrote:
I'll work on an example
Great minds Marius - you sent your mail at 19:29, and mine at 19:30!
What do you think on my comments above?
Cheers, Tim
On 21 Sep 2008, at 19:29, Marius wrote:
Guys please try running the application above, take a look on the code
and have feedback. Is it a sufficient paradigm (from server
That would be sweet ! ... anything particular in mind? ... things like
email, phone number validation etc?
Totally - nothing crazy to begin with, perhaps with some way of
passing a regex or whatever to ward off boiler plate code thats
repeated by lift users. Conceptually, I think the ones
Sorry I should have been clearer... Of course, I wouldnt work it
straight into master :-)
I'll make a branch or fork then we'll go from there
Cheers Marius, this is great work
Tim
On Sep 21, 7:57 pm, Marius [EMAIL PROTECTED] wrote:
On Sep 21, 9:48 pm, Tim Perrett [EMAIL PROTECTED] wrote
Lift has a little know feature that makes this kind of thing super simple
and secure.
S.addHighLevelSessionDispatcher(name: String, dispatch:
LiftRules.DispatchPf) allows you to, on a session-by-session basis, specify
what to do with a given URL. This allows you to have a PayPal landing
Thanks Derek :-) I have commited any code for ages, so its about time
I did!
My plan is this - once I get this roll out of the site im doing now
(which just needs PDT) done, I'll add the IPN functions to it. From
the docs, it looks pretty straight forward.
You can configure a whole bunch of
Am I being dumb here - could we not just run some checks on the user-
agent header and respond appropriately?
It would be very cool if SHtml was browser aware.
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
method so that it returns another immutable
object that has current state rather than mutating the original PayPal
object.
Thanks,
David
Tim Perrett wrote:
Thanks Derek :-) I have commited any code for ages, so its about time
I did!
My plan is this - once I get this roll out
Hey David,
What do you think of my suggestion about creating something similar to
ajax_request? I havent put any time into this yet as I wasnt sure if
it was a good idea or not.
Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are
Okay... my mistake. Yes, you have to set this up in Boot with a DispatchPf
to handle the incoming request.
Thats what I thought - this is why I was asking about ajax_request :-)
Do my previous ramblings make any more sense now?
Cheers
Tim
Ok been noodling this - what bout something like:
object Wizard extends LiftWizard {
val someGlobalVar: String = something
object ScreenOne = new WizarScreen({
var firstName = TextField(value, FieldType.STRING, {
// validation rules go here
})
var lastName =
Just a quick suggestion for the JPA tutorial
Might it be a good idea to explain how to then take that JPA app to
production with JNDI? I know thats another aspect of complexity, but
it seems like it would be something that most people would want to
know...
Cheers
Tim
Sorry to drag this thread back up - I only just got back round to it
(its my hobby project)
WARN - No configuration found. Configuring ehcache from ehcache-
failsafe.xml found in the classpath: jar:file:/Users/timperrett/.m2/
repository/net/sf/ehcache/ehcache/1.5.0/ehcache-1.5.0.jar!/ehcache-
Yea i'll probably make it the constructor - seems a bit more logical.
My plan is to implement IPN, then roll up the IPN and PDT stuff into a
maven module and release it
Cheers
Tim
On Oct 1, 5:45 pm, jon [EMAIL PROTECTED] wrote:
Is there a way to set the authToken in the instance rather than
On this subject - I remember some time back we were discussing lift
run levels and potentially different errors / levels of logging for
different run levels. Did this ever come about?
Cheers, Tim
On Oct 2, 3:03 pm, TylerWeir [EMAIL PROTECTED] wrote:
Hey Oliver,
I dropped this in:
I guess you could disable the submit button on first submit? ... on
server side you could get rid of the processing function from the
cache that is associated with that specific thing. However this kind
of seems unnecessary for your use-case ... maybe.
Its funny you mention that Marius - not
Ah yes indeed - wow, sorry, just being dumb. I couldnt remember if it
was hyphen or underscore!
Cheers guys
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to
Great stuff Derek
On Oct 4, 5:13 am, Derek Chen-Becker [EMAIL PROTECTED] wrote:
I added in Oliver's UserType support for enums and some utility methods on
the Model object (wrapEM). I didn't have time this week to work on getting
JNDI and JTA to work in Jetty, but hopefully next week will be
Guys,
Check this out:
http://code.google.com/p/simple-build-tool/
It appeared a couple of days ago - im wondering if its something we
could customize to make starting lift projects easier? Its all written
in scala so should be easily extendable.
I need to take a better look, but thought id
)
32: internal - lift-archetype-basic (The basic (liftweb) project)
If you just pick the number it prompts you for the necessary info.
Derek
On Sun, Oct 5, 2008 at 1:58 PM, Tim Perrett [EMAIL PROTECTED] wrote:
god no, I dont want to replace maven :-)
There is talk of SBT having rake type
Is there a good example of this in the example sites somewhere? I'm a
bit confused but intrigued.
http://github.com/dpp/liftweb/tree/master/sites/example/src/main/scala/net/liftweb/example/snippet/CountGame.scala
That should help you get started
Cheers, Tim
Guys,
I've spent some time gutting my extremely boiler plate paypal code now
its in master. I've only implemented the PDT data types and response
so far, but im going to do IPN tomorrow / over the weekend.
So then, its all properly immutable now and is just generally a lot
more sensible. To use
Sweet - I'll be implementing IPN soon as well, so we'll have the
braces and belt as it were. My plan for that right now is two fold:
a) A hadnling class that is implemented as part of a DispatchPf setup,
and a subsequent ResponseState to satisfy the paypal POST to the
client web server. Perhaps
Hey guys,
Im working on the paypal response processing in my paypal module and I
have the following code:
val reader: BufferedReader = new BufferedReader(
new InputStreamReader(
post.getResponseBodyAsStream()
)
)
var line: String = null
try {
while ({line
Hey David,
Thanks for the reply. See the funny thing with this is that it prints
all the items out then raises the NPE.
I also dont get that if im setting the reader to be val (and therefor
immutable) how can it go from being a reader, to being null? even if
it was var I thought that readLine
I tried the lazy val but that didnt work :(
I've pasted it onto GIST: http://gist.github.com/16384 - what are your
thoughts? My gut feeling is that i need to re-factor PaypalResponse as
its become too mutable; im just not sure how to best manage the
destructive operations on the InputStream?
The InputStream should be read by a factory which creates the response
objects. Those response objects are immutable.
That was going to be my next step - what your effectivly saying is
that you have a singleton to access that input stream so we then only
ever have a single instance of the
Yes. It's not just to avoid the NPE, but it's to control state. IO is
external, mutable state. I has to be treated very cautiously and
deliberately.
Sounds like good advice.
Ok cool, I'll work toward this over the next couple of days with an
aim to commit at the end of the week.
Also,
Awesome stuff David!
- Locs can have page-specific snippets that take as their parameter the
parameter generated by the Loc during URL re-writing
Out of interest, is this element of implementation useful for the
dynamic form building we discussed some time ago? A snippet for each
step
Hey guys,
Im just implementing the IPN stuff for paypal and had a quick
question. I think it would be cool to write something like:
PaypalIPNHandler().onFailure(FailureHandler).onVerified(VerifiedHandler)
object FailureHandler { ... } // or case class etc
object VerifiedHandler { ... }
Im
,
Marius
On Oct 16, 1:36 pm, Tim Perrett [EMAIL PROTECTED] wrote:
Hey guys,
Im just implementing the IPN stuff for paypal and had a quick
question. I think it would be cool to write something like:
PaypalIPNHandler(
).onFailure(FailureHandler).onVerified(VerifiedHandler)
object
).asInstanceOf[A]
If I have a User model and I want to use find on the EntityManager,
what
goes where the *** is below:
val user = Model.find[User]( ***, userId)
Thanks,
Chas.
Tim Perrett
print application architect
t: +44 (0) 78144 34 791
e: [EMAIL PROTECTED]
w: timperrett.com
holding relevant information about your
failure.
This approach seems to fit your requirements of I want to build it so
that users can execute any code they wish upon a different event from
paypal. since users can register arbitrary functions
Br's,
Marius
On Oct 16, 4:52 pm, Tim Perrett
That would give you the lift jars and things, but not the maven tools
(which I presume if he's asking, he doesnt have).
Lift has a bunch of dependencies, and then those dependencies have
there dependencies. My ~/.m2 directory is 166mb right now, so I guess
you'd need a working, local maven repo
Hey Marius,
Ok, so i've been putting this together, and have the following:
case class PaypalEventAction(status: PaypalTransactionStatus,
functions: List[() = PaypalActionHandler])
So, when I then create a subclass for PaypalActionHandler which I
create a new instance of like:
case class
lol - sorry that was lame answering my own question but I just figured
it out. If I go with something like:
https://gist.github.com/9df3baee3793b750e42e
then it can be truley arbitrary code; comparatively a subclass could
never the as flexible. Pretty neat. Now my IPN code will operate a
little
://gist.github.com/9df3baee3793b750e42e
It goes without saying that this is *just an example* and the execute
method of my abstract class would do something significantly more
usefull! lol.
Cheers
Tim
On Oct 18, 4:30 pm, Tim Perrett [EMAIL PROTECTED] wrote:
Hey Marius,
Ok, so i've been putting
Hey guys,
Im just playing with the Paypal IPN stuff im writing. In Boot.scala i
have something like:
LiftRules.addDispatchBefore {
case r @ RequestState(paypal:: ipn :: Nil, , PostRequest)
if PaypalIPN(r).execute == true
= () = Full(XmlResponse(complete /))
}
Thats strange. changing the code to:
LiftRules.addDispatchBefore {
case r @ RequestState(paypal:: ipn :: Nil, , PostRequest)
= () = {
PaypalIPN(r)
Full(XmlResponse(complete /))
}
}
and then it only gets called once. Very strange - why does it do that?
FYI - here are the curl outputs:
macpro:~ timperrett$ curl -I http://thenang.ebiggs.com/abc.kml
HTTP/1.1 200 OK
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=1v3t13ucx3a5p;Path=/
Last-Modified: Sun, 19 Oct 2008 07:52:09 GMT
Content-Length: 3365
Accept-Ranges: bytes
Server:
+1
That would be sweet - I've noodled creating a small (to start with)
CMS system and/or wiki to replace the liftweb.net mediwiki (which
sucks). Its just a matter of time really so, Dean, if you have the
time, by all means go for it!
Cheers
Tim
On Oct 21, 6:54 pm, TylerWeir [EMAIL
Doh!! Scratch that:
val badger = for(val p - paramaters) yield MyItem(p._1,p._2)
println(badger.toList)
This gives my what I want - any reason I *shouldnt* be doing it this
way?
Cheers, Tim
Tim Perrett wrote:
Hey guys,
I have an instance of RequestState, and request.params yields a Map
Dont shoot me here, im certainly no expert in the CMS world but my
understanding is Plone / Zope are somewhat the yardstick of OSS CMS
right now as they are very customizable and have great communities. We
have a great community, now we just need a great CMS :-)
IMO, this sort of thing will come
+1 Viktor. In troubled economic times such as these, its in the
business interest to run as efficiently as possible - in short, more
productive programmers... what you said is bang on.
Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are
Hey Chas,
Nice work, Dave and Tim.
Thanks :-)
Here's a question that just popped into my head: How do you test this
code without moving money around? How will I know my installation will
work? Is there a way to fake it?
But of course - paypal provide a sandbox. Dont be fooled, this is a
Actually, as another note, if your thinking about using Paypal, then
please read this article:
http://www.pdncommunity.com/pdn/board/message?board.id=basicpaymentsmessage.id=368
Given the framework we've supplied, its a simple process to implement
both IPN and PDT which give you the safest and
I think you should be able to do this by using an interceptor or event
listener - does this article help:
http://java.dzone.com/articles/using-a-hibernate-interceptor-
If you manage to get the created_on and updated_at stuff working I'd
be interested in how you did it as I think its something
Hey guys,
We had a discussion some time ago about plugins (
http://groups.google.com/group/liftweb/browse_thread/thread/a875258c5cccdf09
) - well i've started thinking about them again!
I get everything in the previous thread, apart from one thing... how
through a 'plugin' you would supply some
,
but it's more flexible since you control the logic for what gets
set/updated.
Derek
On Fri, Oct 24, 2008 at 5:16 AM, Tim Perrett [EMAIL PROTECTED] wrote:
I think you should be able to do this by using an interceptor or event
listener - does this article help:
http://java.dzone.com
Hey guys,
I've started a lift-powered blog project:
http://github.com/timperrett/bloglite/tree/master
Its Lift + JPA, if anyone is interested in lending a hand with it then
your more than welcome
Cheers, Tim
--~--~-~--~~~---~--~~
You received this message
: Date = _
@Temporal{val value = TemporalType.TIMESTAMP}
var updateTime : Date = _
@PrePersist
def markCreateTime = { createTime = new Date; updateTime = createTime }
@PreUpdate
def markUpdateTime = { updateTime = new Date }
Derek
On Fri, Oct 24, 2008 at 9:27 AM, Tim Perrett [EMAIL
Actually - sorry, im being dull, the annotation marks it for
invocation doesnt it. Doh.
On Oct 24, 4:49 pm, Tim Perrett [EMAIL PROTECTED] wrote:
Oh thats really nice - was not aware of those!
One thing thats not clear from that code; how do markCreateTime and
markUpdateTime get called
Quick question chaps,
If I want my URLs to look like:
/article/my-demo-blog-post
How would one go about that? Even with something messy like:
name - SHtml.link(/article/ + article.permanent_link.toString, ()
= Nil, Text(article.name))
I get the query string appended to the url with a bunch
? This also makes it difficult
for the designer.
What are your thoughts?
Cheers
Tim
On Oct 24, 7:38 pm, David Pollak [EMAIL PROTECTED]
wrote:
Seehttp://groups.google.com/group/liftweb/browse_thread/thread/6c1cd13c3...
On Fri, Oct 24, 2008 at 11:16 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Quick
Right, i've been working on this for most of the day trying to
understand exactly whats going on. I have a working sample, but its
not how I would want it to work in an ideal world.
http://github.com/timperrett/bloglite/tree/master/src/main/scala/eu/getintheloop/bloglite/maps/Articles.scala
Hey Chas,
You might be interested in this thread too:
http://groups.google.com/group/liftweb/browse_thread/thread/5110730076293dbf
Long term, this is probally what you want :-) (see dpp's comments)
Cheers, Tim
--~--~-~--~~~---~--~~
You received this message
Hey guys,
Has anyone been encrypting passwords through JPA and lift? Im looking
at implementing something Jasypt but wanted to see what / if anyone
else has some other pointers / ideas?
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are
of the passwords. Or are you talking about a bidirectional encryption
on the password?
Derek
On Sun, Oct 26, 2008 at 8:18 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Hey guys,
Has anyone been encrypting passwords through JPA and lift? Im looking
at implementing something Jasypt but wanted to see what
Thanks chas,
some good pointers in there - i ended up using the jasypt encryptor
anyways as it was neater code and gives a whole bunch of options for
encryption over a home-grown solution (im no security cypher expert!)
As for how to restrict the pages; id like to do something with
sitemap,
going to check this Jasypt out when I get a chance. You
just drop in the jar and then you can use it?
Chas.
Tim Perrett wrote:
FYI - for completeness, this is what I did in my model class:
http://blog.timperrett.com/2008/10/27/adding-jasypt-encryption-to-your-scala-jpa-entity-classes
not exist
scala.io.Source.getLine(Source.scala:280)
...
Is it a bug?
My solution is not ideal, but works for me and took only about 50 LOCs to
write:) If you are interested, I'll attach the code.
On Sat, Oct 25, 2008 at 5:43 PM, Tim Perrett [EMAIL PROTECTED] wrote:
Right, i've been working
Hey guys,
I've updated the Gravatar widget that was origionally created by Ty.
The implementation now is actually very different. No longer is the
Gravatar class an instansiable class, its an object with overloaded
apply methods. So, now, rather than:
val g = new Gravatar()
g.render([EMAIL
Chas,
What happens if you access one under 127.0.0.1 and the other under
localhost? Do you still see this?
Cheers, Tim
Sent from my iPhone
On 1 Nov 2008, at 23:16, Charles F. Munat [EMAIL PROTECTED] wrote:
I don't know if anyone else has observed this behavior, but...
When I run my
Hey all,
Just thought id drop a quick line to see how the record / field branch
was progressing? I keep getting updates to that branch in my local
git, so I can only guess things are moving along well? :-)
Cheers
Tim
--~--~-~--~~~---~--~~
You received this
+1.
Any given persistence provider back-end (like yo say, LDAP, JPA etc)
should be required to implement these as part of there implementation.
I don't think they should have a default behavior however...
Now wanting to open another pandora's box, but out of interest, how
will the
Hey guys,
Myself and Ty have just been chatting about lifts template loader...
right now, is there a way of adding additional places to look for lift
templates?
I see this being of use for two reasons:
- loading page content from a database (which a lot of apps do). The
only thing with this
Right as currently you just call validate on a Record whenever you
need. Now a backend can mean anything even a B2B bus.Of course the
specific of such backend integration can determine if some specifics
on fields are needed.
Awesome.
P.S.
Just please bare in mind that current stuff is
Hey guys,
Just having a look at implementing some REST APIs and i've taken a
look at XMLApiHelper and some of the other stuff thats been posted to
the list.
Looking through the information thats around, in esme XMLApiHelper is
extended, whilst in Steve J's example rest service, he extends
One thing Id like to challenge the rational of within:
http://github.com/dpp/liftweb/tree/master/lift/src/main/scala/net/liftweb/http/rest/XMLApiHelper.scala
is line 70:
def createTag(in: NodeSeq): Elem
In your class that extends this trait, you implement this method
something like:
def
at 12:10 PM, Tim Perrett [EMAIL PROTECTED] wrote:
One thing Id like to challenge the rational of within:
http://github.com/dpp/liftweb/tree/master/lift/src/main/scala/net/lif...
is line 70:
def createTag(in: NodeSeq): Elem
In your class that extends this trait, you implement this method
at 1:36 PM, Tim Perrett [EMAIL PROTECTED] wrote:
Otherwise, im looking to create a service that operates like this:
GET /articles.xml = serves as xml
GET /articles.js (or .json, whichever is more appropriate) = serves
as json
and
GET /articles/1234.xml
GET /articles/1234.js
Just
Hey David,
The above code is only related to the XHTML render pipeline... stuff that
goes through Lift's view mechanism. It would be a Bad Thing (tm) to set
JSON as the return type in this case as the result is going to be XHTML.
The reason we've got this particular bit of code is to deal
So, there's a bug is ESME (or maybe it's in the NGINX/Jetty bridge... I have
to research it)... that doesn't mean you can't do stuff in Lift.
If you respond to a request with:
XmlResponse(mytag/mytag)
The headers will be set correctly.
Of course not - im not suggesting lift is broken
I did see the thread. It's a non-trivial problem and the best bet is to
leave things the way they are until we figure out how to build a generic
JSON/XML data holder.
Sweet - I know you said you'd noodled this somewhat.. can you
elaborate on your nodding? Id be interested in putting some
One other thought on this, if no credentials are found, wouldn't it be
best to challenge the requester with a 401, but with the www-
authenticate header or something? Rather than just providing a plain
401?
Perhaps this could be wrapped up in
DigestAuthenticationChallengeResponse or something?
Good to see that your using nginx dave... It's a rocking front end.
One thing, what made you use proxy_pass rather than upstream ?
Cheers, Tim
Sent from my iPhone
On 11 Nov 2008, at 21:11, Viktor Klang [EMAIL PROTECTED] wrote:
Thanks for the how-to Dave!
Looks splendid :)
On Tue, Nov 11,
paste an example when I'm properly
online tomorow.
Cheers
Tim
Sent from my iPhone
On 11 Nov 2008, at 22:00, David Pollak
[EMAIL PROTECTED] wrote:
On Tue, Nov 11, 2008 at 1:52 PM, Tim Perrett [EMAIL PROTECTED]
wrote:
Good to see that your using nginx dave... It's a rocking front end
I'm not trying to load-balance. Upstream seems to be oriented to load
balancing, which is not the goal. Did I miss something?
Sorry for the late reply - indeed it is for load balancing etc; I was
working on the presumption you might have more than one back-end jetty
- if not then sure, what
Hi David,
Im working on a standalone app as requested - I keep changing my my
mind about the design however.
Creating the challenges is no problem, as they are just subclasses of
LiftResponse, however, I cant settle on how best to handle the
authorization. If I want to create a challenge, then
wow this is super sweet marius!
A couple of questions:
- net.liftweb.record.Test... shouldn't this be in the tests package?
- DBRecord, whats the difference between this and ordinary record?
Looking at the code, it appears that DBRecord just adds some abstract
stuff like stubbs for save methods
1 - 100 of 245 matches
Mail list logo