[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
Hi flot users, I am trying to copy the basic Flot example into my own code. I have no compile errors but the graph isn't rendered because /classpath/flot/ jquery.flot.js isn't found. Since I get no errors with the flot methods in my snippet, I assume lift-widgets is loading correctly. Am I

[Lift] Including jars into a liftweb project

2009-06-26 Thread fbettag
Hey guys, i was wondering how (and where) i have to put jars in my liftweb project to get them included. i know it's a beginners question, but i've been playing around all night and i couldn't get it to work. Thanks in advance --~--~-~--~~~---~--~~ You received

[Lift] Error attempting to persist Mapper

2009-06-26 Thread Jonathan Ferguson
Hi all, I'm attempting to persist a Mapper used to join two tables. java.lang.NullPointerException: Trying to open an empty Box at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370) at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366) at

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Jeppe Nejsum Madsen
On 26 Jun 2009, Peter Robinett wrote: Hi flot users, I am trying to copy the basic Flot example into my own code. I have no compile errors but the graph isn't rendered because /classpath/flot/ jquery.flot.js isn't found. Since I get no errors with the flot methods in my snippet, I assume

[Lift] Re: Including jars into a liftweb project

2009-06-26 Thread Jeppe Nejsum Madsen
On 26 Jun 2009, fbettag wrote: Hey guys, i was wondering how (and where) i have to put jars in my liftweb project to get them included. i know it's a beginners question, but i've been playing around all night and i couldn't get it to work. Normally, you would put jars in the WEB-INF/lib

[Lift] Re: Including jars into a liftweb project

2009-06-26 Thread Caoyuan
On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On 26 Jun 2009, fbettag wrote: Hey guys, i was wondering how (and where) i have to put jars in my liftweb project to get them included. i know it's a beginners question, but i've been playing around all night and

[Lift] Re: Including jars into a liftweb project

2009-06-26 Thread Timothy Perrett
To clarify - you only need that system path if its a JAR not in a maven repository anywhere. What JAR are you trying to add? Cheers, Tim On Jun 26, 9:01 am, Caoyuan dcaoy...@gmail.com wrote: On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On 26 Jun 2009, fbettag

[Lift] Re: form element specific error messages

2009-06-26 Thread marius d.
lift:Customer.newCustomer form=POST divnewCustomer:firstName/newCustomer:firstName/divlift:msg id=firstNameError/ divnewCustomer:lastName/newCustomer:lastName/divlift:msg id=lastNameError/ divnewCustomer:submit //div /lift:Customer.newCustomer In your snippet when you need to set

[Lift] Re: New mapper class: MappedEnumString

2009-06-26 Thread Jeppe Nejsum Madsen
Oliver Lambert olambo...@gmail.com writes: [...] No this isn't what I'm suggesting, I don't think MappedEnum should be made flexible. I know this wasn't your suggestion, but any reason not to make MappedEnum flexible (if possible and backwards compatibility could be maintained) ? I was

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
Thanks, Jeppe, that's what I was missing. To continue to hijack this thread with my own questions, I'm having a problem creating the data List[(Double, Double)] that FlotSerie wants. I have: override val data = MyModel.findAll(By(MyMode.id, myId), OrderBy (MyModel.datetime, Ascending)).map(m =

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Viktor Klang
What's the type of temperature and what's the signature of the toDouble method on it? On Fri, Jun 26, 2009 at 11:09 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, Jeppe, that's what I was missing. To continue to hijack this thread with my own questions, I'm having a problem

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Jeppe Nejsum Madsen
Peter Robinett pe...@bubblefoundry.com writes: Thanks, Jeppe, that's what I was missing. To continue to hijack this thread with my own questions, I'm having a problem creating the data List[(Double, Double)] that FlotSerie wants. I have: override val data = MyModel.findAll(By(MyMode.id,

[Lift] JPA, Hibernate, c3p0

2009-06-26 Thread Ryan Donahue
I'm using JPA and Hibernate for persistence, and I've configured Hibernate to use c3p0 for connection pooling. I'm using scalajpa as follows: object em extends LocalEMF(persistenceUnit) with ThreadLocalEM When Tomcat reloads the app, the following is logged: A C3P0Registry mbean is already

[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: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
Thanks, Jeppe, that was it. So 'is' will give you the native type of any MappedType? Good to know! Peter On Jun 26, 3:47 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Peter Robinett pe...@bubblefoundry.com writes: Thanks, Jeppe, that's what I was missing. To continue to hijack this

[Lift] Re: Including jars into a liftweb project

2009-06-26 Thread Timothy Perrett
Just further to this, as was discussed ages and ages ago, be carful when using system scope - a more portable alternative is an embedded repository: http://is.gd/1erQT Cheers, Tim On Jun 26, 3:07 pm, Oliver Lambert olambo...@gmail.com wrote: If I have an application thats not in a Maven

[Lift] Re: JPA, Hibernate, c3p0

2009-06-26 Thread Derek Chen-Becker
I'll look at adding a hook. Derek On Fri, Jun 26, 2009 at 6:43 AM, Ryan Donahue donahu...@gmail.com wrote: I'm using JPA and Hibernate for persistence, and I've configured Hibernate to use c3p0 for connection pooling. I'm using scalajpa as follows: object em extends

[Lift] Re: Error attempting to persist Mapper

2009-06-26 Thread Timothy Perrett
Jono, The problem here is actually not with mapper. Look at your stack trace: java.lang.NullPointerException: Trying to open an empty Box at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370) at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366) UPDATE +dbTableName+ SET

[Lift] Warnings for missing binds?

2009-06-26 Thread Derek Chen-Becker
I just spent the better part of half a day trying to track down an issue with binding that ended up being a subtle typo. I'm thinking of adding in some logging (in dev mode) for the bind function to warn about unused bind elements and unused bind params, just to better help locate issues like

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Timothy Perrett
That's actually a common iddiom throughout lift - its the same for RequestVar and SessionVar etc etc Cheers, Tim On 26/06/2009 16:09, Peter Robinett pe...@bubblefoundry.com wrote: Thanks, Jeppe, that was it. So 'is' will give you the native type of any MappedType? Good to know!

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Matt Williams
I'd like to see this - had a similar hour of headscratching myself this morning. I wouldn't be adverse to info logs on successful binds either. Derek Chen-Becker wrote: I just spent the better part of half a day trying to track down an issue with binding that ended up being a subtle typo. I'm

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread marius d.
That would be nice ... but still what was the problem with unused bind params? ... could you please elaborate a bit? Br's, Marius On Jun 26, 6:32 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I just spent the better part of half a day trying to track down an issue with binding that ended

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Naftoli Gugenhem
+1 - Derek Chen-Beckerdchenbec...@gmail.com wrote: I just spent the better part of half a day trying to track down an issue with binding that ended up being a subtle typo. I'm thinking of adding in some logging (in dev mode) for the bind function to warn

[Lift] Re: Error attempting to persist Mapper

2009-06-26 Thread Naftoli Gugenhem
I think he said that code is in MetaMapper - Timothy Perretttimo...@getintheloop.eu wrote: Jono, The problem here is actually not with mapper. Look at your stack trace: java.lang.NullPointerException: Trying to open an empty Box at

[Lift] Re: Error attempting to persist Mapper

2009-06-26 Thread Timothy Perrett
Ah sorry I didn't realize. mapper is not really my area so I cant say what's causing that. Please raise an issue on github as we'll need to look into this properly. Thanks, Tim On Jun 26, 4:59 pm, Naftoli Gugenhem naftoli...@gmail.com wrote: I think he said that code is in MetaMapper

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Derek Chen-Becker
I meant that it could warn you if your bind tag looks like: lift:bind name=content / But you made a mistake with your surround tag: lift:surround at=contet / (notice the misspelling) I was thinking that you would get two warnings: 1. One that nothing had matched the content name 2. One

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Viktor Klang
Nice proposal! I'm noodling on adding a bit of framework to widgets, I got a bit frustrated with a widget today... Aöso, would be cool to make them OSGI components to be able to add them without rebooting. But now I'm babbling again -- Viktor On Jun 26, 2009 7:11 PM, Derek Chen-Becker

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread marius d.
Ah right ... by all means please add this. On Jun 26, 7:57 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I meant that it could warn you if your bind tag looks like: lift:bind name=content / But you made a mistake with your surround tag: lift:surround at=contet / (notice the

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Derek Chen-Becker
OK, pushed to master. If you typo your bind IDs, you'll get something like: WARN - No binding values match the lift:bind name attribute: content WARN - Unused binding values for lift:bind: contet Derek On Fri, Jun 26, 2009 at 1:09 PM, marius d. marius.dan...@gmail.com wrote: Ah right ...

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Derek Chen-Becker
Indentation still looks horked. I give up :( On Fri, Jun 26, 2009 at 3:04 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: OK, just pushed again. Emacs did some weird things to indentation, so I fixed it. Derek On Fri, Jun 26, 2009 at 1:49 PM, Derek Chen-Becker

[Lift] unexpectedly abrupt end for such an innocent mistake

2009-06-26 Thread Meredith Gregory
All, See the trace below. Is this how we'd like this error to be handled? Best wishes, --greg Welcome to Scala version 2.7.4.final (Java HotSpot(TM) Client VM, Java 1.5.0_16). Type in expressions to have them evaluated. Type :help for more information. scala List( 1, 2, 3 ) match { case List(

[Lift] Re: [scala] implementation hiding

2009-06-26 Thread Kris Nuttycombe
This does not hide the type of MSequitor, but: trait MBrace[C[X] : MBrace[C,X],A] { def nest( a : A ) : C[A] def flatten[T : C[C[A]]]( bsq : T ) : C[A] } // a monad that is a Seq trait MBraceSeq[C[X] : MBrace[C,X] with Seq[X],A] extends MBrace[C,A] trait MSequitor[A] extends Seq[A] with

[Lift] Re: Cheap Hosting

2009-06-26 Thread george
we have recently been trying out http://en.gandi.net/hosting and it seems pretty good. there is also an offer on at the moment for free hosting until end August... George On Jun 24, 4:35 pm, anothertestapp test anothertest...@gmail.com wrote: I have account withhttp://javaprovider.netthey

[Lift] Re: [scala] unexpectedly abrupt end for such an innocent mistake

2009-06-26 Thread Meredith Gregory
Paul, Thanks for all your kind feedback. i wasn't really concerned about the long stack trace. i was concerned about the termination of the REPL process. Best wishes, --greg On Fri, Jun 26, 2009 at 2:44 PM, Paul Phillips pa...@improving.org wrote: On Fri, Jun 26, 2009 at 02:34:06PM -0700,

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread dflemstr
Hello everyone involved, I am having a very annoying problem with the Flot widget: The automatically generated legend's auto-sizing feature is broken (it grows horizontally to the max allowed space while still adhering to the margin values specified, and it's not possible to create an external,

[Lift] Turning on Logging for third-party libraries in Lift

2009-06-26 Thread Alan M
I'm trying to enable log4j logging in a third party library (well third party to me.. it was developed in house) so that it logs it's output to the same place my Lift webapp logs. In the third party library, a log4j Logger is obtained and used but no setup is done, figuring the log4j config will

[Lift] Re: Getting Username and Password from URL of form hxxp://user:passw...@foo.org

2009-06-26 Thread Alan M
Problem solved! I knew how to get and decode the header style.. it's the http://username:passw...@foo.org that I couldn't get to. I didn't see how to get the string that contains the username and password in this case. I found it though.. if you get the HTTPServletRequest and then the URL from

[Lift] suggestion: I'm a brand spanking new user....some first impressions on 'getting started'

2009-06-26 Thread Rick
Today is my very first day that I planned to take a serious look at Lift. I've coded webapps in many different frameworks and plan to do a simple Employee app and add my 'how to' to the site I host here http://www.learntechnology.net/content/main.jsp (which many of the examples there show the same

[Lift] Re: Modify CRUDify XHTML

2009-06-26 Thread Peter Robinett
Thanks, Derek and Jeppe, your responses were very helpful. I implemented Jeppe's solution and added my own snippet tag within _viewTemplate. Unfortunately, I spent the whole day trying to figure out how pass the current CRUDified object to my snippet. Do I retrieve it in _viewTemplate from