[Lift] Re: Package building...

2009-08-10 Thread Joe Wass
No, that's not it... Apache Maven 2.2.0 (r788681; 2009-06-26 14:04:01+0100) Java version: 1.5.0_13 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home Default locale: en_GB, platform encoding: MacRoman OS name: mac os x version: 10.5.6 arch: i386 Family: unix Any other

[Lift] Re: retrieve id's of form elements - set focus to HTML element

2009-08-10 Thread fricke
thanks for the tip; it's way nicer than what I did: give the element an ID and then use this one for the focus thanks markus On Aug 10, 12:15 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Aug 8, 2009 at 9:19 AM, fricke 00fri...@googlemail.com wrote: Hi all, currently I

[Lift] Re: Mapper Decimal, PostgreSQL, and foreign keys issues

2009-08-10 Thread Derek Chen-Becker
I can take care of #1 and #3 if you can open issues for them on GitHub. If you could attach a standalone project for #3 that I can test against that would be very helpful. Derby has some other not so fun quirks with types (BINARY support sucks), so I wouldn't be surprised if there's something

[Lift] Re: Mapper nullability

2009-08-10 Thread Derek Chen-Becker
I don't think that Mapper currently supports NOT NULL in the schema generation, although off the top of my head I think that we should be able to add that (please open an issue). I'm not sure about the H2 issue. What does the output from Schemifier look like when it runs? Derek On Sun, Aug 9,

[Lift] More problems with CRUDify and SessionVars

2009-08-10 Thread Jeppe Nejsum Madsen
Hi, I'm using CRUDify, but all domain objects belong to an account, so I need to add the current user's account id to the queries made by CRUDIfy. This works fine for the list Loc: override def findForListParams: List[QueryParam[Vehicle]] = List(OrderBy(primaryKeyField, Ascending),

[Lift] Re: retrieve id's of form elements - set focus to HTML element

2009-08-10 Thread David Pollak
On Mon, Aug 10, 2009 at 4:13 AM, fricke 00fri...@googlemail.com wrote: thanks for the tip; Sure thing. it's way nicer than what I did: give the element an ID and then use this one for the focus But if you've already given the element an id, it used that one. thanks markus On

[Lift] Re: More problems with CRUDify and SessionVars

2009-08-10 Thread David Pollak
(1) Don't use open_! unless you have a very, very, very good reason to do so. It defeats the purpose of Box. (2) If you have a particular question/example of what you want to do (a complete, runnable example), I can work out a pattern for you. On Mon, Aug 10, 2009 at 8:37 AM, Jeppe Nejsum Madsen

[Lift] Re: Mapper nullability

2009-08-10 Thread Naftoli Gugenheim
INFO - CREATE TABLE requestlocationstringvalue (ID BIGINT NOT NULL AUTO_INCREMENT , field BIGINT , requestlocation BIGINT) INFO - CREATE INDEX requestlocationstringvalue_id ON requestlocationstringvalue ( id ) INFO - CREATE INDEX requestlocationstringvalue_requestlocation ON

[Lift] makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread glenn
I just got a type mismatch found error in LiftRules.early.append (makeUtf8) in Boot.scala. It's now looking for an net.liftweb.http.provider.HTTPRequest instead of a javax.servlet.http.HttpServletRequest. Is this a new change, and if so, where is the net.liftweb.http.provider package? Glenn...

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread Tim Nelson
There were changes made to remove the requirement for lift to run in a servlet container. See: http://groups.google.com/group/liftweb/browse_thread/thread/a3486a7b9e9ffa40 On Mon, Aug 10, 2009 at 11:49 AM, glenn gl...@exmbly.com wrote: I just got a type mismatch found error in

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread Jeppe Nejsum Madsen
glenn gl...@exmbly.com writes: I just got a type mismatch found error in LiftRules.early.append (makeUtf8) in Boot.scala. It's now looking for an net.liftweb.http.provider.HTTPRequest instead of a javax.servlet.http.HttpServletRequest. Is this a new change, and if so, where is the

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread glenn
I realize the need to improve the code, but do you have to break existing in the process? That's bad form. Glenn... On Aug 10, 9:55 am, Tim Nelson tnell...@gmail.com wrote: There were changes made to remove the requirement for lift to run in a servlet container. See:

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread Ross Mellgren
It was well warned about (many capital letters and asterisks) and you're clearly compiling against SNAPSHOTs. If you do not want new features, but guaranteed unchanging API, then you should probably use 1.1 milestones or 1.0 instead. -Ross On Aug 10, 2009, at 1:05 PM, glenn wrote: I

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread David Pollak
On Mon, Aug 10, 2009 at 10:05 AM, glenn gl...@exmbly.com wrote: I realize the need to improve the code, but do you have to break existing in the process? That's bad form. The issue was discussed on list. The branch was available for inspection in the repository for 1 month. The warning

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread marius d.
Your makeUTF8 should look like this: private def makeUtf8(req: HTTPRequest): Unit = {req.setCharacterEncoding(UTF-8)} just use HTTPRequest instead of HttpServletRequest. Br's, Marius On Aug 10, 7:49 pm, glenn gl...@exmbly.com wrote: I just got a type mismatch found error in

[Lift] Re: Alternate part of view

2009-08-10 Thread David Pollak
On Thu, Aug 6, 2009 at 9:28 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Here's some view xhtml: req:noClient label for=clientqueryClient /label client:query id=clientquery size=5/ client:set / /req:noClient req:client Client client:unset / client:editclient:name

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
The problem with using the template methods is that they pull the node out of context. So if I need to let the view html file decide how everything is assembled, then these calls to the template methods have to be used inside a bind. You can put the alternatives inside a dedicated parent xml

[Lift] Re: Alternate part of view

2009-08-10 Thread David Pollak
On Mon, Aug 10, 2009 at 11:18 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: The problem with using the template methods is that they pull the node out of context. So if I need to let the view html file decide how everything is assembled, then these calls to the template methods have to be

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
By context I mean where it is in the xml. For example, br's between the switch and everything else. In other words, your code implements a switch. But where are you putting it back in the view? chooseTemplate etc. extract data out of context as oppo'sed to bind which is in place. And if indeed

[Lift] Re: Alternate part of view

2009-08-10 Thread David Pollak
On Mon, Aug 10, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: By context I mean where it is in the xml. For example, br's between the switch and everything else. In other words, your code implements a switch. But where are you putting it back in the view? chooseTemplate etc.

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
It's not that it doesn't do what my code does. But in the long run it doesn't sound shorter. Also it's not totally based on boxes anymore. Also, my proposal would allow me to write: bindSwitch(req, xhtml, Seq(hasClient, noClient), {(ns:NodeSeq) = xxx match { case yyy = 0 - bind(client, ns,

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
I sent my last message before I saw your last message, sorry. You made a very valid point that I didn't think of--to split the snippet into a number of snippets. However that doesn't help everywhere. For example: (breaking it into 2 messages) - David

[Lift] Re: Mapper Decimal, PostgreSQL, and foreign keys issues

2009-08-10 Thread Kyle Goodwin
I'm not aware of any database that doesn't support DECIMAL under that name however all the other Mapped types specify their type names in the DriverType declarations including things that never vary between drivers, so I just figured that was the right place for it. It doesn't matter

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
For example, I have requests. Every request is of a particular nature. Every nature specifies a set of location types--for example a Transportation request has a From and a To--and each type has a set of allowed location kinds--for example, transportation can be from/to a street address,

[Lift] Re: Package building...

2009-08-10 Thread Joe Wass
Thanks very much, that works. I'll keep an eye on the defects. Joe On Aug 10, 9:27 am, David Bernard david.bernard...@gmail.com wrote: It's a bug of the maven-war-plugin see *http://jira.codehaus.org/browse/MWAR-169 *http://jira.codehaus.org/browse/MWAR-170

[Lift] Re: Mapper Decimal, PostgreSQL, and foreign keys issues

2009-08-10 Thread Derek Chen-Becker
Thanks. I agree that it would be better to put that kind of thing in DriverTypes, but I wanted to check to make sure that there weren't any exceptions that I should specialize when I do put it in place. Derek On Mon, Aug 10, 2009 at 1:00 PM, Kyle Goodwin goodw...@gmail.com wrote: I'm not

[Lift] Re: New features

2009-08-10 Thread Naftoli Gugenheim
It looks like some .is's need to be explicit. I wonder if the implicit doesn't apply now that it's using member types? David, if you choose to volunteer to add .is to references to primaryKeyField it will get on github sooner than if I do it, but I can do it if you don't.

[Lift] Re: New features

2009-08-10 Thread glenn
David, I'm using your new ManyToMany trait and ran across this error: Message: java.lang.ClassCastException: net.liftweb.mapper.ProtoUser$id $ cannot be cast to java.lang.Long scala.runtime.BoxesRunTime.unboxToLong(Unknown Source)

[Lift] Re: New features

2009-08-10 Thread David Pollak
I've got negative available time. Sorry. On Mon, Aug 10, 2009 at 1:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: It looks like some .is's need to be explicit. I wonder if the implicit doesn't apply now that it's using member types? David, if you choose to volunteer to add .is to

[Lift] passing an attribute to a named template

2009-08-10 Thread harryh
Say I have a named template section.html (this is obviously a bit simplified from my real world use): div lift:bind name=content / /div Which I call like so: lift:surround with=section at=content !-- some stuff -- /lift:surround Is there someway I can modify both section.html and the

[Lift] bind with outer element?

2009-08-10 Thread jon
Hi, I have a template with the following lift:Snippit t:name shorten=true / t:foo form=POST form:name/ ... /t:foo /lift:Snippet And a snippet like: def doSnippet(x:NodeSeq):NodeSeq = { bind(t, x, name- (doName(_)), foo - (doForm(_)) ) } In the code above only the

[Lift] Looking for an additional team member for ESME

2009-08-10 Thread David Pollak
Folks, I'm heavily involved with ESME http://incubator.apache.org/esme/, the Enterprise Social Messaging Experiment, an Apache Incubator project. ESME was founded by folks in the SAP ecosystem and used by some SAP ecosystem

[Lift] Re: SOAP web services?

2009-08-10 Thread Meredith Gregory
Lifted RESTafarians, Has anyone tried the Apache Axis 2 WSDL 2.0 support? i'm looking at this pagehttp://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.htmland it claims they have a maven plugin to generate the stubs for a WSDL 2.0 REST binding. i'm going to play around with

[Lift] Re: New features

2009-08-10 Thread Naftoli Gugenheim
Okay, done. Wait until hudson builds it. - glenngl...@exmbly.com wrote: I assume this could take a while to fix. Meantime, could someone revert 1.1-SNAPSHOT back to before this change? Thanks Glenn... On Aug 10, 1:43 pm, David Pollak

[Lift] Re: Db.addLogFunc

2009-08-10 Thread Derek Chen-Becker
Right. The current impl just does a toString on the vendor's PreparedStatement. Some Vendors print GUIDs, some print the SQL, but there really aren't any requirements one way or the other. Derek On Mon, Aug 10, 2009 at 4:40 PM, jon jonhoff...@gmail.com wrote: btw, the query param happens to