[Lift] Re: immutable bindings

2009-05-27 Thread Oliver Lambert
I've pushed my changes and additions back to my branch, hopefully for all to see (still learning git). I'll write an example app based on the changes soon. cheers Oliver On Tue, May 19, 2009 at 9:14 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Oliver, Good stuff... please make sure

[Lift] Re: Session usage in Lift

2009-05-27 Thread Kristinn
Yes, I understand your confusion, however sometimes people make designs that don't make much sense to others on first look (like using sessions for rendering all html). But there are often good reasons for these decisions (admittedly often these decisions are just bad). In our case we only need

[Lift] Re: Session usage in Lift

2009-05-27 Thread marius d.
On May 27, 9:17 am, Kristinn kristinn.daniels...@gmail.com wrote: Yes, I understand your confusion, however sometimes people make designs that don't make much sense to others on first look (like using sessions for rendering all html). But there are often good reasons for these decisions

Fwd: [Lift] Re: immutable bindings

2009-05-27 Thread Oliver Lambert
Added immutable binding example application to sites module, in my branch (didn't take long, must have done something right). -- Forwarded message -- From: Oliver Lambert olambo...@gmail.com Date: Wed, May 27, 2009 at 4:16 PM Subject: Re: [Lift] Re: immutable bindings To:

Re: Fwd: [Lift] Re: immutable bindings

2009-05-27 Thread Timothy Perrett
Hey Oliver, Just to clear the confussion (as I was looking on our main github repo for your branch), you created a *fork* not a branch (as only committers can create branches). For group reference, the repo is here: http://github.com/olambo/liftweb/tree/master Cheers, tim On May 27, 10:08 am,

[Lift] project stockholm update

2009-05-27 Thread Meredith Gregory
All, The latest version in github now successfully generates SQL persistence layer from the BNF. - git clone git://github.com/leithaus/stockholm.git - mvn clean compile process-classes process-classes Note bene: the process-classes goal currently needs to be called twice to generate the

[Lift] Re: GAE - working example?

2009-05-27 Thread datanucleus
You're using invalid versions of DataNucleus jars (1.1.1+) with the GAEJ plugin for datanucleus. The current released plugin only allows DataNucleus 1.1.0 jars. Their next versions should allow the latest DataNucleus jars to be used, but you'll have to wait til they release it ;-) --Andy

[Lift] Re: Session usage in Lift

2009-05-27 Thread James Strachan
If you were building an application which didn't require any COMET nor needed any data stored in the session and you were happy to disable the random form field name generation (so a form submission, due to failover/load balancing could be processed by any servlet container in the cluster) -

[Lift] Re: Session usage in Lift

2009-05-27 Thread Kristinn
ok, thanks for the info, I myself have not used such frameworks, but I'm always willing to try something new and I only hear good things about Lift. So, we must switch to sticky load balancing (or do some kind of session replication) in order to use Lift, cool thanks guys. On May 27, 11:05 am,

[Lift] Re: How to disable jQuery from lift application?

2009-05-27 Thread David Pollak
Mohan, Marius answered your question, but I'm curious... how does jQuery conflict with the google library? What kind of errors are you seeing? Thanks, David On Tue, May 26, 2009 at 5:50 PM, KaniniPazham mohan.narayanasw...@credit-suisse.com wrote: I am using Archetype basic and in my

[Lift] Serve a static xml file

2009-05-27 Thread Timothy Perrett
Hey guys, Is there a reason that I can not just place an xml file in webapp and have it served by jetty? I've disabled sitemap, it serves other static files no problem. Any ideas? Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Session usage in Lift

2009-05-27 Thread David Pollak
Actually, I'm checking in code right now that allows you to have a custom session dispatcher. You can vend a single session for use by all HTTP requests, if you want (see LiftRules.getLiftSession). This allows you to pretty much ignore the session related stuff in Lift. No JSESSIONID, etc. But

[Lift] Re: Trouble with lift, GAE, JPA, adding child records

2009-05-27 Thread Derek Chen-Becker
Let me look. To save some time, can you give me an order of operations that result in the error that you're seeing? Thanks, Derek On Tue, May 26, 2009 at 5:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I guess it's a DataNucleus thing. Here's my project.

[Lift] Re: Serve a static xml file

2009-05-27 Thread marius d.
Have you tried to put that URL in the LiftRules.liftRequest ? .. you can decide there if that one will be served by lift or not. Br's, Marius On May 27, 3:23 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey guys, Is there a reason that I can not just place an xml file in webapp and

[Lift] Encoding of property files used for localization

2009-05-27 Thread feelgood
First, I tried to use UTF-8 encoded property files to localize my app. I saw Неверно указан идентификатор. AIUI this is ISO 8859-1 encoded representation of my UTF-8 string. I also tried to use native2ascii tool to decode UTF-8 strings in ASCII string like

[Lift] Re: Encoding of property files used for localization

2009-05-27 Thread Timothy Perrett
The properties files themselves should be saved as UTF-8. Your right that you'll need to use native2ascii or similar to convert the other characters. Check out an example here (for lift internals): http://is.gd/GZuH HTH Cheers, Tim On 27/05/2009 15:55, feelgood asseliva...@gmail.com wrote:

[Lift] Re: Encoding of property files used for localization

2009-05-27 Thread David Pollak
On Wed, May 27, 2009 at 7:55 AM, feelgood asseliva...@gmail.com wrote: First, I tried to use UTF-8 encoded property files to localize my app. I saw Неверно указан идентификатор. AIUI this is ISO 8859-1 encoded representation of my UTF-8 string. I also tried to use

[Lift] Re: project stockholm update

2009-05-27 Thread Meredith Gregory
All, And i've added basic support for messaging with JSON over Rabbit. Best wishes, --greg On Wed, May 27, 2009 at 5:04 AM, Meredith Gregory lgreg.mered...@gmail.comwrote: All, The latest version in github now successfully generates SQL persistence layer from the BNF. - git clone

[Lift] Re: Object identity of Mapped objects

2009-05-27 Thread Derek Chen-Becker
AFAIK, Mapper doesn't define equality. You have to do that yourself as you would for any other Scala/Java class by overriding equals and hashcode. Using a Set (HashSet, specifically) seems like a pretty efficient way of doing this, although there may be a better way depending on your usage. Derek

[Lift] Re: project stockholm update

2009-05-27 Thread Timothy Perrett
Sweet!!! On 27/05/2009 16:20, Meredith Gregory lgreg.mered...@gmail.com wrote: All, And i've added basic support for messaging with JSON over Rabbit. Best wishes, --greg On Wed, May 27, 2009 at 5:04 AM, Meredith Gregory lgreg.mered...@gmail.com wrote: All, The latest version

[Lift] Re: Encoding of property files used for localization

2009-05-27 Thread feelgood
Thanx a lot. On 27 май, 21:17, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, May 27, 2009 at 7:55 AM, feelgood asseliva...@gmail.com wrote: First, I tried to use UTF-8 encoded property files to localize my app. I saw Неверно указан идентификатор. AIUI

[Lift] [ANN] Scala and Lift job

2009-05-27 Thread David Pollak
http://www.enthiosys.com/news-events/ux-job-req/ -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You

[Lift] Problem creating new project in Eclipse

2009-05-27 Thread Peter Bliznak
Hi,created Eclipse project using "basic" artifact. Structure seems to got created correctedly,but I cannot open any .scala file atttempting so is causing never ending stream of following exception:any ideas?Regards,Peter.!SESSION 2009-05-27 11:32:08.259

[Lift] Re: How to disable jQuery from lift application?

2009-05-27 Thread KaniniPazham
As per my limited knowledge, Google javascript API fails. Below API, I am using it to transfer English to Tamil tranliteration. Webpage error details Message: Unexpected call to method or property access. Line: 22 Char: 388 Code: 0 URI:

[Lift] Re: How to disable jQuery from lift application?

2009-05-27 Thread David Pollak
If you could post a code sample (complete small app that can be running with mvn jetty:run) that demonstrates this problem in Lift, we'll see if we can sort it out. On Wed, May 27, 2009 at 9:31 AM, KaniniPazham mohan.narayanasw...@credit-suisse.com wrote: As per my limited knowledge, Google

[Lift] JPA woes

2009-05-27 Thread Meredith Gregory
Lifted, This little method def handle( db : String )( contents: String ) : Unit = { var obj : java.lang.Object = null; try { obj = new XStream( new JettisonMappedXmlDriver() ).fromXML( contents ); try { entityManager( db ).getTransaction().begin();

[Lift] Re: JPA woes

2009-05-27 Thread Meredith Gregory
Lifted, Whoops -- hit send too soon. Has anyone seen this sort of thing before? i'm guessing it's a common problem. But i'm not clear on what's causing it and my google-fu is failing me. ;-( Best wishes, --greg On Wed, May 27, 2009 at 11:22 AM, Meredith Gregory lgreg.mered...@gmail.com

[Lift] Re: Problem creating new project in Eclipse

2009-05-27 Thread Miles Sabin
On Wed, May 27, 2009 at 6:25 PM, Peter Bliznak bliz...@rogers.com wrote: created Eclipse project using basic artifact. Structure seems to got created correctedly, but I cannot open any .scala file  atttempting so is causing never ending stream of following exception: any ideas? Am I right

[Lift] Re: project stockholm update

2009-05-27 Thread Charles F. Munat
Gh! I can't keep up. Does it ever slow down??? Chas. Timothy Perrett wrote: Sweet!!! On 27/05/2009 16:20, Meredith Gregory lgreg.mered...@gmail.com wrote: All, And i've added basic support for messaging with JSON over Rabbit. Best wishes, --greg On

[Lift] Re: Problem creating new project in Eclipse

2009-05-27 Thread Peter Bliznak
Using Eclipse-Maven plugin - so after picking create maven project I've specified package to be test.com ...so yes it is nested and it preciously like you saying. Must add I have plenty of plain scala or lift projects here runing in Eclipse but this one was first I used IAM eclipse maven plugin

[Lift] Re: project stockholm update

2009-05-27 Thread Meredith Gregory
Chas, Man -- if i could get your help with a hibernate connection failure issue, i would be ever so grateful. Best wishes, --greg On Wed, May 27, 2009 at 12:07 PM, Charles F. Munat c...@munat.com wrote: Gh! I can't keep up. Does it ever slow down??? Chas. Timothy Perrett wrote:

[Lift] Deploying with Jetty (and Apache too?)

2009-05-27 Thread Joe Wass
Hi everyone. I'm planning to deploy a Lift app on a virtual host (Slicehost) with Jetty. I'm also running one or two sites on the side, but nothing too heavy. I want to try running with 256 MB RAM (I could go to 512 but I'd rather not pay for that if I don't have to!). I currently use virtual

[Lift] Re: Deploying with Jetty (and Apache too?)

2009-05-27 Thread David Pollak
Jetty's fine for serving static content. It's not going to be materially slower than Apache. I would remove Apache from the mix all together. It adds nothing other than nice logging. I use Nginx because it's lighter weight and does a lot better with a lot of open HTTP requests (think Comet).

[Lift] Re: Object identity of Mapped objects

2009-05-27 Thread valstadsve
Excellent, thanks! Happy Kjetil On May 27, 6:00 pm, David Pollak feeder.of.the.be...@gmail.com wrote: It does now. KeyedMapper had an equals method that does the right thing.  I added hashCode and KeyedMappers should play well in HashMaps. On Wed, May 27, 2009 at 8:52 AM, Derek

[Lift] Re: Encoding of property files used for localization

2009-05-27 Thread feelgood
But it's still doesn't work with plain properties. I think the problem is in the ResourceBundle class and getBundle method. ? method of S object comes to using ResourceBundle. On 27 май, 22:02, feelgood asseliva...@gmail.com wrote: Thanx a lot. On 27 май, 21:17, David Pollak

[Lift] Record and MegaProtoUser?

2009-05-27 Thread Chris
Is it a goal for 1.1 to migrate Mapper-dependent features such as MegaProtoUser to use the Record approach? Thanks, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

[Lift] Re: Deploying with Jetty (and Apache too?)

2009-05-27 Thread Joe Wass
Thanks, that's what I thought. But you can get some nasty surprises if you make assumptions. I've heard a lot about nginx (none of it bad). I might give it a go if I find I have more complex needs... Joe On May 27, 8:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Jetty's fine for

[Lift] Re: Record and MegaProtoUser?

2009-05-27 Thread David Pollak
On Wed, May 27, 2009 at 12:57 PM, Chris che...@gmail.com wrote: Is it a goal for 1.1 to migrate Mapper-dependent features such as MegaProtoUser to use the Record approach? Yes. Thanks, Chris. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala

[Lift] ** Significant commits **

2009-05-27 Thread Marius
Hi, I just did a bunch of commits into master: 1. lift-tag is not used anymore as lift:with-param is now a snippet and lift:bind it's just a anchor-point 2. DOM optimizations (the number of DOM walk through-s has been reduced). Now rendering pipeline has 3 distinguished phases: - Snippets

[Lift] Re: ** Significant commits **

2009-05-27 Thread David Pollak
Rock on! Thanks for the excellent commits! On Wed, May 27, 2009 at 1:42 PM, Marius marius.dan...@gmail.com wrote: Hi, I just did a bunch of commits into master: 1. lift-tag is not used anymore as lift:with-param is now a snippet and lift:bind it's just a anchor-point 2. DOM

[Lift] Re: Deploying with Jetty (and Apache too?)

2009-05-27 Thread Timothy Perrett
Couldn't recommend trying nginx enough... i've been using it in production for 4 years and just cant fault it... Cheers, Tim On May 27, 9:23 pm, Joe Wass j...@folktunefinder.com wrote: Thanks, that's what I thought. But you can get some nasty surprises if you make assumptions. I've heard a

[Lift] Re: ** Significant commits **

2009-05-27 Thread Timothy Perrett
wh got a bit of a problem building lift: [INFO] Compiling 35 source files to /Users/timperrett/repositories/ lift/lift-framework/lift-util/target/classes [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift-util/ src/main/scala/net/liftweb/util/Props.scala:173: error: type

[Lift] Re: ** Significant commits **

2009-05-27 Thread David Pollak
On Wed, May 27, 2009 at 1:54 PM, Timothy Perrett timo...@getintheloop.euwrote: wh got a bit of a problem building lift: [INFO] Compiling 35 source files to /Users/timperrett/repositories/ lift/lift-framework/lift-util/target/classes [WARNING]

[Lift] Re: GAE - working example?

2009-05-27 Thread denew
Thanks for that Andy - I had tried using 1.1.2 and 1.1.3 and thought I had gone back to a GAE-approved version - my mistake. I'll give that a shot On May 27, 9:11 pm, datanucleus andy_jeffer...@yahoo.com wrote: You're using invalid versions of DataNucleus jars (1.1.1+) with the GAEJ plugin for

[Lift] Re: ** Significant commits **

2009-05-27 Thread Timothy Perrett
timperrett$ java -version java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16- b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) Its the default mac JDK Cheers, Tim On May 27, 9:58 pm, David Pollak

[Lift] Re: ** Significant commits **

2009-05-27 Thread David Pollak
Sorry... it's a JDK 6 API... I'll back it out. On Wed, May 27, 2009 at 2:10 PM, Timothy Perrett timo...@getintheloop.euwrote: timperrett$ java -version java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16- b06-284) Java HotSpot(TM) Client VM (build

[Lift] Re: ** Significant commits **

2009-05-27 Thread Timothy Perrett
Were stuck supporting JDK5 for a while yet I think :-) Is there a comparable JDK5 workaround you can use? Cheers,Tim On May 27, 10:16 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Sorry... it's a JDK 6 API... I'll back it out. On Wed, May 27, 2009 at 2:10 PM, Timothy Perrett

[Lift] Re: GAE - working example?

2009-05-27 Thread denew
Embarassingly simple really - RTFM. Within the known limitation of using Lists for the collection, not Sets, the 1-M works. Now on to the compound keys... On May 28, 9:01 am, denew de...@clear.net.nz wrote: Thanks for that Andy - I had tried using 1.1.2 and 1.1.3 and thought I had gone back to

[Lift] Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Is there an idiomatic way to represent the following? I've done it many times before manually in PHP, but never with ORM. I suppose I know how I'd do it in Lift long-hand (I'm very new) but there might be a 'Lift' way of doing it. Subject could be an enum or a table. Entity: School Entity:

[Lift] Re: How to disable jQuery from lift application?

2009-05-27 Thread Derek Williams
Does following any of the instructions on this page help? http://docs.jquery.com/Using_jQuery_with_Other_Libraries Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Timothy Perrett
What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm, Joe Wass j...@folktunefinder.com wrote: Is there an idiomatic way to represent the following? I've done it many times before manually in PHP, but never with ORM.

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Mapper (by default) On May 27, 11:03 pm, Timothy Perrett timo...@getintheloop.eu wrote: What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm, Joe Wass j...@folktunefinder.com wrote: Is there an idiomatic way to

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Timothy Perrett
So your saying you want a one to many join: 1 school has many subjects? You can of course do this with mapper, by default mapper is not a black box full of magic like, say, Ruby's active record, so you need to fit some of the convenience method plumbing yourself if you need it. Assuming you

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Yes, that was the missing link (I think), thank you. I did do a fair amount of RoR two years ago, so I may have forgotten it all but the expectation of magic is still there! Joe On May 27, 11:28 pm, Timothy Perrett timo...@getintheloop.eu wrote: So your saying you want a one to many join:

[Lift] Re: ** Significant commits **

2009-05-27 Thread David Pollak
On Wed, May 27, 2009 at 2:22 PM, Timothy Perrett timo...@getintheloop.euwrote: Were stuck supporting JDK5 for a while yet I think :-) Is there a comparable JDK5 workaround you can use? Fixed Cheers,Tim On May 27, 10:16 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Sorry...

[Lift] Re: Encoding of property files used for localization

2009-05-27 Thread Timothy Perrett
Having done a lot of complex localization with lift I can assure you that it works perfectly :-) What specifically so you see as the problem? Do you have a stack trace or such that is leading you to these conclusions? Cheers, Tim Sent from my iPhone On 27 May 2009, at 20:33, feelgood

[Lift] What version of Lift is that?

2009-05-27 Thread David Pollak
Folks, I've just committed up a little bit of niceness to Lift. You can do the following: Lift version lift:version_info.lift/ built on lift:version_info.date/ These are snippets that recall the Lift version number and Lift build date. This information can be found on LiftRules.liftVersion and