[Lift] More on bind and preserving attributes

2009-11-27 Thread Jeppe Nejsum Madsen
Hi, I know this has been discussed somewhat at length (e.g. here http://groups.google.com/group/liftweb/browse_thread/thread/27aed5f45faf759/a261a2dfe0ae7207?lnk=gstq=attributes+bind#a261a2dfe0ae7207) but I still think the default behaviour of - should be reconsidered if at all possible. Here's

[Lift] Building war for production mode.

2009-11-27 Thread Marcin Jurczuk
Hello, I'm trying to first test deploy of my app :) I created package (mvn package), uploaded created war as root.war in webapp folder of jetty server and when running app it looks that lift app is running in development mode (no 404 is showed but: The requested page was not defined in your

[Lift] Re: Broken 1.1-M7 jpa archetypes

2009-11-27 Thread Indrajit Raychaudhuri
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-

Re: [Lift] Building war for production mode.

2009-11-27 Thread Jeppe Nejsum Madsen
Marcin Jurczuk mjurc...@gmail.com writes: Hello, I'm trying to first test deploy of my app :) I created package (mvn package), uploaded created war as root.war in webapp folder of jetty server and when running app it looks that lift app is running in development mode (no 404 is showed but:

[Lift] Binding error in Ajax call : how to debug ?

2009-11-27 Thread Francois
Hello, When I use bind(namespace, template, bindings*) in an Ajax call, if there is a binding error (for example, a misspelled word in the template), I can't see any error, nor in the web broswer as it the case for such error outside Ajax Call, nor in the console log. I know that I can use

[Lift] Refactoring Round 2

2009-11-27 Thread Indrajit Raychaudhuri
Folks, In continuation to the refactoring initiative and following up on the discussion that we had on the last committers call, here we have the next round of broad based project structure refactoring proposal. This is themed around the idea of splitting the build system into separate smaller

[Lift] Lift and LDAP

2009-11-27 Thread TylerWeir
http://jgoday.wordpress.com/2009/11/27/lift-ldap/ One of the requisites to start using Lift at my work, was to use LDAP authentification. So i wrote a little module lift-ldap for that and a sample app, it was damn simple! http://github.com/jgoday/lift-ldap

Re: [Lift] Refactoring Round 2

2009-11-27 Thread Heiko Seeberger
Excellent proposal! Heiko On Friday, November 27, 2009, Indrajit Raychaudhuri indraj...@gmail.com wrote: Folks, In continuation to the refactoring initiative and following up on the discussion that we had on the last committers call, here we have the next round of broad based project

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

2009-11-27 Thread Derek Chen-Becker
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

Re: [Lift] More on bind and preserving attributes

2009-11-27 Thread Ross Mellgren
I'm not sure if this addresses your points, but I figured I'd throw out what I've been doing in case it helps. I don't use -%, but I do use something similar along with another implicit so I can place the attrs in exactly the right place, and it automagically combines class and style

Re: [Lift] How to get the servlet context

2009-11-27 Thread Ross Mellgren
A way you can get the Servlet context is like this: LiftRules.context match { case context: HTTPServletContext = // do something with context.ctx which is the javax.servlet.ServletContext case _ = // do something when the context is not a servlet context, perhaps log an error } The

[Lift] Re: Lift and LDAP

2009-11-27 Thread Marcin Jurczuk
That is amazing :) Probably I will need to bind to AD in near future, so this module is like fallen from heavens :) On 27 Lis, 15:11, TylerWeir tyler.w...@gmail.com wrote: http://jgoday.wordpress.com/2009/11/27/lift-ldap/ One of the requisites to start using Lift at my work, was to use LDAP

[Lift] Re: How to get the servlet context

2009-11-27 Thread jhonig
Thanks Ross, I will try this! Is there a generic way to get to a kind of sandbox directory where snippets can read/write files? Job On Nov 27, 5:12 pm, Ross Mellgren dri...@gmail.com wrote: A way you can get the Servlet context is like this: LiftRules.context match { case context:

Re: [Lift] derby

2009-11-27 Thread Derek Chen-Becker
Derby has inferior support for binary data types (32k limit) and has a couple of other issues that I can't remember off the top of my head. On Thu, Nov 26, 2009 at 1:54 PM, jlist9 jli...@gmail.com wrote: Hi David, Would you care to elaborate in what way Derby is inferior? I understand H2 is

Re: [Lift] How to get the servlet context

2009-11-27 Thread Heiko Seeberger
According to the Servlet spec each webapp has got a private temporary directory. I cannot remember exactly how to get this, maybe ServletContext.getTmpDir(). Please take a look at the spec. Heiko On Friday, November 27, 2009, jhonig al...@xs4all.nl wrote: Thanks Ross, I will try this!   Is

Re: [Lift] derby

2009-11-27 Thread jlist9
I see. Thanks Derek. On Fri, Nov 27, 2009 at 8:42 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Derby has inferior support for binary data types (32k limit) and has a couple of other issues that I can't remember off the top of my head. On Thu, Nov 26, 2009 at 1:54 PM, jlist9

[Lift] Re: How to get the servlet context

2009-11-27 Thread jhonig
Dear Heiko, According to the Servlet spec each webapp has got a private temporary directory. I cannot remember exactly how to get this, maybe ServletContext.getTmpDir(). Please take a look at the spec. I started reading the spec, but didn't find it yet. ServletContext doesn't have any

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

2009-11-27 Thread Heiko Seeberger
File tempdir = (File) config.getServletContext().getAttribute(javax.servlet.context.tempdir) 2009/11/27 jhonig al...@xs4all.nl Dear Heiko, According to the Servlet spec each webapp has got a private temporary directory. I cannot remember exactly how to get this, maybe

Re: [Lift] derby

2009-11-27 Thread Donald McLean
Anything larger than 32k should probably be a BLOB anyway (for which Derby has full support). However, I'm going to take a look at H2 anyway. On Fri, Nov 27, 2009 at 11:42 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Derby has inferior support for binary data types (32k limit) and has a

[Lift] Re: Newbie Question: Problems compiling/running examples

2009-11-27 Thread Jcon
Again, thanks for the quick response -- finally got it! Here's what I did and what ended up being the problem (maybe an obvious one, but wasn't to me since I'm new to scala/lift): 1. Ran 'git pull' then 'git reset --hard' 2. Ran 'mvn clean install' from liftweb root 3. Several projects built

Re: [Lift] derby

2009-11-27 Thread David Pollak
On Thu, Nov 26, 2009 at 12:54 PM, jlist9 jli...@gmail.com wrote: Hi David, Would you care to elaborate in what way Derby is inferior? I understand H2 is probably faster as speed is one of its main design goals. Does Derby have any other issues? I needed to do a lot more work arounds for

Re: [Lift] Re: how does lift work with redis?

2009-11-27 Thread David Pollak
2009/11/27 Jim Barrows jim.barr...@gmail.com 2009/11/26 surfman chinasmile...@gmail.com So, if I want to use nosql database with LIFT, what I have to use is JDBC driver, am I right? Any experienced suggestion? Google has very little searching result on it. I'd appreciate any idea on this

Re: [Lift] derby

2009-11-27 Thread jlist9
That's good to know. Thanks! On Fri, Nov 27, 2009 at 10:50 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I needed to do a lot more work arounds for Derby in Mapper/Schemifier... H2 was more true to the SQL spec. I have had a few instances of Derby databases getting corrupt during

[Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread jlist9
Still seeking an answer. I notice that the lift GAE example has a database demo. Does it use Mapper and read from/write to bigtable? http://lift-example.appspot.com/database On Thu, Nov 26, 2009 at 12:51 PM, jlist9 jli...@gmail.com wrote: Hi, I read from the list that Mapper is not supported on

RE: [Lift] Re: overriding ConnectionManager.newSuperConnection

2009-11-27 Thread Naftoli Gugenheim
Yeah, IIRC what happened was that it was trying to read tables from the schema with the user's name (assuming it was the default) while when it actually created them they went into the actual default, PUBLIC. I think this resulted in Schemifier trying to create tables that existed maybe. So the

RE: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-27 Thread Naftoli Gugenheim
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

[Lift] Re: How to get the servlet context

2009-11-27 Thread jhonig
Heiko, In the meantime, I found that solution as well... I tried it, and the default seems to be a work directory in target. I guess I can set another value for the attribute if I manage to convince jetty to do that for me. What I forgot to mention is that the directory is to contain images

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

2009-11-27 Thread Heiko Seeberger
Job, This directory is managed by the servlet container and as far as I know there is little you can do to configure the location. If you use Tomcat you are able to specify CATALINA_BASE and it will be somewhere beneath that directory, I believe it is work/Catalina/localhost/WABAPP-NAME.

[Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes

2009-11-27 Thread Marius
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

Re: [Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes

2009-11-27 Thread Timothy Perrett
Hmm, I like this approach marius - its more elegant than what we have now. What would be the overhead of such a system? It seems like this would better fit the lift configuration idioms also. Cheers, Tim On 27 Nov 2009, at 21:52, Marius wrote: For a default behavior this is a reasonable

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

2009-11-27 Thread Timothy Perrett
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()

[Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread Timothy Perrett
I cant think of a reason why mapper would not work on GAE? Mapper does not work with bigtable. You could write a record implementation if you really wanted to use bigtable. Cheers, Tim On Nov 27, 7:52 pm, jlist9 jli...@gmail.com wrote: Still seeking an answer. I notice that the lift GAE

Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread jlist9
Oh. I thought bigtable is the only datastore available on GAE? On Fri, Nov 27, 2009 at 3:55 PM, Timothy Perrett timo...@getintheloop.eu wrote: I cant think of a reason why mapper would not work on GAE? Mapper does not work with bigtable. You could write a record implementation if you really

Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread Timothy Perrett
I'm not sure about that, but I know for sure that mapper does not work with big table ;-) Cheers, Tim Sent from my iPhone On 28 Nov 2009, at 00:43, jlist9 jli...@gmail.com wrote: Oh. I thought bigtable is the only datastore available on GAE? On Fri, Nov 27, 2009 at 3:55 PM, Timothy

Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread jlist9
Hmmm. I wonder how the database demo in the lift GAE demo was implemented... is the source available somewhere? http://lift-example.appspot.com/database On Fri, Nov 27, 2009 at 5:00 PM, Timothy Perrett timo...@getintheloop.eu wrote: I'm not sure about that, but I know for sure that mapper does

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

2009-11-27 Thread Derek Chen-Becker
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

Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread Atsuhiko Yamanaka
Hi, On Sat, Nov 28, 2009 at 10:10 AM, jlist9 jli...@gmail.com wrote: Hmmm. I wonder how the database demo in the lift GAE demo was implemented... is the source available somewhere? http://lift-example.appspot.com/database It is running with H2 in-memory mode. Sincerely, -- Atsuhiko

[Lift] fsc and Lift

2009-11-27 Thread jack
Does anybody use fsc instead of scalac? I find scalac slow. Are there any known issues with using fsc with Lift? -- 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

Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread jlist9
I see. Thanks. That explains it. On Fri, Nov 27, 2009 at 8:34 PM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com Hmmm. I wonder how the database demo in the lift GAE demo was implemented... is the source available somewhere? http://lift-example.appspot.com/database It is running with H2

Re: [Lift] Re: Lift and LDAP

2009-11-27 Thread Xuefeng Wu
Did anyone try to integrate with SSO? On Sat, Nov 28, 2009 at 12:37 AM, Marcin Jurczuk mjurc...@gmail.com wrote: That is amazing :) Probably I will need to bind to AD in near future, so this module is like fallen from heavens :) On 27 Lis, 15:11, TylerWeir tyler.w...@gmail.com wrote:

[Lift] MetaMapper - Count with Group By?

2009-11-27 Thread Joern
Hi there, is it possible, to create a select statement like SELECT user_id, count(*) FROM table GROUP BY user_id with the MetaMapper? I want to let users get statistical information about some tables like how many news did that guy / the top 5 posters write or how many news are in each category.

[Lift] Re: fsc and Lift

2009-11-27 Thread Peter Robinett
If you're using Maven to manage your Lift project and especially testing things with the mvn jetty:run target, run mvn scala:cc in another shell. It will run fsc, detect source file changes and recompile them, reloading classes or restarting Jetty as necessary. It works very well, though I find

[Lift] Re: Building war for production mode.

2009-11-27 Thread Neil.Lv
I have the same issue, is add this statement into /home/jetty6/bin/ jetty.sh ### echo JAVA_OPTIONS=-Drun.mode=production /home/jetty6/bin/ jetty.sh ### then restart the jetty server, but it alwasy show the Development Mode information The requested page was not defined in your SiteMap, so