[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
On Dec 14, 3:02 am, Jorge Ortiz jorge.or...@gmail.com wrote: Not to beat a dead horse, but... what's the rationale, again, for throwing an exception after boot? Is there a real danger to some or all RulesSeqs being mutable after boot? If some, then those rules should selectively be

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 3:02 am, Jorge Ortiz jorge.or...@gmail.com wrote: Not to beat a dead horse, but... what's the rationale, again, for throwing an exception

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Viktor Klang
On Sun, Dec 14, 2008 at 11:42 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 3:02 am, Jorge Ortiz jorge.or...@gmail.com wrote: Not to beat a

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Viktor Klang
On Sun, Dec 14, 2008 at 12:54 PM, Marius marius.dan...@gmail.com wrote: On Dec 14, 12:53 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 11:42 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun,

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
On Dec 14, 12:53 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 11:42 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14,

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Viktor Klang
On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 3:02 am, Jorge Ortiz jorge.or...@gmail.com wrote: Not to beat a dead horse, but... what's the rationale, again, for throwing an exception after boot? Is there a real danger to some or all RulesSeqs being

[Lift] Re: Crashing CometActor

2008-12-14 Thread Michael
Looks like Hudson was up again, so I pulled in the latest snapshot from scala-tools and added the log level statement. It didn't seem to matter much though: INFO - Service request (GET) / took 35 Milliseconds Listener added INFO - Service request (GET) /details.html took 162 Milliseconds INFO -

[Lift] todo_steps feedback

2008-12-14 Thread mal3
David, I'm not sure where to send feedback on the todo_steps book. I'm working my way through the todo project, and I my feedback may be at times very minor in the interests of doing my bit to help with the final book product. There was a warning with the first mvn command: [INFO]

[Lift] ToDo Tutorial - Layout for added column

2008-12-14 Thread Stefan Scott
Hi - I'm about halfway through the new ToDo Tutorial available here: http://groups.google.com/group/liftweb/browse_thread/thread/0d99974c622262d5# and I wanted to try adding a new column loc (Location). (NOTE: As pointed out in another threads here today, you have to do 'cd todo' before doing

[Lift] XML problems in ToDo tutorial?

2008-12-14 Thread Stefan Scott
Hi - On page 14 of the ToDo tutorial here: http://groups.google.com/group/liftweb/browse_thread/thread/0d99974c622262d5# after I edit the file 'src/main/webapp/index.html' so that it now reads: lift:surround with=default at=content lift:Util.outPlease lift:menu.item name=LoginLog

[Lift] Re: Crashing CometActor

2008-12-14 Thread David Pollak
On Sat, Dec 13, 2008 at 4:48 PM, Michael mike...@gmail.com wrote: Looks like Hudson was up again, so I pulled in the latest snapshot from scala-tools and added the log level statement. Hudson's not back. Lift has not been built in a week. I've got an emergency message out to DavidB to look

[Lift] Re: todo_steps feedback

2008-12-14 Thread David Pollak
Thanks! I'll make the change. On Sat, Dec 13, 2008 at 7:44 PM, mal3 malcolm.gor...@gmail.com wrote: David, I'm not sure where to send feedback on the todo_steps book. I'm working my way through the todo project, and I my feedback may be at times very minor in the interests of doing my

[Lift] Re: More JPA goodness

2008-12-14 Thread Derek Chen-Becker
It doesn't; that's not the point of this module. Record will have its own semantics for accessing data, and I think we'll have a backend that hooks into JPA if desired, but the point of the code I'm posting now is for people who want to use JPA directly. Derek On Sat, Dec 13, 2008 at 6:49 PM,

[Lift] Re: ToDo Tutorial - Layout for added column

2008-12-14 Thread David Pollak
On Sat, Dec 13, 2008 at 10:05 PM, Stefan Scott stefanscottal...@gmail.comwrote: Hi - I'm about halfway through the new ToDo Tutorial available here: http://groups.google.com/group/liftweb/browse_thread/thread/0d99974c622262d5# and I wanted to try adding a new column loc (Location).

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Viktor Klang
David, sounds reasonable. So being able to call prepend/append after boot() makes no sense. In the light of htis, it shouldn't be possible to call the prepend/append outside of boot. I suggest my approach described previously. (Injecting an initialization context into boot and use that to

[Lift] Comment on net.liftweb.sitemap.Loc.Title

2008-12-14 Thread Derek Chen-Becker
I'm doing our SiteMap chapter right now and it strikes me as a little odd that the default Title for a Loc is the name of the Loc instead of the Loc text. That means that if I do something like: def userMenuText = User.name + 's profile val userMenu = Menu(Loc(usermenu, user :: profile :: Nil,

[Lift] Re: XML problems in ToDo tutorial?

2008-12-14 Thread David Pollak
For some reason, the index.html file is not valid XML. What development tool/environment are you using? What character encoding are you using (UTF-8 is the preferred encoding)? Please attach the failing file to your response so that I can see the exact problem. On Sat, Dec 13, 2008 at 10:25

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread David Pollak
On Sun, Dec 14, 2008 at 6:51 AM, Viktor Klang viktor.kl...@gmail.comwrote: David, sounds reasonable. So being able to call prepend/append after boot() makes no sense. In the light of htis, it shouldn't be possible to call the prepend/append outside of boot. I suggest my approach

[Lift] Re: Hooking into /user_mgt

2008-12-14 Thread Erick Fleming
I agree with david, in fact protouser contains several things I don't need (not a public website) and it's pretty easy to make your own. On 12/14/08, David Pollak feeder.of.the.be...@gmail.com wrote: ProtoUser is designed to allow people to get a project up and running quickly. In all my

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Viktor Klang
On Sun, Dec 14, 2008 at 4:01 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 14, 2008 at 6:51 AM, Viktor Klang viktor.kl...@gmail.comwrote: David, sounds reasonable. So being able to call prepend/append after boot() makes no sense. In the light of htis, it shouldn't

[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.

2008-12-14 Thread mike beckerle
I can browse to the location just fine. There is no proxy or other wierdness between me and the internet. Just the usual home firewall (NAT) device. On Dec 13, 1:45 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Dec 13, 2008 at 10:34 AM, mike beckerle mbecke...@gmail.com wrote:

[Lift] Re: ToDo Tutorial - Layout for added column

2008-12-14 Thread Stefan Scott
Thanks David - I'm not an HTML guy myself either - I've avoided web apps for years because my mind turns to mush when confronted with dynamic typing - I *love* Scala's type system and what you're doing with it... Anyways I was just going to post that I did take a stab at the same solution you

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
So LiftConfig would take the role of LiftRules from API perspective meaning that LiftRules could be completely hidden from Lift users but available internally to Lift only ? Still from maintainability perspective initializing LifRules with a LiftConfig may imply lots of assignments (unless

[Lift] Re: new to lift ... horizontal scaling of databases?

2008-12-14 Thread Baconeater
On Dec 1, 11:30 am, David Pollak feeder.of.the.be...@gmail.com wrote: Lift has built in DB sharding.  You can have multiple RDBMS connection identifiers.  Each record has its connection identifier associated with it (where it came from) and there's a place in each MetaModel to insert a

[Lift] PROBLEM GONE: XML problems in ToDo tutorial?

2008-12-14 Thread Stefan Scott
Problem gone now. After a good night's sleep I just repeated your steps exactly as in the tutorial (only adding the 'cd todo' before the first 'mvn jetty:run' as already mentioned) and this everything worked fine. I'm new to Maven and I was trying it out on various projects from other (older)

[Lift] Re: new to lift ... horizontal scaling of databases?

2008-12-14 Thread David Pollak
On Sun, Dec 14, 2008 at 2:26 PM, Baconeater baconeater...@gmail.com wrote: On Dec 1, 11:30 am, David Pollak feeder.of.the.be...@gmail.com wrote: Lift has built in DB sharding. You can have multiple RDBMS connection identifiers. Each record has its connection identifier associated with

[Lift] Re: Binding Problem - Help

2008-12-14 Thread David Pollak
On Sun, Dec 14, 2008 at 3:17 PM, Oliver ola...@gmail.com wrote: Hi, I've got a error on one of our Apache/Tomcat servers with binding, it works in Jetty and another Apache/Tomcat server. It looks like lift is calling some of the function setters after calling a method on a

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Dano
Marius, Is there someway you can communicate what the 'from' and 'to' changes are so that I can have a chance at being able to fix my now broken code? Dan On Dec 13, 12:31 pm, Marius marius.dan...@gmail.com wrote: All, I committed a bunch of changes inLiftRules. In a previous thread Jorge

[Lift] Re: Binding Problem - Help

2008-12-14 Thread David Pollak
Okay, The problem is that your computer is too fast. :-) Lift assigns function names based on the nano time. It turns out that the methods are getting called so fast, there's no nano tick and the order of the function creation is not reflected in the function name. I've got a fix. I'll roll it

[Lift] Re: Binding Problem - Help

2008-12-14 Thread Oliver
David Thanks for the prompt reply. I'll upgrade to the latest version of lift so I can use the fix when it comes in. Is everything relatively stable at the current snapshot? cheers Oliver On Mon, Dec 15, 2008 at 11:47 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Okay, The problem

[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.

2008-12-14 Thread mike beckerle
Certainly there is nothing blocking java in any way. However, just trying again, this time it is working better. Somebody has fixed something on the server end I'm sure. I'm doing the exact same thing, but it seems to be able to communicate properly with the associated servers.. However, mvn

[Lift] Key phrase from the To Do tutorial

2008-12-14 Thread Stefan Scott
In Lift, the snippet is the equivalent of a Rails controller: it is the instantiation of a class and invocation of a method on the class. Because you can have multiple snippets on a page, you can call out multiple logic streams on a given page and there’s no need to choose the 'primary' logic

[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.

2008-12-14 Thread David Pollak
Mike, There was a recent breaking change to Lift (Marius and I are doing major code cleanup and this means lots of breaks to the APIs... this will all end by the end of the month.) Any of the LiftRules stuff that contains append/prepend has a new form: LiftRules.appendEarly(makeUtf8) becomes:

[Lift] Working CRUD based on To Do tutorial

2008-12-14 Thread Stefan Scott
OK, I've gotten through the tutorial (page 23). I was doing a bit of testing - I tried putting a string of length 2 into field 'desc' (which is supposed to be at least 3 characters long), and I didn't get an error message. Too tired now to check to see if the validation code for 'desc' is

[Lift] Re: Binding Problem - Help

2008-12-14 Thread Oliver
Thanks for all the help, it appears to all be working now - I had a feeling I was going to be fed to the lions, wolves, tigers and bears if I didn't find a fix, and quick. One question, does the name generation have to be based on a random number generator? I realize, with the length of the