Re: [Lift] Re: How to use the ActorPing schedule ? in the lift .

2009-12-02 Thread Timothy Perrett
Not yet - feel free to add one! There plenty of examples within lift itself though tho. Cheers, Tim Sent from my iPhone On 3 Dec 2009, at 01:43, "Neil.Lv" wrote: > > Thanks very much, yeah, that what i want. > > Is there a wiki example tutorial ? > > Cheers, > Neil > > > On Dec 3, 12:46

Re: [Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread Heiko Seeberger
Welcome, Jon! 2009/12/3 David Pollak > Folks, > > It may or may not be true that for Jon Hoffman that "Martin Odersky > praises [his] valuable contributions. [He] can read APIs in the > dark."But Jon's made a valuable contribution to > Lift as part of the communit

[Lift] Re: Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread jon
Thanks for the warm welcome! Lift's been super productive for me and I'm happy to have the oppurtunity to give back. On Dec 2, 6:56 pm, Timothy Perrett wrote: > Welcome Jon! > > Its new-committer-o-rama!! I need to get on top of the current team list to > revise the site etc > > Cheers, Tim >

[Lift] Re: Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread Marius
Sounds really cool. Welcome Jon! On Dec 3, 1:25 am, David Pollak wrote: > Folks, > > It may or may not be true that for Jon Hoffman that "Martin Odersky praises > [his] valuable contributions. [He] can read APIs in the > dark."But Jon's made a valuable > contribution

Re: [Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 5:39 PM, Shawn C wrote: > Is there a way to configure Lift not to call request.getSession(true) > in the servlet api? No. > I do not want to use the servlet api session > tracking. I plan on storing some of the state in an AES encrypted > cookie and the rest in hidden

[Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?

2009-12-02 Thread Shawn C
Is there a way to configure Lift not to call request.getSession(true) in the servlet api? I do not want to use the servlet api session tracking. I plan on storing some of the state in an AES encrypted cookie and the rest in hidden form fields. Any assistance would be appreciated. Thanks. Shawn

[Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?

2009-12-02 Thread Shawn C
Is there a way to configure Lift not to call request.getSession(true) in the servlet api? I do not want to use the servlet api session tracking. I plan on storing some of the state in an AES encrypted cookie and the rest in hidden form fields. Any assistance would be appreciated. Thanks. Shawn

[Lift] Re: How to use the ActorPing schedule ? in the lift .

2009-12-02 Thread Neil.Lv
Thanks very much, yeah, that what i want. Is there a wiki example tutorial ? Cheers, Neil On Dec 3, 12:46 am, Timothy Perrett wrote: > Neil, > > ActorPing is what you want, yes. Essentially, calling it says "in X time span > call Z method" - if you need repeating behaviour, just put

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

2009-12-02 Thread Julian Backes
Hi Derek, > It's been a long time since I looked at that particular code, so I may > have misspoke. Having said that, if it's currently disabled in the > driver I'm not sure why and I would want to review it before saying that > it works properly in all cases. I think the problem here is that t

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

2009-12-02 Thread Derek Chen-Becker
It's been a long time since I looked at that particular code, so I may have misspoke. Having said that, if it's currently disabled in the driver I'm not sure why and I would want to review it before saying that it works properly in all cases. Derek On Sun, Nov 29, 2009 at 1:11 PM, Julian Backes w

Re: [Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread Timothy Perrett
Welcome Jon! Its new-committer-o-rama!! I need to get on top of the current team list to revise the site etc Cheers, Tim On 2 Dec 2009, at 23:25, David Pollak wrote: > Folks, > > It may or may not be true that for Jon Hoffman that "Martin Odersky praises > [his] valuable contributions. [He]

Re: [Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread Atsuhiko Yamanaka
Welcome Jon! On Thu, Dec 3, 2009 at 8:25 AM, David Pollak wrote: > Folks, > > It may or may not be true that for Jon Hoffman that "Martin Odersky praises > [his] valuable contributions. [He] can read APIs in the dark." But Jon's > made a valuable contribution to Lift as part of the community.  No

[Lift] Re: Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread TylerWeir
Welcome Jon! On Dec 2, 6:25 pm, David Pollak wrote: > Folks, > > It may or may not be true that for Jon Hoffman that "Martin Odersky praises > [his] valuable contributions. [He] can read APIs in the > dark."But Jon's made a valuable > contribution to Lift as part of

[Lift] Re: Broken 1.1-M7 jpa archetypes

2009-12-02 Thread Todd
disregard, user error. On Dec 2, 6:23 pm, Todd wrote: > Not for single, though I should be able to manually merge. > > On Nov 27, 5:49 am, Indrajit Raychaudhuri wrote: > > > Fixed in snapshot repo :) > > > The following command should give you a good project now. > > > mvn archetype:generate -Da

[Lift] Re: Broken 1.1-M7 jpa archetypes

2009-12-02 Thread Todd
Not for single, though I should be able to manually merge. On Nov 27, 5:49 am, Indrajit Raychaudhuri wrote: > Fixed in snapshot repo :) > > The following command should give you a good project now. > > mvn archetype:generate -DarchetypeRepository=http://scala-tools.org/ > repo-snapshots -DremoteR

[Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread David Pollak
Folks, It may or may not be true that for Jon Hoffman that "Martin Odersky praises [his] valuable contributions. [He] can read APIs in the dark."But Jon's made a valuable contribution to Lift as part of the community. Now, he's a committer. Please join me in welcomin

[Lift] Mapper <-> JObject bridge

2009-12-02 Thread David Pollak
Folks (HarryH -- this means you), I've just checked in code on the dpp_issue_213 that does Mapper <-> JObject bridging using the awesome lift-json library. The methods on MetaMapper: protected def encodeAsJSON_! (toEncode: A): JsonAST.JObject protected def decodeFromJSON_!(json: JsonAST.JObject):

[Lift] Re: Filtering of

2009-12-02 Thread jon
Comments below. On Dec 2, 2:00 pm, Marius wrote: > Personally I have reservations about this. If you want to include > templates in this manner why use script tags in those templates ? ... I have existing templates which load as static pages and want to convert to ajaxy style page transitions wi

[Lift] Re: Jetty question

2009-12-02 Thread Marius
On Dec 2, 10:26 pm, David Pollak wrote: > On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett > wrote: > > > Hey Marius, > > > Im not 100% sure that Servlet 3.0 will solve our problems... im > > worried that the vendors will not standardise once again (they are > > already diverging paths in "earl

Re: [Lift] Re: Oracle DB connection in 1.1-m7

2009-12-02 Thread Derek Chen-Becker
It should be in place now. Can you verify that it's working for you? On Fri, Nov 27, 2009 at 6:49 PM, Derek Chen-Becker wrote: > http://reviewboard.liftweb.net/r/129/ > > I'll check this in to master in the morning. > > > On Fri, Nov 27, 2009 at 8:53 AM, Derek Chen-Becker > wrote: > >> I should

Re: [Lift] Re: Jetty question

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett wrote: > Hey Marius, > > Im not 100% sure that Servlet 3.0 will solve our problems... im > worried that the vendors will not standardise once again (they are > already diverging paths in "early access" servlet 3.0 > implementations)... > > To this e

[Lift] Re: Jetty question

2009-12-02 Thread Timothy Perrett
Hey Marius, Im not 100% sure that Servlet 3.0 will solve our problems... im worried that the vendors will not standardise once again (they are already diverging paths in "early access" servlet 3.0 implementations)... To this end, I cant help but wonder if we will end up falling back on something

[Lift] Re: Jetty question

2009-12-02 Thread Marius
Lift doesn't necessarily require Jetty 6. Lift runs pretty much on any JEE web container including jetty 7. But Lift comet support automatically detects Jetty 6 continuations API and use it. If that is missing Lift will gracefully fall back in using a locking based mechanism for Comet. Of course th

[Lift] Re: Jetty question

2009-12-02 Thread jhonig
Hi Alex, > Which page(s) asked you for registration? Several of the configuration file pages. I will have a better look later today. Job -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com.

[Lift] Re: Jetty question

2009-12-02 Thread jhonig
Hi Tim, > Lift is not yet compatible with Jetty 7 continuations... if you want to use > comet, please use Jetty 6 for the moment. I don't use comet. But is this dependency mentioned anywhere in the Lift docs? Can't remember having seen any such information! Job -- You received this message

Re: [Lift] Re: Filtering of

2009-12-02 Thread David Pollak
I think the feature has merits. I can see it either as an alternative to SetHtml (e.g., SetAndRun) or as a flag on SetHtml so existing code runs the same way. On Wed, Dec 2, 2009 at 11:00 AM, Marius wrote: > Personally I have reservations about this. If you want to include > templates in this m

[Lift] Re: Image upload and serving example

2009-12-02 Thread Peter Robinett
Jon, that sounds very interesting and I'd love to see it. S3 support in general would be a great module for Lift, in my opinion. Peter On Dec 2, 10:24 am, jon wrote: > For those that are using s3, I created a MappedS3Image MappedField for > automating the storage of image uploads to s3 with a un

[Lift] Re: Filtering of

2009-12-02 Thread Marius
Personally I have reservations about this. If you want to include templates in this manner why use script tags in those templates ? ... Furthermore in some cases one may want Script tags preserved. And having multiple SetHtml is not something I'd like to see (but others could). Besides stripping no

[Lift] Filtering of

2009-12-02 Thread jon
Hi, It would be cool if when I did something like this: SHtml.a(()=> SetHtml("id", findAnyTemplate(List("foo")).open_!)) The

Re: [Lift] Jetty question

2009-12-02 Thread Alex Boisvert
Probably better asked on the Jetty mailing list... but... http://wiki.eclipse.org/Jetty is the new site for Jetty 7+ documentation. It's still sparse but they are moving/updating the documentation incrementally. Which page(s) asked you for registration? alex On Wed, Dec 2, 2009 at 9:55 AM, jhon

[Lift] Re: Image upload and serving example

2009-12-02 Thread jon
For those that are using s3, I created a MappedS3Image MappedField for automating the storage of image uploads to s3 with a unique identifier stored in the RDBMS. If anyone's interested I could clean and share the code. usage like this: user.avatar.setFromUpload(fileParamHolderBox) or user.avatar

Re: [Lift] Jetty question

2009-12-02 Thread Timothy Perrett
Lift is not yet compatible with Jetty 7 continuations... if you want to use comet, please use Jetty 6 for the moment. Cheers, Tim On 2 Dec 2009, at 17:55, jhonig wrote: > Can anybody point me to the proper documentation for Jetty 7? > > I found that http://docs.codehaus.org/display/JETTY/Stat

[Lift] Jetty question

2009-12-02 Thread jhonig
Can anybody point me to the proper documentation for Jetty 7? I found that http://docs.codehaus.org/display/JETTY/Static+Content is outdated, the classes referred to do not exist anymore in Jetty 7. Just replacing mortbay by eclipse in the class names didn't help... Then Google gave me: http://wi

Re: [Lift] A second rewrite phase

2009-12-02 Thread Jeppe Nejsum Madsen
David Pollak writes: > On Wed, Dec 2, 2009 at 2:23 AM, Jeppe Nejsum Madsen wrote: > >> David Pollak writes: >> >> > Folks (especially Jeppe), >> > >> > I've added a second rewrite phase to Lift. The second phase takes place >> > within S scope, so you get SessionVars, etc. The review board pos

[Lift] Re: How to get the servlet context

2009-12-02 Thread jhonig
> Lift has a properties mechanism (see net.liftweb.util.Props). You can > define properties based on user name, machine name, and runmode. This > allows you to have different temporary directories depending on the > developer/machine/run mode. OK, I'll have a look. For now I am trying to serve

Re: [Lift] Re: How to get the servlet context

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 5:27 AM, jhonig wrote: > David, > > > I'm all for putting stuff in a well-know location in the filesystem... > and > > defining that well known location in the props file. > > OK, then this is what I want. But you refer to "THE" props file. Do > you mean > a Jetty props

Re: [Lift] A second rewrite phase

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 2:23 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > > Folks (especially Jeppe), > > > > I've added a second rewrite phase to Lift. The second phase takes place > > within S scope, so you get SessionVars, etc. The review board posting is > at > > http://reviewbo

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-02 Thread Jeppe Nejsum Madsen
David Pollak writes: > null... shudder. :-) Yeaah, somehow it doesn't look nice anymore :-) Your idea with an Option/Box for attribute binding seems nice & clean /Jeppe > > On Wed, Dec 2, 2009 at 12:32 AM, Jeppe Nejsum Madsen wrote: > >> Alex Black writes: >> >> > Is there a good/reasonable w

Re: [Lift] How to use the ActorPing schedule ? in the lift .

2009-12-02 Thread Timothy Perrett
Neil, ActorPing is what you want, yes. Essentially, calling it says "in X time span call Z method" - if you need repeating behaviour, just put a call to actor ping at the end of the Z method to reschedule it. That should be all you need. Cheers, Tim On 2 Dec 2009, at 16:39, Neil.Lv wrote: >

Re: [Lift] Is it possible to use Schemifier without DB Access?

2009-12-02 Thread David Pollak
On Tue, Dec 1, 2009 at 9:20 PM, Joern wrote: > Hi, > > I just want to see the statements Schemifier.schemify() would use to > create all my tables. Right now, it only creates statements, if there > is no such table in the DB. How could I avoid having it look at the > existing tables and just let

[Lift] How to use the ActorPing schedule ? in the lift .

2009-12-02 Thread Neil.Lv
Hi all, I want to query the records of the RMDBS every several minutes. Does use the ActorPing or something else to achieve this purpose ? Is there an example that about the ActorPing ? Thanks for any suggestion ! Cheers, Neil -- You received this message because you are subscr

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-02 Thread David Pollak
null... shudder. :-) On Wed, Dec 2, 2009 at 12:32 AM, Jeppe Nejsum Madsen wrote: > Alex Black writes: > > > Is there a good/reasonable way to conditionally output > > checked="checked" or output nothing? > > If you output null for the attribute value, the attribute is not > rendered: > > scala>

[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?

2009-12-02 Thread Neil.Lv
I set the XhtmlMimeType to false, and it can works now! ### LiftRules.useXhtmlMimeType = false ### Thanks very much! Cheers, Neil On Dec 2, 9:03 pm, Arthur wrote: > Hi Neil > > document.write() isn't allowed for "real" xml files like xhtml+xml > where an xml parser checks for well-forme

[Lift] Re: How to get the servlet context

2009-12-02 Thread jhonig
David, > I'm all for putting stuff in a well-know location in the filesystem... and > defining that well known location in the props file. OK, then this is what I want. But you refer to "THE" props file. Do you mean a Jetty props file, a general Lift props file, a user defined props file? I t

[Lift] Re: How to get the servlet context

2009-12-02 Thread jhonig
David, > Storing files inside the exploded WAR file is a tremendously bad idea. I > don't think we should be helping a user do something that is going to > continue to cause him pain. > > If he needs to upload images, etc. and then subsequently present them to the > user, it's two tables in the R

[Lift] Re: How to get the servlet context

2009-12-02 Thread jhonig
Marius, Thanks, I will have a look at it. But I'll have to dive even deeper into Lift, and don't know if it's worth it compared to using another framework. I'll try to make up my mind. Job On Nov 30, 11:08 pm, Marius wrote: > Ahh so you want direct links to those files. Still you can do > so

[Lift] Re: How can one bind value-less attributes?

2009-12-02 Thread Alex Black
Thanks Jeppe, that works perfectly. On Dec 2, 3:32 am, Jeppe Nejsum Madsen wrote: > Alex Black writes: > > Is there a good/reasonable way to conditionally output > > checked="checked" or output nothing? > > If you output null for the attribute value, the attribute is not > rendered: > > scala> b

[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?

2009-12-02 Thread Arthur
Hi Neil document.write() isn't allowed for "real" xml files like xhtml+xml where an xml parser checks for well-formedness of the xml. You should be able to use things like appendChild(). Regards Arthur On 2 Dez., 13:42, "Neil.Lv" wrote: > Hi all, > >    How to fix the bug in firefox that appli

Re: [Lift] How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?

2009-12-02 Thread Timothy Perrett
Put this in your boot.scala LiftRules.useXhtmlMimeType = false cheers, Tim On 2 Dec 2009, at 12:42, Neil.Lv wrote: > Hi all, > > How to fix the bug in firefox that application/xhtml+xml doesn't > have the write() method ? > > The document object created in Firefox when the mime type is >

[Lift] How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?

2009-12-02 Thread Neil.Lv
Hi all, How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ? The document object created in Firefox when the mime type is application/xhtml+xml does not have the write() method. I have a script that need to use the document.write method in the lift

Re: [Lift] Multi-Database Transactions

2009-12-02 Thread Jeppe Nejsum Madsen
deadfolk writes: [...] > I'll likely be using plain JDBC or JPA. What would be my options in > Lift? Can I get a list of connections and just use a filter (or > equivalent) to begin/commit/rollback on each within every request? > I've done some searching, but I've not found anything relating

[Lift] Multi-Database Transactions

2009-12-02 Thread deadfolk
Hi all, I'm currently evaluating Lift for a new project I'll be working on soon, and I'm looking for a little input regarding if/how I can manage transactions across two databases. It's going to be a bunch of web services over two MySQL databases. I'll need to synchronize transactions across the

Re: [Lift] Re: lift modules

2009-12-02 Thread Timothy Perrett
Documentation is a wider issue right now, and one that needs to be addressed quite seriously as we move toward 2.0. Right now, the best thing to do if you've looked at the code comments, looked in the archives and are still not sure of something then just post a question. Cheers, Tim On 2 Dec

[Lift] Re: lift modules

2009-12-02 Thread stephanos
@Marius: Thanks, I will look into it :-) @Timothy: I'm just generally interested what additional modules there are - for example the "best" I could find about it (documentation-wise) is this: http://scala-tools.org/mvnsites/liftweb-1.0/lift-paypal/index.html. All I'm saying is there seem to be man

Re: [Lift] A second rewrite phase

2009-12-02 Thread Jeppe Nejsum Madsen
David Pollak writes: > Folks (especially Jeppe), > > I've added a second rewrite phase to Lift. The second phase takes place > within S scope, so you get SessionVars, etc. The review board posting is at > http://reviewboard.liftweb.net/r/132/ Cool stuff. > Anyone who cares about what is acces

[Lift] Re: How to get the servlet context

2009-12-02 Thread Marius
On Dec 1, 2:16 am, David Pollak wrote: > On Mon, Nov 30, 2009 at 4:14 PM, Timothy Perrett > wrote: > > > Sometimes its an unavoidable fact that we need to store stuff on the > > file-system. Im not promoting inside the exploded war, but knowing your > > location and going from there can be a us

[Lift] Re: How to get the servlet context

2009-12-02 Thread Marius
Who recommended storing files inside exploded war? I certainly did not. I explained several possible approaches that most definitely work and were used in the past quite extensively and successfully. Personally I'm not a big fan of storing files payload in RDBMS. Br's, Marius On Dec 1, 12:30 am,

[Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes

2009-12-02 Thread Marius
I opened ticket http://github.com/dpp/liftweb/issues#issue/216 and assign it to myself. Br's, Marius > On Dec 1, 2:33 am, David Pollak wrote: > On Fri, Nov 27, 2009 at 1:52 PM, Marius wrote: > > For a default behavior this is a reasonable approach. But from a > > framework perspective this is a

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-02 Thread Jeppe Nejsum Madsen
Alex Black writes: > Is there a good/reasonable way to conditionally output > checked="checked" or output nothing? If you output null for the attribute value, the attribute is not rendered: scala> bind("stuff", , AttrBindParam("s",Text("checked"),"checked")) res11: scala.xml.NodeSeq = scala>