[Lift] Re: ANNOUNCE: New functionality for Mapper logging with breaking changes

2009-09-19 Thread Vassil
Hello, Shouldn't S.logQuery and S.queryLog be updated as well or deprecated if they're not going to be used the way they were as parameters to DB.addLogFun? Thanks, Vassil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[Lift] Re: Speaking at Developer Day in Boulder

2009-09-19 Thread marius d.
coool! ... will be taped ? br's, Marius On Sep 19, 2:45 pm, Derek Chen-Becker wrote: > FYI, for anyone in the Denver/Boulder area, I'll be giving an intro talk > on Scala at the Developer Day, Boulder event on October 10th: > > http://developer-day.com/events/2009-boulder.html > > There will be

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread Josh Suereth
Profiles are nice, but I think just using -P should be ok here (instead of properties). Although I do like the properties approach, I usually use that to simplify builds in the case where I have a system with a guaranteed property. At work we usually use a profile to attach the hudosn build versi

[Lift] Re: How do I hook up JS events to onsubmit on a lift-controlled form?

2009-09-19 Thread David Pollak
On Sat, Sep 19, 2009 at 1:30 PM, DMB wrote: > > That's what I ended up doing. Any particular reason why JS events > can't be "passed through"? Granted, it's a "nice to have", but it > could save ex-RoR (and ex-ASP.NET) developers a few WTFs. :-) > Yeah... when you include the form="post" we've h

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread David Pollak
Care to take a look at the pom.xml files in the dpp_wip_actorized branch and make them to the right thing? Also, do you have rights on Hudson/Nexus on scala-tools.org? If not, please send mail to ad...@scala-tools.org On Sat, Sep 19, 2009 at 12:58 PM, Indrajit Raychaudhuri wrote: > > Acknowled

[Lift] Re: Pain Building Lift

2009-09-19 Thread mond ray mond
Ha - beat you ;-) [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 7 minutes 56 seconds [INFO] Finished at: Sat Sep 19 22:02:30 CEST 2009 [INFO

[Lift] Re: How do I hook up JS events to onsubmit on a lift-controlled form?

2009-09-19 Thread DMB
That's what I ended up doing. Any particular reason why JS events can't be "passed through"? Granted, it's a "nice to have", but it could save ex-RoR (and ex-ASP.NET) developers a few WTFs. :-) On Sep 14, 11:46 am, David Pollak wrote: > On Tue, Sep 8, 2009 at 7:02 PM, DMB wrote: > > > Hi, folks

[Lift] Re: Session locking...

2009-09-19 Thread Derek Chen-Becker
S.session.foreach { _.addCleanupFunction { sess => ... } }, I think should work. I haven't looked at the session code in a while. You would need to register that call for each user's session. Alternatively, there's LiftSession.onShutdownSession, but I think that that call comes later in the shutdow

[Lift] Re: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-19 Thread Lee Mighdoll
For jetty, you might also try the following inside your web.xml section: org.mortbay.jetty.servlet.SessionURL none see: http://docs.codehaus.org/display/JETTY/SessionIds Lee --~--~-~--~~~---~--~~ You received this message because you are subscribe

[Lift] Re: Pain Building Lift

2009-09-19 Thread Derek Chen-Becker
That particular error is saying that java.sql.PreparedStatement.setSQLXML doesn't exist. This method was added in 1.6, so I may have unwittingly made the build break under 1.5. Are you, by any chance, using a 1.5 JDK? Derek On Sat, Sep 19, 2009 at 10:31 AM, mond ray mond wrote: > > It's an open

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread Indrajit Raychaudhuri
Acknowledged. Using property to activate profile allows greater flexibility and would be preferred option indeed. Cheers, Indrajit On 20/09/09 1:19 AM, Kevin Wright wrote: > Quite right, it's "classifier" and not "qualifier". It was a typo, > honest! :-p > > > Nice thinking about using profil

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread Kevin Wright
Quite right, it's "classifier" and not "qualifier". It was a typo, honest! :-p Nice thinking about using profiles, lets you keep the pom in sync between trunk and the branch, should help nicely with those merges One change I would make though is to activate the profile by way of a property: htt

[Lift] Speaking at Developer Day in Boulder

2009-09-19 Thread Derek Chen-Becker
FYI, for anyone in the Denver/Boulder area, I'll be giving an intro talk on Scala at the Developer Day, Boulder event on October 10th: http://developer-day.com/events/2009-boulder.html There will be a pretty wide variety of presentations there, so I hope this will help spread the word on Scala to

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
I don't think soI'm using Ubuntu:-) I just saw, that I got a little bit confused, because I wrote two mails. And the thing is, that the problem with if/else in override def toString now works fine. But there's still this one lelf. So I still get the table/view doesn't exist error, when

[Lift] Re: table does not exist

2009-09-19 Thread Indrajit Raychaudhuri
Could this be a case of jvm on windows locking some files? Cheers, Indrajit On Sep 19, 11:38 pm, Tobias Daub wrote: > Hey David, > > I don't know what I did differently, but now, after the 5th mvn clean, > the problem disappeard. Really don't know why, or what happened. Sorry > for bothering yo

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
Hey David, I don't know what I did differently, but now, after the 5th mvn clean, the problem disappeard. Really don't know why, or what happened. Sorry for bothering you. Thanks! > This is strange... please create a project that demonstrates this, > post the project to GitHub and open a Lift

[Lift] Re: table does not exist

2009-09-19 Thread David Pollak
This is strange... please create a project that demonstrates this, post the project to GitHub and open a Lift ticket referencing the project and this thread and we'll fix the problem. On Sat, Sep 19, 2009 at 11:06 AM, Tobias Daub wrote: > > Hi David, > > I did a mvn clean before, but that didn't

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. > > > On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub > wrote: > > > Lifters, > > I defined the table that caused the error and I list

[Lift] Re: Tabs + menu builder

2009-09-19 Thread tiro
Jeppe> We've made primary/secondary navigation where primary navigation is ... I did something similar..found it difficult to work with the default snippets. But found it hard, when writing my own group snippet, to identify the current Loc within the LocGroups Locs. So Jeppe, would be very inter

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread Indrajit Raychaudhuri
Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: dppactor false net.l

[Lift] Re: Pain Building Lift

2009-09-19 Thread Wilson MacGyver
I'm running Snow Leopard, Maven 2.2.1. And I use git pull to keep track of the latest source. I use export MAVEN_OPTS="-Xmx1024m" and then mvn clean install I've been doing that for the past 3 month or so now. It's only broke twice for me. Both times had to do with new code, and both were reso

[Lift] Session locking...

2009-09-19 Thread Timothy Perrett
Guys, I have a situation where i need to sort of present some kind of locking to the users of this application. For instance, user A opens thing Z (perhaps i update the database with some flag or whatever) then user B attempts to open thing Z from another terminal. Its at that point that I want

[Lift] Re: Pain Building Lift

2009-09-19 Thread David Pollak
On my Mac OS X box: pony:liftweb dpp$ mvn -version Maven version: 2.0.9 Java version: 1.6.0_15 OS name: "mac os x" version: "10.6" arch: "i386" Family: "mac" pony:liftweb dpp$ Here's the build log: pony:~ dpp$ cd tmp/ pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git Initialized empty Gi

[Lift] Re: Pain Building Lift

2009-09-19 Thread Timothy Perrett
That it might be - but in my experience, building anything from source is not usually the path of least resistance and its why I suggest that pulling releases / snapshots from the maven repo is sooo much easier, for example: http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.0.2

[Lift] Re: Alternate Lift builds?

2009-09-19 Thread David Pollak
On Fri, Sep 18, 2009 at 4:44 PM, Kevin Wright wrote: > Your best bet is probably: > > Modifiy the pom in the branch, e.g. by adding a qualifier to the version > infoManually configure a second build in hudson that points to the branch > > I'm pretty sure you can't automate on this one :( > Thank

[Lift] Re: Pain Building Lift

2009-09-19 Thread David Pollak
On Sat, Sep 19, 2009 at 9:31 AM, mond ray mond wrote: > > It's an open source project so I don't think that users that have the > temerity to build it should be questioned ;-) > > Like our friend runt (probably not his / her real name), I have built > 1.0.2 from the github tag, following your inst

[Lift] Re: Lift Download Instructions for Linux (Maven Installation Instructions)

2009-09-19 Thread David Pollak
You can download maven from http://maven.apache.org/download.html Personally, I untar the maven distribution into ~/apps, prepend PATH with ~/bin and symlink ~/bin/mvn to ~/apps/*maven_version*/bin/mvn On Fri, Sep 18, 2009 at 5:57 PM, espeed wrote: > > The Lift download instructions for Linux

[Lift] Re: table does not exist

2009-09-19 Thread David Pollak
On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub wrote: > > Lifters, > > I defined the table that caused the error and I listet the meta object > in Schemifier.schemify(...) inside Boot.scala. Are there any other > reason, that might cause this error? > No. > Besides that, I've the impression, tha

[Lift] Re: Pain Building Lift

2009-09-19 Thread mond ray mond
It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small samp

[Lift] Re: Direct To Web

2009-09-19 Thread David Pollak
Lift doesn't support anything like that at this time. The closest thing is CRUDify. You should be able to write a trait (like CRUDify) that gives you more control. On Sat, Sep 19, 2009 at 8:04 AM, mejiad wrote: > > Is more than scaffolding. d2W is very customizabe with rules, there > are embed

[Lift] Re: Pain Building Lift

2009-09-19 Thread David Pollak
First, you should not be doing sudo (Tim pointed this out). Nothing about Lift needs root. Second, there is a known issue with the OpenJDK compiling Lift sources. I've got it on my to-do list to look into it, but my to-do list is about a month long. On Fri, Sep 18, 2009 at 5:14 PM, runt wrote:

[Lift] Re: checking out examples from SVN?

2009-09-19 Thread David Pollak
Everything is in GitHub at http://github.com/dpp/liftweb/ On Sat, Sep 19, 2009 at 12:24 AM, mond ray mond wrote: > > I can't seem to check out the examples on the Google code project > referenced in the WIKI (http://wiki.liftweb.net/index.php/ > HowTo_Making_changes_to_the_samples) > > Have they

[Lift] Re: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-19 Thread marius d.
I just committed the fix. Box[String => String] is calling URLRewriter which holds the function that does URL manipulation. This is set in HTTP Provider. It does 2 things: - calls encodeURL - calls URLDecorator URLDecorator is important in case one wants to add something to all URL's. For insta

[Lift] Re: Direct To Web

2009-09-19 Thread mejiad
Is more than scaffolding. d2W is very customizabe with rules, there are embedded d2w components, you can define your own property and task components, etc. Here are some articles where Direct To Web is described. http://www.stepwise.com/Articles/Technical/D2W/D2W1.html http://wiki.objectstyle.

[Lift] Lift runtime error

2009-09-19 Thread Tobias Daub
Hey Lifters, I overrode the toString method of a foreign key field, to make decisions, on what to return, nothing special. When I remove the if/else (Order.scala, line 65 ff.) and return directly the result, no error occurs! I append the source as attachment. Further on, I've a similar error t

[Lift] Re: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-19 Thread Grant Wood
It looks like LiftRules.urlDecorate may be what I'm looking for, but combing through net.liftweb.http.Req and net.liftweb.http.S, I'm at at a loss for what to change it to, or how it even gets used by Req._fixHref when updating the URLs. I'm reluctant to start changing LiftRules.urlDecorate to my

[Lift] Re: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-19 Thread Grant Wood
Atsuhiko's experience makes sense if you look in Req. _fixHref is where the rewriting is actually happening: --- Req ... private def _fixHref(contextPath: String, v : Seq[Node], fixURL: Boolean, rewrite: Box[String => String]): Text = { val hv = v.text val updated = if (hv.s

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-09-19 Thread alexdavie...@googlemail.com
I found a fix for the errors on the importation at http://www.kleinfelter.com/node/82 You can run: mvn -Declipse.workspace=K:\code eclipse:add-maven-repo replacing K:\Code with your eclipse workspace. It sets elipse up to search maven for references or somesuch. On Sep 3, 11:36 pm, finelinestu

[Lift] checking out examples from SVN?

2009-09-19 Thread mond ray mond
I can't seem to check out the examples on the Google code project referenced in the WIKI (http://wiki.liftweb.net/index.php/ HowTo_Making_changes_to_the_samples) Have they moved? Thanks in advance Ray --~--~-~--~~~---~--~~ You received this message because you

[Lift] table does not exist

2009-09-19 Thread Tobias Daub
Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don'

[Lift] Re: Pain Building Lift

2009-09-19 Thread Timothy Perrett
runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-source To be honest, if you just want to use lift then you really don't need to build