Re: [Lift] Re: How can one bind value-less attributes?
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)) res11: scala.xml.NodeSeq = input type=checkbox checked=checked/input scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,null,selected)) res12: scala.xml.NodeSeq = input type=checkbox /input /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes
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 approach. But from a framework perspective this is a little limiting. In order to be more extensible I think we should allow users to plug in their own splitting functions (say a LiftRules RulesSeq of functions) and essentially determine what is suffix and what is not based on potentially some more complex rules. But that's just me ... Okay, please open a ticket and make it happen. Br's, Marius On Nov 27, 10:04 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: By the way Microsoft uses some really long suffixes, e.g., MS Access Developer Extension Deployment Wizard files, and Pocket PC emulator. -Original Message- From: David Pollak feeder.of.the.be...@gmail.com Sent: Wednesday, November 25, 2009 10:34 AM To: liftweb@googlegroups.com Subject: Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes I'm not overly keen on the whitelist stuff. Someone's going to get cranky about it. I'm open to either adding a whole lot more to the white list or saying that everything n characters (e.g., 5) is a suffix unless it's on a blacklist -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to get the servlet context
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, David Pollak feeder.of.the.be...@gmail.com wrote: 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 and a single stateless dispatch. All in all 40 lines of code and no pain. On Mon, Nov 30, 2009 at 2:08 PM, Marius marius.dan...@gmail.com wrote: Ahh so you want direct links to those files. Still you can do something else. Point your URI's from your page to a specific uri such as /myapp/serve/myimage.jpg. You intercept requests to myapp :: serve :: _ using a DispatchPF. The dispatch PF knows about your folder location (presumably from a config file) and reads myimage.jpg from that path on the file system. Hence you can read the File and send it to the client. I think you can use Lift's StreamResponse or you can build your own LiftResponse that returns a file using proper Content-Type. Another approach would be to use a reverse proxy server in front of your Lift application (this is a common production deployment model that server static content from frontend server not app servers), your Lift application could simply write files in the document-root folder hence would be seen by the proxy server and served to the client. I used in the past both options with no problem at all for use cases not so different than yours. Brs, Marius On Nov 30, 11:36 pm, jhonig al...@xs4all.nl wrote: Marius, I tried to create a link from the webapp dir to another location with rw-access, but that was not allowed... My conclusion was that you can't have symbolic links to locations outside the war. My problem is that there are three different locations that could all be interpreted as a root for looking up resources. I've found nothing suggesting one over the other, and none of them works. I assume there are more variables involved that I don't even know of. Job On Nov 30, 10:27 pm, Marius marius.dan...@gmail.com wrote: Ok I may be missing something essential from all this thread but why not use a folder from the user's home directory? If your app runs say under jetty OS user should heve read/write rights to write on the home user file-system. Even if not (although I haven't encountered the case) those rights can be granted by an admin. So why do you need special container allocated locations to write files? Br's, Marius On Nov 30, 11:18 pm, jhonig al...@xs4all.nl wrote: Hi Tim, Jeppe, and others who have replied... I have spent a few more hours, but there are just too many variables and I haven't been able to figure them out. I logged the various locations (running under a standalone jetty, not mvn jetty:run, and got this: INFO - TEMP = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b INFO - REAL = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp INFO - URL = file:/tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp/WEB-INF/classes/ I tried to access images, both from the HTML served to my browser and from Scala snippets. I used the following paths: Images/testimage.jpg work/Images/testimage.jpg classes/work/Images/testimage.jpg WEB-INF/classes/work/Images/testimage.jpg. The latter path is what I see in my .war file... I have no special filters. I tried to add entries to my site map, but none of them worked. About to give up. Hope somebody will help me. Job H. On Nov 28, 3:14 pm, jhonig al...@xs4all.nl wrote: Dear Tim and Heiko, I tested a few things under mvn jetty:run...: getRealPath gives me ./src/main/webapp the temp attribute is set to ./target/work and the location is ./target/classes While the war contains classes/work which is again different... I didn't manage to get jetty to serve contents from any other directory than the first one. Didn't try to run it on the standalone jetty, since I still don't know how to tell jetty to serve contents that is not under the webapp directory. Probably have to do something with the site map which I don't fully understand. Guess my main problem is that I don't have any experience in this field (jetty/lift) and thought it wouldn't be to difficult to port my website to lift and enhance it a little on the fly.
[Lift] Re: lift modules
@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 great modules out there - they should be somehow presented/documented. On Nov 28, 6:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Stephan, I wrote the paypal module... what do you want to know? Cheers, Tim On Nov 28, 4:49 pm, stephanos stephan.beh...@googlemail.com wrote: Hi folks, I'm new to lift and was wondering about all the variousmoduleslike lift-paypal etc. I found in the maven repository. Is there an overview/documentation of them somewhere - I couldn't find one yet. Cheers, Stephan -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: lift modules
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 2009, at 10:21, stephanos wrote: @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 great modules out there - they should be somehow presented/documented. On Nov 28, 6:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Stephan, I wrote the paypal module... what do you want to know? Cheers, Tim On Nov 28, 4:49 pm, stephanos stephan.beh...@googlemail.com wrote: Hi folks, I'm new to lift and was wondering about all the variousmoduleslike lift-paypal etc. I found in the maven repository. Is there an overview/documentation of them somewhere - I couldn't find one yet. Cheers, Stephan -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Multi-Database Transactions
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 two, but I won't be using XA, as we've had some problems in this area. I don't know if it's us, drivers, JBoss, MySQL server itself or what, but we're steering clear regardless, as the problems are nasty and difficult to reproduce. I'm not concerned about 2PC or anything of that sort. If we have a commit/rollback problem once in a blue moon, I'm not going to lose any sleep over it. What I've done in an existing Java/Spring project is to write a class that contains a list of Spring's transaction managers and just delegates begin/commit/rollback as appropriate. 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 to the use of multiple databases. Any advice/pointers would be very much appreciated. Matt -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Multi-Database Transactions
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 anything relating to the use of multiple databases. Any advice/pointers would be very much appreciated. Lift already supports wrapping the request with code. e.g I have S.addAround(DB.buildLoanWrapper) in Boot.scala which wraps a transaction around the request. I haven't tried multiple databases, but it should be trivial (famous last words :-) to extend this to also work in this scenario (when you don't want XA transactions) This is for Mapper, the Lift ORM, I assume JPA can be made to work in similar ways... /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
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 page. ### script charset=utf-8 language=JavaScript src=http://..php/ ### I try that create a test.html ( /src/main/webapp/test.html ) and the use the iframe to embed the test.html. ### iframe frameborder=1 scrolling=yes style=height: 5px; width: 5px; src=test.html name=lift/iframe ### It works fine in the IE, but not in the Firefox. Does anybody know that how to resolve this problem in the lift ? Cheers, Neil -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
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 application/xhtml+xml does not have the write() method. I have a script that need to use the document.write method in the lift page. ### script charset=utf-8 language=JavaScript src=http://..php/ ### I try that create a test.html ( /src/main/webapp/test.html ) and the use the iframe to embed the test.html. ### iframe frameborder=1 scrolling=yes style=height: 5px; width: 5px; src=test.html name=lift/iframe ### It works fine in the IE, but not in the Firefox. Does anybody know that how to resolve this problem in the lift ? Cheers, Neil -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
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 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 page. ### script charset=utf-8 language=JavaScript src=http://..php/ ### I try that create a test.html ( /src/main/webapp/test.html ) and the use the iframe to embed the test.html. ### iframe frameborder=1 scrolling=yes style=height: 5px; width: 5px; src=test.html name=lift/iframe ### It works fine in the IE, but not in the Firefox. Does anybody know that how to resolve this problem in the lift ? Cheers, Neil -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How can one bind value-less attributes?
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 rendered: scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,Text(checked),checked)) res11: scala.xml.NodeSeq = input type=checkbox checked=checked/input scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,null,selected)) res12: scala.xml.NodeSeq = input type=checkbox /input /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to get the servlet context
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 files. Still you can do something else. Point your URI's from your page to a specific uri such as /myapp/serve/myimage.jpg. You intercept requests to myapp :: serve :: _ using a DispatchPF. The dispatch PF knows about your folder location (presumably from a config file) and reads myimage.jpg from that path on the file system. Hence you can read the File and send it to the client. I think you can use Lift's StreamResponse or you can build your own LiftResponse that returns a file using proper Content-Type. Another approach would be to use a reverse proxy server in front of your Lift application (this is a common production deployment model that server static content from frontend server not app servers), your Lift application could simply write files in the document-root folder hence would be seen by the proxy server and served to the client. I used in the past both options with no problem at all for use cases not so different than yours. Brs, Marius On Nov 30, 11:36 pm, jhonig al...@xs4all.nl wrote: Marius, I tried to create a link from the webapp dir to another location with rw-access, but that was not allowed... My conclusion was that you can't have symbolic links to locations outside the war. My problem is that there are three different locations that could all be interpreted as a root for looking up resources. I've found nothing suggesting one over the other, and none of them works. I assume there are more variables involved that I don't even know of. Job On Nov 30, 10:27 pm, Marius marius.dan...@gmail.com wrote: Ok I may be missing something essential from all this thread but why not use a folder from the user's home directory? If your app runs say under jetty OS user should heve read/write rights to write on the home user file-system. Even if not (although I haven't encountered the case) those rights can be granted by an admin. So why do you need special container allocated locations to write files? Br's, Marius On Nov 30, 11:18 pm, jhonig al...@xs4all.nl wrote: Hi Tim, Jeppe, and others who have replied... I have spent a few more hours, but there are just too many variables and I haven't been able to figure them out. I logged the various locations (running under a standalone jetty, not mvn jetty:run, and got this: INFO - TEMP = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b INFO - REAL = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp INFO - URL = file:/tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp/WEB-INF/classes/ I tried to access images, both from the HTML served to my browser and from Scala snippets. I used the following paths: Images/testimage.jpg work/Images/testimage.jpg classes/work/Images/testimage.jpg WEB-INF/classes/work/Images/testimage.jpg. The latter path is what I see in my .war file... I have no special filters. I tried to add entries to my site map, but none of them worked. About to give up. Hope somebody will help me. Job H. On Nov 28, 3:14 pm, jhonig al...@xs4all.nl wrote: Dear Tim and Heiko, I tested a few things under mvn jetty:run...: getRealPath gives me ./src/main/webapp the temp attribute is set to ./target/work and the location is ./target/classes While the war contains classes/work which is again different... I didn't manage to get jetty to serve contents from any other directory than the first one. Didn't try to run it on the standalone jetty, since I still don't know how to tell jetty to serve contents that is not under the webapp directory. Probably have to do something with the site map which I don't fully understand. Guess my main problem is that I don't have any experience in this field (jetty/lift) and thought it wouldn't be to difficult to port my website to lift and enhance it a little on the fly. To be continued... Job Honig On Nov 28, 12:52 am, Timothy Perrett timo...@getintheloop.eu wrote: Here's a nugget of information for you that will help (as I do something similar to what you want in one of my applications): val protectionDomain: ProtectionDomain = classOf[bootstrap.liftweb.Boot].getProtectionDomain() val location: URL = protectionDomain.getCodeSource().getLocation() Print the value of location, and that will get you headed in the right direction ;-) Moreover, if your using jetty, if there is a work directory next to where the war
[Lift] Re: How to get the servlet context
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 and a single stateless dispatch. All in all 40 lines of code and no pain. I don't need to upload images. They are created by a snippet and should be served right away. They will be cleaned up after some 10 minutes or so. It's all about scaling images to the browser size and discarding them after the user hasn't accessed them for a while. So it's really all about accessing a SCRATCH directory from the app and serving content from that location. I've never served images from a database and wonder if that is the best way to solve this problem, given the overhead of a db. And I don't think it will be easy to make JAI (Advanced Imaging) write or read to/from a db, there's nothing whatsoever in the JAI documentation about that. Best, Job H. On Mon, Nov 30, 2009 at 2:08 PM, Marius marius.dan...@gmail.com wrote: Ahh so you want direct links to those files. Still you can do something else. Point your URI's from your page to a specific uri such as /myapp/serve/myimage.jpg. You intercept requests to myapp :: serve :: _ using a DispatchPF. The dispatch PF knows about your folder location (presumably from a config file) and reads myimage.jpg from that path on the file system. Hence you can read the File and send it to the client. I think you can use Lift's StreamResponse or you can build your own LiftResponse that returns a file using proper Content-Type. Another approach would be to use a reverse proxy server in front of your Lift application (this is a common production deployment model that server static content from frontend server not app servers), your Lift application could simply write files in the document-root folder hence would be seen by the proxy server and served to the client. I used in the past both options with no problem at all for use cases not so different than yours. Brs, Marius On Nov 30, 11:36 pm, jhonig al...@xs4all.nl wrote: Marius, I tried to create a link from the webapp dir to another location with rw-access, but that was not allowed... My conclusion was that you can't have symbolic links to locations outside the war. My problem is that there are three different locations that could all be interpreted as a root for looking up resources. I've found nothing suggesting one over the other, and none of them works. I assume there are more variables involved that I don't even know of. Job On Nov 30, 10:27 pm, Marius marius.dan...@gmail.com wrote: Ok I may be missing something essential from all this thread but why not use a folder from the user's home directory? If your app runs say under jetty OS user should heve read/write rights to write on the home user file-system. Even if not (although I haven't encountered the case) those rights can be granted by an admin. So why do you need special container allocated locations to write files? Br's, Marius On Nov 30, 11:18 pm, jhonig al...@xs4all.nl wrote: Hi Tim, Jeppe, and others who have replied... I have spent a few more hours, but there are just too many variables and I haven't been able to figure them out. I logged the various locations (running under a standalone jetty, not mvn jetty:run, and got this: INFO - TEMP = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b INFO - REAL = /tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp INFO - URL = file:/tmp/Jetty_0_0_0_0_8080_tent. 0.1.SNAPSHOT.warvtra6b/webapp/WEB-INF/classes/ I tried to access images, both from the HTML served to my browser and from Scala snippets. I used the following paths: Images/testimage.jpg work/Images/testimage.jpg classes/work/Images/testimage.jpg WEB-INF/classes/work/Images/testimage.jpg. The latter path is what I see in my .war file... I have no special filters. I tried to add entries to my site map, but none of them worked. About to give up. Hope somebody will help me. Job H. On Nov 28, 3:14 pm, jhonig al...@xs4all.nl wrote: Dear Tim and Heiko, I tested a few things under mvn jetty:run...: getRealPath gives me ./src/main/webapp the temp attribute is set to ./target/work and the location is ./target/classes While the war contains classes/work which is again different... I didn't manage to get jetty to serve contents from any other directory than the first one. Didn't try to run it on the standalone jetty, since I still don't know how to tell jetty to serve contents that is not under the
[Lift] Re: How to get the servlet context
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 tried to use a symbolic link from the WAR to an absolute fs location, but that was not allowed... Messing around with trying to figure out where the app server has exploded your WAR file (if it even has which is not AFAIK guaranteed) and putting files in there is a failure waiting to happen. OK, I see. 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
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 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 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 page. ### script charset=utf-8 language=JavaScript src=http://..php/ ### I try that create a test.html ( /src/main/webapp/test.html ) and the use the iframe to embed the test.html. ### iframe frameborder=1 scrolling=yes style=height: 5px; width: 5px; src=test.html name=lift/iframe ### It works fine in the IE, but not in the Firefox. Does anybody know that how to resolve this problem in the lift ? Cheers, Neil -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: How can one bind value-less attributes?
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 rendered: scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,Text(checked),checked)) res11: scala.xml.NodeSeq = input type=checkbox checked=checked/input scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,null,selected)) res12: scala.xml.NodeSeq = input type=checkbox /input /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] How to use the ActorPing schedule ? in the lift .
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 subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Is it possible to use Schemifier without DB Access?
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 tables and just let Schemifier give me all the create statements? I don't think there's a way to do that. You can set flags for schemification that only log changes, but don't actually make them. But there's no way to tell Schemifier pretent there are no tables. Sorry. Thanks, Joern -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] How to use the ActorPing schedule ? in the lift .
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: 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 subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: How can one bind value-less attributes?
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 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)) res11: scala.xml.NodeSeq = input type=checkbox checked=checked/input scala bind(stuff, input type=checkbox stuff:s=/, AttrBindParam(s,null,selected)) res12: scala.xml.NodeSeq = input type=checkbox /input /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] A second rewrite phase
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 posting is at http://reviewboard.liftweb.net/r/132/ Cool stuff. It's checked into master Anyone who cares about what is accessible during this rewrite phase should pull the dpp_issue_197 branch from GitHub and do a build to make sure it's suiting their needs. It solves at least one of my issues: I can now go to a CRUDify page such as http://localhost:8080/procurement/edit/173 and be redirected to the login in page if I'm not signed in. This didn't work before since I used the signed in user id during rewrite to locate the item to edit. Nice! The other issues I've worked around for now (mostly using sessionsvars during rewrite when no session exist), so can't easily comment atm You might want to look into the RequestMemoize and SessionMemoize stuff I added... they may help you (especially related to RDBMS access and pattern matching) /Jeppe -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: How to get the servlet context
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 props file, a general Lift props file, a user defined props file? 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. I tried to use a symbolic link from the WAR to an absolute fs location, but that was not allowed... Messing around with trying to figure out where the app server has exploded your WAR file (if it even has which is not AFAIK guaranteed) and putting files in there is a failure waiting to happen. OK, I see. 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to get the servlet context
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 the images as static content. In that context, I will post a new question. Job H. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Jetty question
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://wiki.eclipse.org/Jetty, but many of the of the documentation links require me to be a member of some unspecified entity... One would think though that this wiki is the proper source for Jetty documentation... Job H. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Jetty question
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/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://wiki.eclipse.org/Jetty, but many of the of the documentation links require me to be a member of some unspecified entity... One would think though that this wiki is the proper source for Jetty documentation... Job H. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Jetty question
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, jhonig al...@xs4all.nl wrote: 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://wiki.eclipse.org/Jetty, but many of the of the documentation links require me to be a member of some unspecified entity... One would think though that this wiki is the proper source for Jetty documentation... Job H. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Filtering of script tags from ajax replies and executing the javascript
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 would be interesting enough to add to Lift in a more comprehensive way (so that it works for all JsCmds that render NodeSeqs)? Here's what I got so far: http://gist.github.com/247425 - Jon -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Image upload and serving example
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 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.setFromUrl(urlString) - Jon On Dec 2, 12:15 am, DMB combust...@gmail.com wrote: You don't even need f.get in there as it turns out. f.get should just be file. Beautiful. Thanks for the tip. On Dec 1, 8:07 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 1, 2009 at 8:03 PM, DMB combust...@gmail.com wrote: Ended up doing this: def show(xhtml: NodeSeq) : NodeSeq = { if(S.post_?) { val f : Option[FileParamHolder] = S.request match { case Empty = Empty case Full(req) = req.uploadedFiles.find(_.name == file_upload) } if(f.isDefined) { acceptFile(f.get) } } return xhtml } This is a place for a for comprehension: def show(xhtml: NodeSeq): NodeSeq = { for { request - S.request if S.post_? file - request.uploadedFiles.find(_.name == file_upload) } acceptFile(f.get) xhtml } Note that the code is shorter, reads better and has no branches in it. And putting a bare upload field in the snippet, like you sugested. I still wonder if the binding method is the best place for this, though. On Dec 1, 10:14 am, David Pollak feeder.of.the.be...@gmail.com wrote: If you have the Req (request), you can do: val req: Req = ... val theFile: Option[FileParamHolder] = req.uploadedFiles.find(_.name == my_param_name) On Tue, Dec 1, 2009 at 2:49 AM, DMB combust...@gmail.com wrote: Just what I was looking for, thanks! By the way, is there a way to assign a name attribute to a file upload input field? The reason is I have a legacy piece of code that does HTTP uploads by simulating a form submit. This code requires that the form field name be known in advance, for obvious reasons. On Nov 30, 9:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Lately there's been a bunch of chatter on the list about image upload and figuring out how to put the image files in the right place to serve them again. I've written a simple example of image uploading, storing the image in the RDBMS and then serving the image. You can find the code at: http://github.com/dpp/imagine/ The file upload snippet is very simple: class DoUpload { private def saveFile(fp: FileParamHolder): Unit = { fp.file match { case null = case x if x.length == 0 = case x = val blob = ImageBlob.create.image(x).saveMe ImageInfo.create.name (fp.fileName).mimeType(fp.mimeType).blob(blob).saveMe S.notice(Thanks for the upload) S.redirectTo(/) } } def render(in: NodeSeq): NodeSeq = bind(upload, in, file - SHtml.fileUpload(saveFile _)) } If the blob is uploaded, it's put in a row in ImageBlob and an ImageInfo row is created to store the name and mime type. There are two different rows so that one doesn't have to pull the whole blob back when you're checking for the upload date. Serving the image is similarly concise: def serveImage: LiftRules.DispatchPF = { case req @ Req(images :: _ :: Nil, _, GetRequest) if findFromRequest(req).isDefined = () = { val info = findFromRequest(req).open_! // open is valid here because we just tested in the guard // Test for expiration req.testFor304(info.date, Expires - toInternetDate(millis + 30.days)) or // load the blob and return it info.blob.obj.map(blob = InMemoryResponse(blob.image, List((Last-Modified, toInternetDate(info.date.is)), (Expires, toInternetDate(millis + 30.days)), (Content-Type, info.mimeType.is)), Nil, 200)) } } If the request matches /images/xxx where xxx is a name in the ImageInfo table, check to see if we can return a 304 (not modified). If not, we pull the blob from the database and return it. I hope this helps folks who are looking to manage and serve images.
Re: [Lift] Re: Filtering of script tags from ajax replies and executing the javascript
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 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 nodes out is a pretty trivial task using pattern matching or Scala's RuleTransformer. Last but not least I would avoid using open_! in such contexts. Try using openOr for graceful degradation. Br's, Marius On Dec 2, 8:40 pm, jon jonhoff...@gmail.com wrote: 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 would be interesting enough to add to Lift in a more comprehensive way (so that it works for all JsCmds that render NodeSeqs)? Here's what I got so far:http://gist.github.com/247425 - Jon -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Jetty question
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 because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Jetty question
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 this model does not scale very well. The reason for that Jetty 7 continuations API is not in Lift yet is because we were waiting for Servlet 3.0 Async support (similar in many respects with Jetty 7 continuations). But servlet 3.0 is not there yet ... still Jetty 7 contains some more or less experimental implementation of Servlet 3.0 Async. I'm using at work jetty 7 continuations which is quite a nice API ... even nicer that servlet 3.0 spec :D Br's, Marius On Dec 2, 9:30 pm, jhonig al...@xs4all.nl wrote: 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 because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Jetty question
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 like Atmosphere to become container agnostic? Cheers, Tim PS: Sorry for the semi thread-hijacking! On Dec 2, 8:15 pm, Marius marius.dan...@gmail.com wrote: 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 this model does not scale very well. The reason for that Jetty 7 continuations API is not in Lift yet is because we were waiting for Servlet 3.0 Async support (similar in many respects with Jetty 7 continuations). But servlet 3.0 is not there yet ... still Jetty 7 contains some more or less experimental implementation of Servlet 3.0 Async. I'm using at work jetty 7 continuations which is quite a nice API ... even nicer that servlet 3.0 spec :D Br's, Marius On Dec 2, 9:30 pm, jhonig al...@xs4all.nl wrote: 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 because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Jetty question
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 implementations)... To this end, I cant help but wonder if we will end up falling back on something like Atmosphere to become container agnostic? Ummm... why would we put in a layer (Atmosphere) when we can do it better ourselves. Lift was the first JVM framework to support long polling. I am loath to layer in another piece when we can deal with things as well or better than Atmosphere. Cheers, Tim PS: Sorry for the semi thread-hijacking! On Dec 2, 8:15 pm, Marius marius.dan...@gmail.com wrote: 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 this model does not scale very well. The reason for that Jetty 7 continuations API is not in Lift yet is because we were waiting for Servlet 3.0 Async support (similar in many respects with Jetty 7 continuations). But servlet 3.0 is not there yet ... still Jetty 7 contains some more or less experimental implementation of Servlet 3.0 Async. I'm using at work jetty 7 continuations which is quite a nice API ... even nicer that servlet 3.0 spec :D Br's, Marius On Dec 2, 9:30 pm, jhonig al...@xs4all.nl wrote: 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 because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Oracle DB connection in 1.1-m7
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 dchenbec...@gmail.comwrote: I should have a fix in 30 minutes or so. On Thu, Nov 26, 2009 at 9:56 AM, Mathias Sulser s...@suls.org wrote: I think the MappedBoolean isn't properly done in the OracleDriver: scala User.findAll(By(User.superUser, false)) java.sql.SQLException: Invalid column type at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:208) at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical (OraclePreparedStatement.java:9168) at ora... And if you look at the generated DDL: CREATE TABLE USERS ( ... SUPERUSER decimal(22), ... ); Any hints on how to solve this? Btw, it's a 10g data base On Nov 26, 4:14 pm, Mathias Sulser s...@suls.org wrote: All right. Figuring out the proper JDBC string was all. Schemifyer seems to then pick the right driver and produce DDL for the specific DB. Great stuff. On Nov 26, 3:17 pm, suls s...@suls.org wrote: Hi, I see that there is a DriverType and OracleDriver in 1.1-m7 but again I don't know how to connect the dots. How would a DB.defineConnectionManager method call that uses an oracle db look like? Thanks, suls -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Jetty question
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 (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 like Atmosphere to become container agnostic? Ummm... why would we put in a layer (Atmosphere) when we can do it better ourselves. Lift was the first JVM framework to support long polling. I am loath to layer in another piece when we can deal with things as well or better than Atmosphere. I think I proposed an abstraction layer for Comet more than an year ago but that was then. Do you think this would be helpful ? Cheers, Tim PS: Sorry for the semi thread-hijacking! On Dec 2, 8:15 pm, Marius marius.dan...@gmail.com wrote: 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 this model does not scale very well. The reason for that Jetty 7 continuations API is not in Lift yet is because we were waiting for Servlet 3.0 Async support (similar in many respects with Jetty 7 continuations). But servlet 3.0 is not there yet ... still Jetty 7 contains some more or less experimental implementation of Servlet 3.0 Async. I'm using at work jetty 7 continuations which is quite a nice API ... even nicer that servlet 3.0 spec :D Br's, Marius On Dec 2, 9:30 pm, jhonig al...@xs4all.nl wrote: 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 because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Filtering of script tags from ajax replies and executing the javascript
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 style page transitions without changing too many things. Also, I'm using something similar to the LazyLoad, which harryh shared a few months ago, which looks like this: lift:LazyLoad div id=foo lift:SomeSnippet/ /div script type=text/javascript //![CDATA[ alert('loaded'); //do something with foo //]] /script /lift:LazyLoad I get your point though, perhaps these are esoteric use cases. 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 nodes out is a pretty trivial task using pattern matching or Scala's RuleTransformer. I also explored creating a trait that can be mixed into JqSetHtml to achieve the same goal: http://gist.github.com/247557 But I think it's too brittle to be generally useful. Last but not least I would avoid using open_! in such contexts. Try using openOr for graceful degradation. Under most circumstances I wouldn't use open_!, but for the case of hard coded template paths, I want things to fail in as loud a way as possible if I were to rename or fatfinger a path and that somehow made it into production (I have a top level catch all for exceptions which shoots out notifications and displays a nice error message). I realize that it would be hard to quickly parse the error cause, so I'm using something like this instead: def findTemplate_!(path:List[String]) = findAnyTemplate(path) openOr (throw new Exception(Template not found: + path.mkString(/))) Br's, Marius On Dec 2, 8:40 pm, jon jonhoff...@gmail.com wrote: 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 would be interesting enough to add to Lift in a more comprehensive way (so that it works for all JsCmds that render NodeSeqs)? Here's what I got so far:http://gist.github.com/247425 - Jon -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Mapper - JObject bridge
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): A Implement the bridge. They are protected and have a _! in their name because they are *dangerous* in that data can be exposed on the JSON object that you might not want exposed and these methods should be used with extreme caution. An example of usage can be found in the MapperSpecs: object SampleModel extends SampleModel with KeyedMetaMapper[Long, SampleModel] { def encodeAsJson(in: SampleModel): JsonAST.JObject = encodeAsJSON_!(in) def buildFromJson(json: JsonAST.JObject): SampleModel = decodeFromJSON_!(json) } class SampleModel extends KeyedMapper[Long, SampleModel] { def getSingleton = SampleModel // what's the meta server def primaryKeyField = id object id extends MappedLongIndex(this) object firstName extends MappedString(this, 32) object moose extends MappedNullableLong(this) object notNull extends MappedString(this, 32) { override def dbNotNull_? = true } def encodeAsJson(): JsonAST.JObject = SampleModel.encodeAsJson(this) } So, you can use this mechanism to serialize a Mapper object to JSON, shovel the object into memcached and then pull it out, mutate a field and save the object back to the database (although connection identifier is lost, so if you are sharding your database, this will not work). Please give it a try, give me feedback. I'll put it on review board tomorrow after any feedback and get it into Lift. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Broken 1.1-M7 jpa archetypes
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/ repo-snapshots -DremoteRepositories=http://scala-tools.org/repo- snapshots -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift- archetype-jpa-basic-DarchetypeVersion=1.1-SNAPSHOT - DgroupId=com.mypackage -DartifactId=myproject -Dversion=1.0-SNAPSHOT Cheers, Indrajit On Nov 25, 3:23 am, David Pollak feeder.of.the.be...@gmail.com wrote: Yes. This is a known issue. Seehttp://github.com/dpp/liftweb/issues#issue/161 On Tue, Nov 24, 2009 at 9:34 AM, Oscar Picasso oscarpica...@gmail.comwrote: It seems that 1.1-M7 jpa archetypes other than lift-archetype-jpa-basicare broken, both in snapshots and releases repositories. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Broken 1.1-M7 jpa archetypes
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. mvn archetype:generate -DarchetypeRepository=http://scala-tools.org/ repo-snapshots -DremoteRepositories=http://scala-tools.org/repo- snapshots -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift- archetype-jpa-basic-DarchetypeVersion=1.1-SNAPSHOT - DgroupId=com.mypackage -DartifactId=myproject -Dversion=1.0-SNAPSHOT Cheers, Indrajit On Nov 25, 3:23 am, David Pollak feeder.of.the.be...@gmail.com wrote: Yes. This is a known issue. Seehttp://github.com/dpp/liftweb/issues#issue/161 On Tue, Nov 24, 2009 at 9:34 AM, Oscar Picasso oscarpica...@gmail.comwrote: It seems that 1.1-M7 jpa archetypes other than lift-archetype-jpa-basicare broken, both in snapshots and releases repositories. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Please welcome Jon Hoffman to the Lift committers
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 to Lift as part of the community. Now, he's a committer. Please join me in welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! Thanks, David PS -- Derek please add Jon to the review board. PPS -- My wife loves the Udorse jobs page. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Please welcome Jon Hoffman to the Lift committers
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 part of the community. Now, he's a committer. Please join me in welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: @ymnk -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Please welcome Jon Hoffman to the Lift committers
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 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 welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! Thanks, David PS -- Derek please add Jon to the review board. PPS -- My wife loves the Udorse jobs page. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Foreign Key constraints are not created by schemify
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 julianbac...@googlemail.comwrote: Hi Lift Community, this is a reply to my own question: I'm trying to get my first scala/lift app working and I have a problem: Schemifier.schemify(...) creates everything, i.e. tables, primary keys, indices but it does not create the foreign key constraints. After hours of compiling and testing, I stumbled across some messages here on the mailing lists which discussed the same problem (I have no idea why I haven't seen them before). In one message, Derek said At this time we don't support it, but feel free to file an issue. I'll have time at some point to work on it, and I think that it would be useful to generate. What does he mean by we don't support it? I've seen the code for generating foreign key constraints in Schemifier.scala I just needed to set supportsForeignKeys_? in the postgresql driver class to true and... it works now. The generated foreign key constraints are perfectly ok. Is there a reason that this code is not used? Julian -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Foreign Key constraints are not created by schemify
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 user expects (like I did) foreign keys to be created if he uses mapper classes referencing other mapper classes. This behaviour should at least be mentioned somewhere in the documentation (btw, the documentation is in my opinion the biggest problems of Lift at the moment). I think, using a relational database without foreign keys is somehow not very useful because you never really know whether you have referential integrity... It would be great if you looked at the code and enabled it. This would really be an improvement for the mapper stuff in Lift 1.1 Julian -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: How to use the ActorPing schedule ? in the lift .
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 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: 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 subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?
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 -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?
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 -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?
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 rest in hidden form fields. This is a bad idea for a variety of reasons, mostly security related, but also for the amount of data the is moved around and the amount of state decoding that's necessary. But if this is the design that you want, I don't think Lift is the right framework for you. You might be better off with Play or Wicket. Thanks, David Any assistance would be appreciated. Thanks. Shawn -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Please welcome Jon Hoffman to the Lift committers
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 valuable contribution to Lift as part of the community. Now, he's a committer. Please join me in welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! Thanks, David PS -- Derek please add Jon to the review board. PPS -- My wife loves the Udorse jobs page. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Please welcome Jon Hoffman to the Lift committers
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 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 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 welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! Thanks, David PS -- Derek please add Jon to the review board. PPS -- My wife loves the Udorse jobs page. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Please welcome Jon Hoffman to the Lift committers
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 part of the community. Now, he's a committer. Please join me in welcoming Jon. I'm looking forward to his S3-related additions to Lift and any other goodies he wants to toss into Lift. Jon, welcome and I'm looking forward to the grandeur of your contributions! Thanks, David PS -- Derek please add Jon to the review board. PPS -- My wife loves the Udorse jobs page. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- 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 to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: How to use the ActorPing schedule ? in the lift .
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, 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 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: 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 subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/ group/liftweb?hl=en. -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en . -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.