[Lift] broken app

2009-11-08 Thread Oliver Lambert
) at net.liftweb.http.LiftRules$.clinit(LiftRules.scala) at net.liftweb.http.LiftFilter.init(LiftServlet.scala:546) ... I think the application was deploying OK earlier in the week. Any ideas??? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Lift job

2009-09-24 Thread Oliver Lambert
Hi all, The company I work for, Paycorp, is based in Sydney Australia and has a job with a significant Lift / Scala component. The job description is posted on http://www.scalacareers.com/ cheers Oliver --~--~-~--~~~---~--~~ You received this message because you

[Lift] Re: You are not banned from this group!!

2009-09-24 Thread Oliver Lambert
My son was born a week ago, with a heart defect that has just been operated on - I've been biting my nails for months and haven't felt like communicating or working. Things are starting to look good for him so maybe Im back. cheers Oliver On Thu, Sep 24, 2009 at 12:08 PM, Charles F. Munat c

[Lift] Re: You are not banned from this group!!

2009-09-23 Thread Oliver Lambert
for a while, its nice to see the lift mailing list is going so strong. Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from

[Lift] Re: Including jars into a liftweb project

2009-06-26 Thread Oliver Lambert
If I have an application thats not in a Maven repository, I usually put it in my local (or company) repository - for instance adding functionaljava.jar mvn install:install-file -DgroupId=org.other -DartifactId=functionaljava -Dversion=2.17 -Dpackaging=jar -Dfile=functionaljava.jar

[Lift] Re: New mapper class: MappedEnumString

2009-06-25 Thread Oliver Lambert
On Thu, Jun 25, 2009 at 10:49 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Thu, Jun 25, 2009 at 1:12 AM, Oliver Lambert olambo...@gmail.com wrote: Looks very nice. One thing I'm wondering, what if I wanted the displayed value outside of the mapper, such as TestTypes.Item1

[Lift] Re: New mapper class: MappedEnumString

2009-06-24 Thread Oliver Lambert
called EnumWithDescription, that wraps (not extends) an Enumeration and provides a description method on the enumeration value without using an implicit. I'm wondering if it might be useful to combine your approach and mine? cheers Oliver On Thu, Jun 25, 2009 at 6:39 AM, Jeppe Nejsum Madsen je

[Lift] Re: [scala] JPA question

2009-06-23 Thread Oliver Lambert
I don't understand from the code sample why AbstractContainer has to be an entity or have a table or id annotation. I'd be looking at just using the @MappedSuperclass annotation. On Wed, Jun 24, 2009 at 9:27 AM, Meredith Gregory lgreg.mered...@gmail.comwrote: Kris, Thanks for this code

[Lift] Re: [scala] JPA question

2009-06-23 Thread Oliver Lambert
= _ ... } EM.createNativeQuery[RoEntity](nativeQueryStr, classOf[RoEntity]) If I want to save it, I populate an entity that really has an underlying table. cheers Oliver On Wed, Jun 24, 2009 at 9:55 AM, Oliver Lambert olambo...@gmail.com wrote: I don't understand from the code sample why AbstractContainer has

[Lift] Re: JPA and auto generation of id

2009-06-22 Thread Oliver Lambert
What sort of database are you trying to use Hibernate against (look at the property hibernate.dialect in the file persistence.xml)? I think the error may mean that your trying to use GenerationType.AUTO against a database that doesn't support it. On Mon, Jun 22, 2009 at 7:08 PM, David Persons

[Lift] Re: prep for offline work

2009-06-22 Thread Oliver Lambert
Check you can work offline before you go with the command Tim details (mvn -o clean install). If you are running against a snapshot of Lift consider changing to a release instead, otherwise Maven will want to download a new snapshot every day (you could freeze at a snapshot version, but thats more

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread Oliver Lambert
I modified the BindHelper in the branch, I am working on some time back to allow automatic mixin binding by name. If you have in your html input name=favourite:yourName size=20 maxlength=40/, then it will accept in the snippet bind(favourite, xhtml, yourName - SHtml.text(show string, s =

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Oliver Lambert
Hi Greg, Thank you, I enjoyed reading that. Perhaps the Greedy Empire, should indeed, be worried. cheers Oliver 2009/6/18 Meredith Gregory lgreg.mered...@gmail.com Oliver, You wrote: we would have taken over Google by now. My not-so-secret plan for taking over Google is contained

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-17 Thread Oliver Lambert
You made an assumption and programmed a solution based on the knowledge you had at the time. Thats fine and there is nothing wrong with it - start with the simplest solution that fits. If it need to be changed due to changing requirements, thats fine too. There is a tradeoff in creating a overly

[Lift] QA, before merging code

2009-06-17 Thread Oliver Lambert
the normal process of committing changes. Is the code QA'ed in some way or do I just do it,and wait for people to say #!. cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-17 Thread Oliver Lambert
2009/6/18 Meredith Gregory lgreg.mered...@gmail.com Oliver, The short answer is no. The longer answer is - i worked this all out on my own; so, you guys -- who can program lift on top of scala on top of JVM and are therefore about 20X smarter than i am -- can too. I think if we

[Lift] Re: Develop / Production System

2009-06-16 Thread Oliver Lambert
Sometimes (is this, folk-tale or truth?) the maven repository around the application you'reworking on may get slightly out of sync. Then you might need to delete the part of the repository that your application is installed into. On Tue, Jun 16, 2009 at 7:25 PM, Tobias Daub hannes.flo...@gmx.li

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-16 Thread Oliver Lambert
I think you have just volunteered to help refactor this code to make it more composition friendly :) On Wed, Jun 17, 2009 at 9:38 AM, Meredith Gregory lgreg.mered...@gmail.comwrote: Derek, soapbox You have just demonstrated a process that i have been talking about for the last 15 years.

[Lift] directory structure

2009-06-16 Thread Oliver Lambert
In Boot.scala can I call LiftRules.addToPackages multiple times to add multiple directories with snippets in them? Do I have to have a directory structure ending with snippet, for snippets? Do I need the directories comet, model and view, when they are just empty? cheers Oliver

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-16 Thread Oliver Lambert
2009/6/17 Meredith Gregory lgreg.mered...@gmail.com Jeremy, Most excellent question award to you, sir! How to bootstrap thinking compositionally... this is what i did - learn some compositional idioms by heart - do you know the shape of the paradoxical combinator by heart

[Lift] Re: Cheap Hosting

2009-06-15 Thread Oliver Lambert
Thats good value - might use it too sometime. On Mon, Jun 15, 2009 at 1:56 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Mark, You should be able to host a moderately trafficked site (400 unique visitors an hour) with a $20 slicehost.com account. Thanks, David On Sun, Jun 14,

[Lift] Re: a href... optional query params

2009-06-15 Thread Oliver Lambert
I don't think any of the Liftweb's binding is going to survive a server restart, but, why are you worried about a server restart? On Tue, Jun 16, 2009 at 8:59 AM, Ewan ehar...@gmail.com wrote: Hi all I have bind that renders a link and at the moment I want the link to include a couple of

[Lift] Re: Hiring Lift Developers

2009-06-15 Thread Oliver Lambert
As probably is Sydney, Australia. It might be useful knowing where people are who are looking for jobs - the company I work for is small, but, might be interested in hiring sometime in the future. On Tue, Jun 16, 2009 at 8:51 AM, KWright kev.lee.wri...@googlemail.comwrote: I suspect that

[Lift] Re: Develop / Production System

2009-06-15 Thread Oliver Lambert
Maven stores project dependencies in a repository (by default, its called .m2). When you move a Lift application from one system to another, the repository on the new system may need to be updated, hence your requirement to do a mvn clean install. Don't know what you changed on the pom.xml (if

[Lift] Re: file upload

2009-06-12 Thread Oliver Lambert
Whats serious uploading? I uploaded 15,000 records using it today - seemedto handle it OK. On Fri, Jun 12, 2009 at 9:48 AM, Timothy Perrett timo...@getintheloop.euwrote: FYI - its not a streaming upload at the moment, so its great for smallish files, but you wouldnt want to do much serious

[Lift] Re: security

2009-06-10 Thread Oliver Lambert
would be involved in using a whitelist in a location aware multilingual way, but perhaps it could be done as a default. Br's, Marius On Jun 10, 5:43 am, Oliver Lambert olambo...@gmail.com wrote: Looks like I might have a requirement for implementing OWASP secure coding practices

[Lift] Re: Record and Field

2009-06-01 Thread Oliver Lambert
: wrong number of arguments On Mon, Jun 1, 2009 at 10:05 PM, marius d. marius.dan...@gmail.com wrote: what Java version are you using? On Jun 1, 1:58 pm, Oliver Lambert olambo...@gmail.com wrote: When I try to run createRecord on a net.liftweb.record.Record, I get

[Lift] Re: Record with the new bind-immutable

2009-06-01 Thread Oliver Lambert
On Sat, May 30, 2009 at 2:05 AM, marius d. marius.dan...@gmail.com wrote: On May 29, 4:32 pm, Oliver Lambert olambo...@gmail.com wrote: Hi Marius, To try and answer your question, I had to go and look at the Record code in more detail. I hadn't recently written the Binder Validator, so

[Lift] Re: git ouch

2009-05-29 Thread Oliver Lambert
, 2009 at 3:50 PM, Oliver Lambert olambo...@gmail.com wrote: When I look at the liftweb network graph, it looks like I'm working on the main liftweb master line and have renamed it. On Fri, May 29, 2009 at 3:38 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I just looked at Git and I show

[Lift] Re: git ouch

2009-05-29 Thread Oliver Lambert
, May 29, 2009 at 4:22 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Oliver, But that's perfect! What's your problem? There is one LOCAL wip-ol-immu branch and one REMOTE. That's how it is expected to be for a branch you pushed. Heiko 2009/5/29 Oliver Lambert olambo

[Lift] Re: Record with the new bind-immutable

2009-05-29 Thread Oliver Lambert
at this point. I'll have a go at modifying the Binder code. cheers Oliver On Fri, May 29, 2009 at 5:05 PM, Marius marius.dan...@gmail.com wrote: Oliver, I very briefly looked on your code and I saw that you have your own validator there. How would that play with the existent validattors

[Lift] Re: Record with the new bind-immutable

2009-05-29 Thread Oliver Lambert
not sure I see this in Field. cheers Oliver On Fri, May 29, 2009 at 6:22 PM, marius d. marius.dan...@gmail.com wrote: I see ... still the question remains. What are we going to do with two validators? I'd like to understand the principles of your addition (... I know I should have dig into the code

[Lift] Re: Record with the new bind-immutable

2009-05-29 Thread Oliver Lambert
a seamless way to do client-side validation for validators (e.g., min len, max len, regex) that only rely on client-side data. On Fri, May 29, 2009 at 6:32 AM, Oliver Lambert olambo...@gmail.comwrote: Hi Marius, To try and answer your question, I had to go and look at the Record code in more

[Lift] git ouch

2009-05-28 Thread Oliver Lambert
to have done something wrong. Any help (without curses) is greatly appreciated at this moment. cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb

[Lift] Re: git ouch

2009-05-28 Thread Oliver Lambert
heiko.seeber...@googlemail.com wrote: Some more details, please: What git commands did you enter? 2009/5/29 Oliver Lambert olambo...@gmail.com Git wouldn't let me create a branch of liftweb until I deleted and recreated my ssh keys - I believed all was good. I thought I was following

[Lift] Re: git ouch

2009-05-28 Thread Oliver Lambert
ago. Are you seeing some error on your end? Derek On Thu, May 28, 2009 at 11:19 PM, Oliver Lambert olambo...@gmail.comwrote: Git wouldn't let me create a branch of liftweb until I deleted and recreated my ssh keys - I believed all was good. I thought I was following the documentation

[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

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

[Lift] Re: Robust and clear ways to do performant JDBC?

2009-05-23 Thread Oliver Lambert
familiar with them? Cheers, Tim On 23/05/2009 11:56, Oliver Lambert olambo...@gmail.com wrote: JPA is a ORM tool. I think it would be great if someone would create a Scala solution using JPA as the starting point - any takers

[Lift] Re: Robust and clear ways to do performant JDBC?

2009-05-23 Thread Oliver Lambert
it to be immutable. In fact, maybe all entities should be, but thats probably too hard. I'm just taking about the lower layer of JPA that Derek's stuff hooks into - its OK for Java, it kind of sucks for Scala. Just my thoughts, don't expect anyone to agree. cheers Oliver On Sat, May 23, 2009 at 9

[Lift] Re: immutable bindings

2009-05-16 Thread Oliver Lambert
On Sat, May 16, 2009 at 4:32 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert olambo...@gmail.comwrote: I've started integrating my immutable bindings, but have some questions On my build, I've placed the main immutable binding classes

[Lift] Re: immutable bindings

2009-05-11 Thread Oliver Lambert
I've created a git branch, cloned it on my machine and built lift - built in 9 minutes with no errors (1 more tick for maven). Will go wild soon. On Tue, May 12, 2009 at 9:26 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Oliver, Please create a git branch and go wild on the branch

[Lift] Re: garbage collection

2009-05-08 Thread Oliver Lambert
circumstances. Br's, Marius On May 7, 10:22 pm, Oliver Lambert olambo...@gmail.com wrote: Any chance of exposing a getter on messageCallback that would return some statistics (the number of functions being stored would be a good starting point)? On Thu, May 7, 2009 at 11:21 PM, marius

[Lift] garbage collection

2009-05-07 Thread Oliver Lambert
? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com

[Lift] Re: garbage collection

2009-05-07 Thread Oliver Lambert
. Br's, Marius On May 7, 10:15 am, Oliver Lambert olambo...@gmail.com wrote: I'm trying to get an understanding how garbage collection is implemented in Lift. Any pointers on what scala classes do the actual work? While I'm at it, S.functionMap appears to only return functions

[Lift] Re: garbage collection

2009-05-07 Thread Oliver Lambert
Ah, you mean messageCallback - The joys of private variables. thanks again Ol On Thu, May 7, 2009 at 9:55 PM, marius d. marius.dan...@gmail.com wrote: Please see LiftSession. On May 7, 1:41 pm, Oliver Lambert olambo...@gmail.com wrote: Thanks for this. I would like to look at the code

[Lift] Re: Where to add demos/examples

2009-05-02 Thread Oliver Lambert
it into examples if appropriate. Cheers, Tim On 02/05/2009 12:53, Oliver Lambert olambo...@gmail.com wrote: Interesting idea, perhaps you could get the examples hosted on the lift demo website too. Oliver On Sat, May 2, 2009 at 7:48 PM, Heiko Seeberger heiko.seeber

[Lift] Re: immutable bindings

2009-04-30 Thread Oliver Lambert
I just realized, I removed the header comments to the classes under the package scalame and had removed credit to Lift for SBind (modifying Bind). My apologies, and I understand my code is nowhere near as well written as the original. Oliver

[Lift] Re: scalar queries in Lift/JPA

2009-04-25 Thread Oliver Lambert
hibernate's report queries, but thats more work and I'm lazy. cheers Oliver On Fri, Apr 24, 2009 at 6:11 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Oliver, I've never done anything like that in JPA or Hibernate. Is that actually possible? Can you create a class instance within a query? Derek

[Lift] Re: scalar queries in Lift/JPA

2009-04-23 Thread Oliver Lambert
Is there anything to stop you defining an class/entity {answer: String, countAnswer: Int} and to directly create it from JPA (of course, it's read only). On Wed, Apr 22, 2009 at 9:36 AM, Charles F. Munat c...@munat.com wrote: I was thinking tuples, but that didn't work. I'll try your

[Lift] Re: stateful vs stateless snippet

2009-04-13 Thread Oliver Lambert
On Mon, Apr 13, 2009 at 4:35 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Apr 12, 2009 at 7:30 AM, Oliver Lambert olambo...@gmail.comwrote: On Sun, Apr 12, 2009 at 11:04 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Apr 12, 2009 at 5:29 AM, Oliver

[Lift] Re: stateful vs stateless snippet

2009-04-12 Thread Oliver Lambert
12, 5:44 am, Oliver Lambert olambo...@gmail.com wrote: On Sun, Apr 12, 2009 at 7:14 AM, marius d. marius.dan...@gmail.com wrote: The StatefulSnippet is not a snippet instance that is always used in the context of your session. Yikes! in that case, I wrote a whole application based

[Lift] Re: stateful vs stateless snippet

2009-04-11 Thread Oliver Lambert
dispatch = ... } which is also a stateless snippet. Br's, Marius On Apr 11, 7:21 am, Oliver Lambert olambo...@gmail.com wrote: I have a stateful snippet that doesn't always appear to work with the back button. Sometimes, when the back button is used, a new stateful snippet instance

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-04-11 Thread Oliver Lambert
On Sun, Apr 12, 2009 at 2:54 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Apr 11, 2009 at 8:36 PM, mal3 malcolm.gor...@gmail.com wrote: We are going to use the Google App Engine (GAE) for our app using GWT with the new Google GWT Eclipse plugin support. Our Scala and

[Lift] stateful vs stateless snippet

2009-04-10 Thread Oliver Lambert
replace the stateful snippet with a stateless one - does a stateful snippet that isn't storing any state have any extra overhead over a stateless one? If I do use a stateless snipet can I still have a dispatch method? cheers Oliver --~--~-~--~~~---~--~~ You received

[Lift] Re: Lift AJAX and IE6

2009-04-09 Thread Oliver Lambert
On Thu, Apr 9, 2009 at 11:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Apr 9, 2009 at 4:35 AM, olambo olambo...@gmail.com wrote: Also, is the Lift AJAX script necessary for anything other than Comet? If I have a site that's using no AJAX or Comet, can I just

[Lift] maven scala plugin

2009-02-18 Thread Oliver
ideas what the maven scala plugin is doing? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send

[Lift] thanks

2009-02-12 Thread Oliver
interesting discussions ahead. cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb

[Lift] Re: thanks

2009-02-12 Thread Oliver
in, let me know and I'll try to prioritize it. cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from

[Lift] Re: *** BREAKING CHANGES ***

2009-02-10 Thread Oliver
) = RedirectResponse(/error) } --j On Mon, Feb 9, 2009 at 10:47 PM, Oliver ola...@gmail.com wrote: If I try to use the following, I get a reassignment to Val error - any ideas? LiftRules.exceptionHandler.prepend = { case (mode, state, ex) = RedirectResponse(/error) } On Wed, Dec 24, 2008 at 5

[Lift] Re: *** BREAKING CHANGES ***

2009-02-10 Thread Oliver
, Oliver ola...@gmail.com wrote: Doesn't look right and If I do this I get the following error - constructor cannot be instantiated to the expected type On Tue, Feb 10, 2009 at 8:57 PM, Jorge Ortiz jorge.or...@gmail.com wrote: Try (without the = sign): LiftRules.exceptionHandler.prepend

[Lift] Re: *** BREAKING CHANGES ***

2009-02-10 Thread Oliver
:26 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Feb 10, 2009 at 3:13 PM, Oliver ola...@gmail.com wrote: I've just updated my code to rely on the stable version of lift 0.10 rather than an earlier snapshot. Unfortunately the removal of LiftRules.logAndReturnExceptionToBrowser

[Lift] JTA showSQL

2009-02-09 Thread Oliver
the functionality if you find it useful cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb

[Lift] Re: *** BREAKING CHANGES ***

2009-02-09 Thread Oliver
If I try to use the following, I get a reassignment to Val error - any ideas? LiftRules.exceptionHandler.prepend = { case (mode, state, ex) = RedirectResponse(/error) } On Wed, Dec 24, 2008 at 5:41 AM, Marius marius.dan...@gmail.com wrote: Folks, I just committed a couple of changes

[Lift] Re: Can or Box or something else

2008-12-27 Thread Oliver Lambert
Ha :), I really think you've let the Can out of the Box by raising this thread. Don't we all get a vote? After reading all the threads - +1 Box On 27/12/2008, at 10:06 AM, David Pollak wrote: 2008/12/26 Alex Boisvert boisv...@intalio.com Just brainstorming here... not sure if we're

[Lift] Re: LiftRules.logAndReturnExceptionToBrowser doesnt alway work

2008-12-21 Thread Oliver Lambert
Cool, Thanks On 21/12/2008, at 6:20 PM, Marius wrote: You already got good advices to your particular problem still an exception thrown from LoanWrapper-s should be caught by and your function called. I'll look into it tomorrow. Br's, Marius On 18 Dec, 23:58, Oliver ola...@gmail.com

[Lift] Re: url handling

2008-12-20 Thread Oliver Lambert
RedirectWithState? Br's, Marius On 20 Dec, 05:26, Oliver Lambert ola...@gmail.com wrote: Hi I notice lift sometimes lift rewrites the url a little e.g. - http://localhost:9090/enterbecomeshttp://localhost:9090/enter?fnVT32KHAJRTHI5RNQ2XBY=_ What are the rules for when this happens

[Lift] Can or Box or something else

2008-12-20 Thread Oliver Lambert
Is Can a little less like Option and more like scala.Either, where the left side is used to indicate failure? On 21/12/2008, at 1:43 AM, David Pollak wrote: Folks, Over the year that Lift has had Can[T] as a replacement for Scala's Option[T], the name Can has required a lot of

[Lift] Re: url handling

2008-12-20 Thread Oliver Lambert
it explicitly (i.e. using just redirectTo), the this version of redirectTo on StatefulSnippet may be firing. Derek On Sat, Dec 20, 2008 at 5:36 AM, Oliver Lambert ola...@gmail.com wrote: Simple, I would like my url to be called without ?... tacked onto the end. On 20/12/2008, at 10:40

[Lift] Re: Can or Box or something else

2008-12-20 Thread Oliver Lambert
. On Dec 20, 2008 11:15 AM, Oliver Lambert ola...@gmail.com wrote: Ok so Can is not either an Either or an Option, its a Can. I kind of wondered when I first used Can, and it was described as an enhanced Option, why it wasn't called something like Option+ with None, Some and Failure

[Lift] Re: Can or Box or something else

2008-12-20 Thread Oliver Lambert
Perhaps we should rename Can to Option and get the Scala guys to rename theirs, OptionWithoutFailure :) On 21/12/2008, at 6:50 AM, Charles F. Munat wrote: OptionWithFailure --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: LiftRules.logAndReturnExceptionToBrowser doesnt alway work

2008-12-19 Thread Oliver Lambert
am doing is bad design or coding, Im willing to change it. Oliver On 20/12/2008, at 1:12 AM, Derek Chen-Becker wrote: What kind of error are you getting when the EM closes? As long as you're not relying on the EM.close to commit your transaction (something I'd recommend against anyway

[Lift] url handling

2008-12-19 Thread Oliver Lambert
Hi I notice lift sometimes lift rewrites the url a little e.g. - http://localhost:9090/enter becomes http://localhost:9090/enter?fnVT32KHAJRTHI5RNQ2XBY=_ What are the rules for when this happens? Is there anyway to write a lift application where it doesn't happen? cheers Oliver

[Lift] LiftRules.logAndReturnExceptionToBrowser doesnt alway work

2008-12-18 Thread Oliver
I was redirecting to an error page using LiftRules.logAndReturnExceptionToBrowser, but when I use a LoanWrapper to close a EntityManager and an error occurs when closing the entity manager, LiftRules.logAndReturnExceptionToBrowser doesn't appear to redirect to my error page. Can anyone think of a

[Lift] Re: LiftRules.logAndReturnExceptionToBrowser doesnt alway work

2008-12-18 Thread Oliver
the exception in the finally block propogate. On Thu, Dec 18, 2008 at 1:58 PM, Oliver ola...@gmail.com wrote: I was redirecting to an error page using LiftRules.logAndReturnExceptionToBrowser, but when I use a LoanWrapper to close a EntityManager and an error occurs when closing the entity

[Lift] Re: liftweb xml schema location

2008-12-17 Thread Oliver
Thanks This is the information I need On Wed, Dec 17, 2008 at 11:29 PM, David Bernard david.bernard...@gmail.com wrote: It's not an external link nor a link to a schema but the definition of a namespace : lift On Wed, Dec 17, 2008 at 10:07, Oliver Lambert ola...@gmail.com wrote: Don't I

[Lift] Re: error message tag

2008-12-16 Thread Oliver Lambert
are working with an unadulterated version of the code-base. My own code style is also probably different from others and is likely going to diverge as I have a mentor pushing me to adopt a much more functional/immutable style of programming. Chas. Oliver wrote: I have the following to output

[Lift] liftweb xml schema location

2008-12-16 Thread Oliver
I have a client doesn't want an external link like xmlns:lift=http://liftweb.net/; Can I store the schema locally? How do I get it? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] error message tag

2008-12-15 Thread Oliver
I have the following to output an error message against lift:msg id=errMsg type=msgs/ When I have an error its all fine, but when I don't have an error I get the following html span id=errMsg/ Is there any way of getting rid of the empty span? cheers Oliver

[Lift] context path

2008-12-15 Thread Oliver
I have a few links within my pages where I don't want lift to prepend the context path to the url. Is there any way to do this? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[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: Binding Problem - Help

2008-12-14 Thread Oliver
of the number I probably won't see the same error in the life of the universe, but you never know your luck. On Mon, Dec 15, 2008 at 12:36 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 14, 2008 at 5:06 PM, Oliver ola...@gmail.com wrote: David Thanks for the prompt reply. I'll

[Lift] Re: JPADemo weird disappearing boot

2008-10-08 Thread Oliver
I'm getting the error too :( rotten boot On Wed, Oct 8, 2008 at 4:47 PM, Charles F. Munat [EMAIL PROTECTED] wrote: I figured this out (sort of). The problem was in the master pom.xml. Not sure what it was, though. Chas. Charles F. Munat wrote: I seem to have lost my boot. I copied

[Lift] error page

2008-10-02 Thread Oliver
I don't want to display the default error page to the user. How do I replace it with my own? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb

[Lift] Re: error page

2008-10-02 Thread Oliver Lambert
the application. Here you can intercept the Throwable and redirect to your own error page using RedirectResponse or RedirectWithState. Br's, Marius On Oct 2, 10:48 am, Oliver [EMAIL PROTECTED] wrote: I don't want to display the default error page to the user. How do I replace it with my own

[Lift] Todays questions

2008-10-02 Thread Oliver
to be made available to garbage collection. For instance, I have a table of html links - once one is selected, I can set the holding collection to null, but lift is still holding a reference for its history. cheers Oliver --~--~-~--~~~---~--~~ You received

[Lift] Re: Todays questions

2008-10-02 Thread Oliver
Thanks for the answers Another related question - Is there any functionality in lift to prevent multiple submits (e.g. the browser is slow for whatever reason and the user presses the submit button multiple times)? cheers Oliver On Fri, Oct 3, 2008 at 10:15 AM, David Pollak [EMAIL PROTECTED

[Lift] Re: JPA and enumerations

2008-10-02 Thread Oliver
much, Derek On Wed, Oct 1, 2008 at 5:08 PM, Oliver [EMAIL PROTECTED] wrote: You have to extend it - I did it at the top of the model, but it probably makes sense to create a separate file(s). So Gender would have a corresponding type class GenderType extends EnumvType(Gender

[Lift] Re: JPA and enumerations

2008-10-01 Thread Oliver
a user type in Scala before either and I couldn't find a way to generically do all enumerations as one user type - Scala is just too strict. hope that helps Oliver On Thu, Oct 2, 2008 at 6:58 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Hmmm. Oliver, I'm working on using the UserType you wrote now

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-24 Thread Oliver Lambert
for validation is pretty ugly, javascript validation would be better That's what I said. Sorry, Oliver. On re-reading, that sounds a little snippy, but I didn't mean it that way. I just meant that we agree -- after mentioning it as a possibility, I said it would be unnecessary since

[Lift] Re: bind and enumerations

2008-09-18 Thread Oliver
[(Gender.Value, java.lang.String)] = List((Unknown,Unknown), (Male,Male), (Female,Female)) Oliver wrote: When I saw this answer, I was really hoping it would work. Unfortunately, Gender.elements.toList.map(v = (v, v.toString)) gives me List((a.Gender(0),a.Gender(0)), (a.Gender(1

[Lift] Re: RBAC in Lift

2008-09-11 Thread Oliver Lambert
with Lift? Oliver On 08/09/2008, at 9:24 AM, Charles F. Munat wrote: I'm building a website for a group that wants to have different levels of access to the site. Essentially, there will be five roles, from Admin down to Guest, with each role having access to different parts of the site

[Lift] Re: JPA w/Scala

2008-09-10 Thread Oliver
Hi Derek, this is looking good On Wed, Sep 10, 2008 at 2:55 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, the code is merged in and the latest version is attached. I made a few minor modifications to the JPA code that Oliver sent: 1. I made the openEM and closeEM methods abstract

[Lift] Re: JPA w/Scala

2008-09-09 Thread Oliver Lambert
= { println(name: +author.name) author.books.foreach(book = println( title: +book.title)) }) } If you are still having problems, mvn clean your project, zip it up and mail it to me - I'll run it tomorrow morning, when I get to work Oliver Cheers Tim

[Lift] Re: One further: JPA + JTA + Lift

2008-09-09 Thread Oliver Lambert
Now, now lets not get testi ;-) On 09/09/2008, at 9:34 PM, Viktor Klang wrote: On Tue, Sep 9, 2008 at 10:09 AM, Oliver [EMAIL PROTECTED] wrote: Actually, is this the essence of the cookie. Why has the object been detached in the example Kris gives - is there something wrong

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
at it for a long time, but I believe Grails does something like this Oliver On 08/09/2008, at 9:52 AM, Charles F. Munat wrote: Oh, hell yeah. Please! And down the road, when the mapper becomes agnostic, would there be an archetype that used JPA as the back end for the Lift mapper? Chas. Tim

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
I think sql server uses @GeneratedValue(strategy=GenerationType.IDENTITY) You could try this instead of GenerationType.AUTO (though this should translate to the above) Oliver On 09/09/2008, at 12:43 AM, Tim Perrett wrote: Hmmm, I've tried: @Id @GeneratedValue(){val strategy

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver Lambert
, at 4:05 AM, Oliver Lambert wrote: I think sql server uses @GeneratedValue(strategy=GenerationType.IDENTITY) You could try this instead of GenerationType.AUTO (though this should translate to the above) Oliver On 09/09/2008, at 12:43 AM, Tim Perrett wrote: Hmmm, I've tried: @Id

[Lift] Re: One further: JPA + JTA + Lift

2008-09-08 Thread Oliver
It looks a little like the RequestVar has had its lifecycle closing hook called by the time you call getSubscriptions Try touch/get the subscriptions before you pass them into the bind. cheers Oliver On Tue, Sep 9, 2008 at 7:31 AM, Kris Nuttycombe [EMAIL PROTECTED]wrote: I've been following

[Lift] Re: JPA w/Scala

2008-09-08 Thread Oliver
Doesn't look right. The id is the primary key - it could now be inserted with a value of 100, always. I can do an insert here with @Id @GeneratedValue(){val strategy = GenerationType.AUTO} Still works without GeneratedValue being present. My pom dependencies are dependency

  1   2   >