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

2009-12-02 Thread Jeppe Nejsum Madsen
Alex Black a...@alexblack.ca 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, input type=checkbox stuff:s=/, AttrBindParam(s,Text(checked),checked))

[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 feeder.of.the.be...@gmail.com wrote: On Fri, Nov 27, 2009 at 1:52 PM, Marius marius.dan...@gmail.com wrote: For a default behavior this is a reasonable

[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 

[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 many

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] 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] Multi-Database Transactions

2009-12-02 Thread Jeppe Nejsum Madsen
deadfolk deadf...@gmail.com 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

[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] 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] 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 anim...@gmail.com wrote: Hi all,    How to fix the bug in firefox

[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 je...@ingolfs.dk wrote: Alex Black a...@alexblack.ca 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

[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 marius.dan...@gmail.com wrote: Ahh so you want direct links to those

[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 RDBMS

[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

[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 avand...@gmail.com wrote: Hi Neil document.write() isn't allowed for real xml files like xhtml+xml where an xml parser checks

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 je...@ingolfs.dkwrote: Alex Black a...@alexblack.ca 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

[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

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 joern.bernha...@gmx.net 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

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] Re: How can one bind value-less attributes?

2009-12-02 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com 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 je...@ingolfs.dkwrote: Alex Black

Re: [Lift] A second rewrite phase

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 2:23 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com 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

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 al...@xs4all.nl 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

[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

[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:

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

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,

[Lift] Filtering of script tags from ajax replies and executing the javascript

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 script tags within the foo template were filtered out and the the contained JavaScript were executed. I created my own SetHtml to achieve that, but I'm wondering if this

[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 jonhoff...@gmail.com wrote: For those that are using s3, I created a MappedS3Image MappedField for automating the storage of image

Re: [Lift] Re: Filtering of script tags from ajax replies and executing the javascript

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 marius.dan...@gmail.com wrote: Personally I have reservations about this. If you want to

[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

[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

[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

Re: [Lift] Re: Jetty question

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett timo...@getintheloop.euwrote: 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

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 dchenbec...@gmail.comwrote: 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

[Lift] Re: Jetty question

2009-12-02 Thread Marius
On Dec 2, 10:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett timo...@getintheloop.euwrote: Hey Marius, Im not 100% sure that Servlet 3.0 will solve our problems... im worried that the vendors will not standardise once again

[Lift] Re: Filtering of script tags from ajax replies and executing the javascript

2009-12-02 Thread jon
Comments below. On Dec 2, 2:00 pm, Marius marius.dan...@gmail.com 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

[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: 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 indraj...@gmail.com wrote: Fixed in snapshot repo :) The following command should give you a good project now. mvn archetype:generate -DarchetypeRepository=http://scala-tools.org/

[Lift] Re: Broken 1.1-M7 jpa archetypes

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

[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 feeder.of.the.be...@gmail.com 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.http://udorse.com/about/jobsBut Jon's made a valuable contribution

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 feeder.of.the.be...@gmail.com 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

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] can

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

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 the

[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 timo...@getintheloop.eu wrote: Neil, ActorPing is what you want, yes. Essentially, calling it says in X time span call Z method - if you need repeating

[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.

[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.

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 cla...@gmail.com 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

[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 feeder.of.the.be...@gmail.com 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.http://udorse.com/about/jobsBut Jon's made a

[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 timo...@getintheloop.eu wrote: Welcome Jon! Its new-committer-o-rama!! I need to get on top of the current team list to revise the site

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

2009-12-02 Thread Heiko Seeberger
Welcome, Jon! 2009/12/3 David Pollak feeder.of.the.be...@gmail.com 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.http://udorse.com/about/jobsBut Jon's made a valuable contribution to Lift as

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 anim...@gmail.com wrote: Thanks very much, yeah, that what i want. Is there a wiki example tutorial ? Cheers, Neil On Dec 3,