[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-12 Thread Heiko Seeberger
OK, I spotted the problem and will work on the issue ... Heiko 2009/11/13 Heiko Seeberger > maven-bundle-plugin? Well, that's my business, I guess. I will take a look > ... > > Heiko > > 2009/11/12 Alex Boisvert > > Can one of our resident Maven experts quickly look at: >> http://github.com/dp

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-12 Thread Heiko Seeberger
maven-bundle-plugin? Well, that's my business, I guess. I will take a look ... Heiko 2009/11/12 Alex Boisvert > Can one of our resident Maven experts quickly look at: > http://github.com/dpp/liftweb/issues/#issue/166 > > I took a brief look at the poms but couldn't figure why Maven was includin

[Lift] Problem cloning lift repo.

2009-11-12 Thread ivan
I am trying to clone git lift repo and keep getting this error: git clone http://github.com/dpp/liftweb.git Initialized empty Git repository in /home/ivan/Dokumenti/Projects/ scala/lift/liftweb/.git/ got 38024d4c9cdf764c6d5c8350c78a64ff233b7f05 walk 38024d4c9cdf764c6d5c8350c78a64ff233b7f05 Getti

[Lift] Re: CometListener

2009-11-12 Thread Jack Widman
David, I'm using lift 1.1 and scala 2.5 now and the compiler says it cant find CometListener when I import net.liftweb.http._ Jack On Fri, Nov 13, 2009 at 12:01 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Thu, Nov 12, 2009 at 8:54 PM, Jack Widman wrote: > >> C:\work\widman

[Lift] Re: Empty Box exception in MetaMapper

2009-11-12 Thread Jim McBeath
Assuming I prune it down to an example that requires only a few files, which would probably include an SQL script for creating a test database that has the appropriate schema in it, is there a procedure for submitting such a test case? Should I just post source code to this group? Make a jar fil

[Lift] Re: scala version

2009-11-12 Thread David Pollak
Lift 1.1-M6 -> Scala 2.7.5 Lift 1.1-M7 & SNAPSHOT -> Scala 2.7.7 On Thu, Nov 12, 2009 at 9:01 PM, jack wrote: > > I'm using lift version 1.1-M6. Which version of scala do I need? In > general, how do I know which version of Scala to use? > > > -- Lift, the simply functional web framework http

[Lift] scala version

2009-11-12 Thread jack
I'm using lift version 1.1-M6. Which version of scala do I need? In general, how do I know which version of Scala to use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email

[Lift] Re: CometListener

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 8:54 PM, Jack Widman wrote: > C:\work\widman\src\main\scala\com\widman\comet\PackComet.scala:20: error: > type CometListener is not a member of package net.liftweb.http > > I got this compile error. > > I must be missing something obvious. It's part of Lift 1.1, not Lift

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-12 Thread David Pollak
Oshyshki, Your call to Service.say is outside the scope of the Lift HTTP request, so it's not wrapped with the transaction management stuff. You could insert: DB.use( DefaultConnectionIdentifier) { ignore => (0 to 5).foreach(i => User.findAll) } Inside your say method and all of the request

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-12 Thread David Pollak
Oshyshki, Your call to Service.say is outside the scope of the Lift HTTP request, so it's not wrapped with the transaction management stuff. You could insert: DB.use(DefaultConnectionIdentifier) { ignore => On Thu, Nov 12, 2009 at 5:16 PM, oshyshko wrote: > > Hello David, > > I have added

[Lift] Re: CometListener

2009-11-12 Thread Jack Widman
C:\work\widman\src\main\scala\com\widman\comet\PackComet.scala:20: error: type CometListener is not a member of package net.liftweb.http I got this compile error. I must be missing something obvious. On Thu, Nov 12, 2009 at 11:42 PM, Ross Mellgren wrote: > > It is in net.liftweb.http. > > > ht

[Lift] Re: CometListener

2009-11-12 Thread Ross Mellgren
It is in net.liftweb.http. http://www.scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/net/liftweb/http/CometListener.html By the way, the link you gave only indicates it's in either net.liftweb.http, net.liftweb.util, net.liftweb or model (or a couple other packages, since

[Lift] Re: CometListener

2009-11-12 Thread jack
I also tried net.liftweb.http On Nov 12, 11:35 pm, jack wrote: > I am trying to use CometListener. According tohttp://bit.ly/1Wnxt4, > it is in the package net.liftweb._ but compiler says it can't be > found. Is this the wrong package? --~--~-~--~~~---~--~~ You re

[Lift] CometListener

2009-11-12 Thread jack
I am trying to use CometListener. According to http://bit.ly/1Wnxt4 , it is in the package net.liftweb._ but compiler says it can't be found. Is this the wrong package? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: ManyToMany decision

2009-11-12 Thread Naftoli Gugenheim
http://reviewboard.liftweb.net/r/101/ From my the end of my description: Please advise me as to what testing is appropriate. Also, when it finds broken joins should it log them? On Thu, Nov 12, 2009 at 9:28 PM, Naftoli Gugenheim wrote: > In any case, the

[Lift] Re: Minor Bug? MappedString.valUnique should return one FieldError

2009-11-12 Thread jon
http://github.com/dpp/liftweb/issues/#issue/179 On Nov 12, 6:16 pm, David Pollak wrote: > Could you open a ticket for it? > > On Wed, Nov 11, 2009 at 11:53 AM, jon wrote: > > > Hi, > > > I'm currently adding a uniqueness requirement to a field, but there > > are duplicate entries (for empty str

[Lift] Re: Empty Box exception in MetaMapper

2009-11-12 Thread David Pollak
If you can create a reproducible case, we're look into it. On Thu, Nov 12, 2009 at 5:43 PM, Jim McBeath wrote: > > When I try to save a record in my table from the Create form built by > CRUDify, I am getting a "Trying to open an empty Box" exception from > within MetaMapper.scala, line 617 (in

[Lift] Re: jetty/actors performance question tangentially related to lift

2009-11-12 Thread Lincoln
Thanks David, I will give Lift Actors a try. Mongodb is supposedly using a connection pool behind the scenes so it isn't supposed to matter whether I create 1 or many connection objects, but I will check the source as I'm not 100% sure. Thanks, Lincoln On Thu, Nov 12, 2009 at 8:05 PM, David Pol

[Lift] Re: ManyToMany decision

2009-11-12 Thread Naftoli Gugenheim
In any case, the major problem with silently dropping children not in the join table is that it becomes necessary to take indexes into the children table and convert them to indexes into the join table. Any ideas how to go about doing so, without scanning the join table for broken entries each time

[Lift] Empty Box exception in MetaMapper

2009-11-12 Thread Jim McBeath
When I try to save a record in my table from the Create form built by CRUDify, I am getting a "Trying to open an empty Box" exception from within MetaMapper.scala, line 617 (in 1.1M7), which is this line: findApplier(indexMap.open_!, rs.getObject(1)) match { It appears that indexMap is initi

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-12 Thread oshyshko
Hello David, I have added some DB stuff + added "S.addAround(DB.buildLoanWrapper)" But the code produces separate transactions. For example, this code: = class Service { def say(message: String) { println(message) (0 to 5).foreach( i => User.fin

[Lift] Re: jetty/actors performance question tangentially related to lift

2009-11-12 Thread David Pollak
This is getting off-topic but... I think the issue is that there's a single connection or a single thread accessing MongoDB. I'd suggest trying a connection pool to MongoDB or to otherwise see why the MongoDB stuff is not getting parallelized. Also, Scala Actors do a lot of fancy stuff in te

[Lift] Re: Changes to transaction handling since M6?

2009-11-12 Thread David Pollak
Kris, There was a bunch of changes in the net.liftweb.mapper.DB code for transaction management, but I don't think that would impact JPA. Also, in M7, there were changes in how RequestVars are handled during Ajax requests... basically, state is snapshotted when the Ajax request is created and the

[Lift] Changes to transaction handling since M6?

2009-11-12 Thread Kris Nuttycombe
Hi, all (Derek! :), Have there been significant changes in how transactions are handled by lift-jpa since M6? Due to the rearrangement of the repository, I'm having a hard time figuring out if the code has changed. I have a repeatable issue that shows up when changing between M6 and SNAPSHOT whe

[Lift] Re: jetty/actors performance question tangentially related to lift

2009-11-12 Thread Lincoln
Hi, thank you very much for your help so far I really appreciate it. Apologies in advance if this thread has become inappropriate since it's not directly related to Lift. Just let me know if that's the case and I will attempt to solve this problem another way. But, I'm hoping you can help me som

[Lift] Re: 503 for url: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

2009-11-12 Thread David Pollak
On Wed, Nov 11, 2009 at 4:07 PM, ctrlspace wrote: > > Sorry for what may seem like a stupid question, but I am very new to > scala/lift. > > PCDataXmlParser solved my issue with w3 dtd but I am now getting a > parse error when I get a http stream. > It's looking like what you are trying to parse

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-12 Thread David Pollak
the issue is the new debugging help screen in dev mode got in the way of the passing not found... so... package services import net.liftweb.http._ import net.liftweb.mapper._ import net.liftweb.util._ import java.sql.{Connection, DriverManager} class Boot extends Bootable { def boot { *Lif

[Lift] Re: Minor Bug? MappedString.valUnique should return one FieldError

2009-11-12 Thread David Pollak
Could you open a ticket for it? On Wed, Nov 11, 2009 at 11:53 AM, jon wrote: > > Hi, > > I'm currently adding a uniqueness requirement to a field, but there > are duplicate entries (for empty string) in my database already. > Currently valUnique maps each match it found to a FieldError, but > sh

[Lift] Re: Props filename hazzle

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 3:57 AM, Cornelius wrote: > > Hi all, > > this may be somewhat outdated but I spent some time to figure out how > to specify different properties with java-properties files: > > The doc at http://scala-tools.org/scaladocs/liftweb/1.0/ says, that > the filename should be so

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
got it. I was mixing metaphors. On Thu, Nov 12, 2009 at 5:41 PM, David Pollak wrote: > > > On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman wrote: > >> Is it that I am putting things on a Queue from within an the Calculator >> Actor and having the CometActor retrieve them from the Queue? Is that the

[Lift] lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-12 Thread Alex Boisvert
Can one of our resident Maven experts quickly look at: http://github.com/dpp/liftweb/issues/#issue/166 I took a brief look at the poms but couldn't figure why Maven was including classes from lift-common and lift-actor into lift-webkit. It is a feature of the maven-bundle-plugin? I can take care

[Lift] Re: CometActor and render

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman wrote: > Is it that I am putting things on a Queue from within an the Calculator > Actor and having the CometActor retrieve them from the Queue? Is that the > problem? I will read up on actors but it would help if you could tell me > (if only briefly)

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Thanks. On Thu, Nov 12, 2009 at 5:32 PM, David Pollak wrote: > > > On Thu, Nov 12, 2009 at 2:16 PM, Jack Widman wrote: > >> Will do. One more small question How do I send a message to the Comet >> Actor from another class? Can the CometActor be an object instead of a >> class? In the code >> > >

[Lift] Re: CometActor and render

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 2:16 PM, Jack Widman wrote: > Will do. One more small question How do I send a message to the Comet Actor > from another class? Can the CometActor be an object instead of a class? In > the code > Lift instantiates a new CometActor each time it needs one. If you have a si

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Is it that I am putting things on a Queue from within an the Calculator Actor and having the CometActor retrieve them from the Queue? Is that the problem? I will read up on actors but it would help if you could tell me (if only briefly) what you saw about my actor code that is wrong. Thanks. On

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Will do. One more small question How do I send a message to the Comet Actor from another class? Can the CometActor be an object instead of a class? In the code X ! messageToCometActor, what is X? I don't have a variable that holds the instance of the CometActor. On Thu, Nov 12, 2009 at 5:12 PM,

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-12 Thread oshyshko
Hello David, Here is source code. http://github.com/oshyshko/lift_vs_blazeds 1. Run it via: $ mvn jetty:run-exploded 2. Go to http://localhost:8080/ You should see a SWF with a text field and a button (you will need Flash Player 10): [Kaboom!] (Say it) 3. Press "Say it" 4. Watch Jetty's repl

[Lift] Re: CometActor and render

2009-11-12 Thread David Pollak
Jack, The issues you're seeing are not Lift related. You are not using Actors correctly. Please see Philipp Haller's preso on Actors: http://lamp.epfl.ch/~phaller/doc/ScalaActors.pdf Please also look at the Actor chapters in Beginning Scala or Programming in Scala. Thanks, David On Wed, Nov

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Ok. I actually had this problem before I upgraded to M6. On Thu, Nov 12, 2009 at 5:03 PM, David Pollak wrote: > Jack, > > Your pom.xml file mixes Scala 2.7.3, Lift 1.0 and Lift 1.1-M6... this > doesn't work. > > You have to be running with the same version of Lift. > > I'll look at the actual co

[Lift] Re: CometActor and render

2009-11-12 Thread David Pollak
Jack, Your pom.xml file mixes Scala 2.7.3, Lift 1.0 and Lift 1.1-M6... this doesn't work. You have to be running with the same version of Lift. I'll look at the actual code and report more in a little while. Thanks, David On Wed, Nov 11, 2009 at 8:26 PM, Jack Widman wrote: > David, > > I ha

[Lift] Re: How do you set disabled/readonly attributes from a snippet?

2009-11-12 Thread Ross Mellgren
Oh I didn't mean that you need to import the implicit, just that inside SHtml, the implicit called pairToUnprefixed is being called. David's solution is correct using Box like I exampled. I didn't check the type signature for SHtml.text, so didn't realize it only took (String, String), not (

[Lift] Re: problems with tomcat

2009-11-12 Thread David Pollak
Scala is very, very, super ultra mega version fragile. This means that code compiled with 2.7.5 will not work with code compiled with 2.7.7 and vice versa. So, in your pom.xml file, please set your scala version to 2.7.5 (nothing else... not 2.7.4, not 2.7.7) and lift to 1.0.2 Then mvn clean tom

[Lift] Re: How do you set disabled/readonly attributes from a snippet?

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 11:49 AM, Jim Barrows wrote: > I'm importing HttpHelpers, and the implicit is not there. > Did this change for M7? I think what you want is: "firstName" -> (SHtml.text(person.firstName, person.firstName = _) % ("id" -> "firstName") % ("disabled" -> disabledAttr)) >

[Lift] Re: New Milestone coming soon

2009-11-12 Thread David Pollak
On Wed, Nov 11, 2009 at 3:40 PM, Jim McBeath wrote: > > OracleDriver doesn't work with CRUDify when attempting to view a > list of entries, it gets an SQL error due to use of LIMIT/OFFSET, > which Oracle does not support. Defining brokenLimit_? = true > in OracleDriver makes it work for me. I c

[Lift] Re: CometActor and render

2009-11-12 Thread jack
David, I hope its clear from the code what the problem is. If you want me to, I will give a more detailed description of how the code is supposed to work. Jack On Nov 11, 11:26 pm, Jack Widman wrote: > David, > > I have attached my code. It runs but does not behave as I intended it to. > The c

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-12 Thread Naftoli Gugenheim
What's the advantage/purpose over they method I chose? On Thu, Nov 12, 2009 at 4:36 PM, Naftoli Gugenheim wrote: > Have you ever used Dumbster? > > > On Thu, Nov 12, 2009 at 2:59 PM, Derek Chen-Becker > wrote: > >> I would like to see an integrated dumbster test. You can pick an arbitrary >> por

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-12 Thread Naftoli Gugenheim
Have you ever used Dumbster? On Thu, Nov 12, 2009 at 2:59 PM, Derek Chen-Becker wrote: > I would like to see an integrated dumbster test. You can pick an arbitrary > port to run the test on just by attempting to bind and iterating until you > succeed. Something (roughly) like this: > > def openSm

[Lift] Re: New Milestone coming soon

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 11:37 AM, Hannes wrote: > Hi David, > > I wrote you a message about the "CometActor received shutdown" thing. I'm > almost sure, that this is related to M7, but I've no idea, why or what. > Did you read my response? This message is normal and expected. > > kind regard

[Lift] Re: form input tag name values changed when moving from M6 to M7

2009-11-12 Thread Alex Boisvert
Wouldn't it be better to provide a unique identifier directly in the source for all elements that require testing? And I don't mean somebody inputting a unique id manually everywhere but instead using a text processing tool on your codebase that would automatically inject unique ids where desired.

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV
Another potentially helpful detail is that I get the same liftFilter error when running on a local jetty server through maven as I do when running on tomcat (also through maven). I am executing a clean command before running the web app each and every time. ... 2009-11-12 16:10:05.833::WARN: fa

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
I did and its actually in the code I attached. In one place I use Dispatch and in another place I use httpclient directly. I intend to use Dispatch for everything. On Thu, Nov 12, 2009 at 4:05 PM, Randinn wrote: > > I'm not trying to change the subject but I was wondering if you looked > at Data

[Lift] Re: CometActor and render

2009-11-12 Thread Randinn
I'm not trying to change the subject but I was wondering if you looked at Databinder Dispatch http://databinder.net/dispatch/About for your url calls? On Nov 12, 3:26 pm, Jack Widman wrote: > David, > > I have attached my code. It runs but does not behave as I intended it to. > The code does a w

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV
I just tried to run the same code that used to work with Lift-1.0.1 and Scala 2.7.5 with my updates to Lift 1.0.1 and Scala 2.7.7 and I got the following error: [INFO] [tomcat:run {execution: default-cli}] [INFO] Running war on http://localhost:8080/portal [INFO] Creating Tomcat server configurat

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Francois Armand
Wilson MacGyver a écrit : > You feel this confident about Scala 2.8 release by Jan? > > I'm curious because Scala 2.8 schedule seem to be > a fairly moving target. My finger is telling me that we are going to see a "release candidate for the release candidate" hummm tomorrow ;) -- Francois A

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Francois Armand
David Pollak a écrit : > I'm going to get the "in earnest" Lift -> 2.8 port rolling tomorrow. > Hopefully, I'll have a branch that tracks the current Lift code running > by mid next week. That's so a great new :) > We are *very* serious and *VERY* (lots of emphasis) committed to Scala > 2.8

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV
On a side note, while I'm installing Lift 1.0.2 with Scala2.7.5, I always execute a "clean" command before the mvn package. However, I also need to execute a "clean" in eclipse before the mvn package works properly. Otherwise, I get this error: --

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-12 Thread Derek Chen-Becker
I would like to see an integrated dumbster test. You can pick an arbitrary port to run the test on just by attempting to bind and iterating until you succeed. Something (roughly) like this: def openSmtpServer (startPort : Int, endPort : Int) : (Int,SimpleSmtpServer) = { var port = startPort va

[Lift] Re: How do you set disabled/readonly attributes from a snippet?

2009-11-12 Thread Jim Barrows
I'm importing HttpHelpers, and the implicit is not there. Did this change for M7? On Mon, Nov 9, 2009 at 6:41 PM, Ross Mellgren wrote: > > Use None (Option) or Empty (Box) as the value of the attribute -- this > will cause the pairToUnprefixed implicit that is being used inside > SHtml to not ge

[Lift] Re: problems with tomcat

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 11:36 AM, DavidV wrote: > > I don't appear to have any conflicting jars in my TOMCAT_HOME/common/ > lib folder, however, I am now realizing that I have a postgres > jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in > my webapp. Perhaps that is the probl

[Lift] Re: New Milestone coming soon

2009-11-12 Thread Hannes
Hi David, I wrote you a message about the "CometActor received shutdown" thing. I'm almost sure, that this is related to M7, but I've no idea, why or what. kind regards Tobias > Folks, > > There are two critical issues with M7: > > * Issue 164 http://github.com/dpp/liftweb/issues#issue/164 >

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV
I don't appear to have any conflicting jars in my TOMCAT_HOME/common/ lib folder, however, I am now realizing that I have a postgres jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in my webapp. Perhaps that is the problem? I'll check that out. I am using Lift 1.0.1 with Scala

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 11:16 AM, Wilson MacGyver wrote: > > You feel this confident about Scala 2.8 release by Jan? > Maybe Scala 2.8 gets pushed back a little and we push Lift 1.1 back a little. If Scala 2.8 beta (which is coming very soon) is a complete disaster (I give this a < 10% probabili

[Lift] Re: problems with tomcat

2009-11-12 Thread David Pollak
What version of Lift are you using? If it's Lift 1.1-M7 or 1.1-SNAPSHOT, please make sure you've got the Scala version set to 2.7.7 If you're using Eclipse for development, please make sure to do a mvn *clean * package to build your WAR file. The clean phase is super important. On Thu, Nov 12,

[Lift] Re: problems with tomcat

2009-11-12 Thread ben
Have you got any conflicting jars in TOMCAT_HOME/lib ? --~--~-~--~~~---~--~~ 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 e

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Timothy Perrett
Its been a moving target since June ;-) Its gotta stop sometime, right? Cheers, Tim On 12 Nov 2009, at 19:16, Wilson MacGyver wrote: > > You feel this confident about Scala 2.8 release by Jan? > > I'm curious because Scala 2.8 schedule seem to be > a fairly moving target. > > On Thu, Nov 12

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Wilson MacGyver
You feel this confident about Scala 2.8 release by Jan? I'm curious because Scala 2.8 schedule seem to be a fairly moving target. On Thu, Nov 12, 2009 at 2:13 PM, David Pollak wrote: > > We are *very* serious and *VERY* (lots of emphasis) committed to Scala 2.8. > I'm expecting that Lift 1.1 sh

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 10:37 AM, Francois Armand wrote: > > Hello guys, > > I'm on the process of choosing a web framework for one of my (scala 2.8) > project. I know Tapestry 5, but as we are likely to have a lot of AJAX > to deal with, and T5 is not the best tool for that. I looked at gwt, but

[Lift] problems with tomcat

2009-11-12 Thread DavidV
I am having some issues deploying my Lift web application to a tomcat server. When I run tomcat through maven (mvn tomcat:run), the web application works properly and connects to my postgres database. However, when I use mvn package to create a war file which I then deploy to a local tomcat serve

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Timothy Perrett
DPP has a local branch running a crippled version of lift that builds with 2.8 Is there any reason you could not work with 2.7.7 for your dev - it would get you most of the way there until 2.8 is released. Cheers, Tim On 12 Nov 2009, at 18:37, Francois Armand wrote: > > Hello guys, > > I'm

[Lift] Lift under 2.8 timeframe ?

2009-11-12 Thread Francois Armand
Hello guys, I'm on the process of choosing a web framework for one of my (scala 2.8) project. I know Tapestry 5, but as we are likely to have a lot of AJAX to deal with, and T5 is not the best tool for that. I looked at gwt, but I'm not sure I like what I'm seeing. So, Lift could be a great o

[Lift] Re: ManyToMany decision

2009-11-12 Thread Naftoli Gugenheim
Interesting. Did you see mapper.view.ItemsList? - glenn wrote: There is a related issue that if implemented, would certainly make the Mapper framework more robust - that of marking table rows for deletion, rather than deleting them directly. Some RDBMS's hav

[Lift] Re: ManyToMany decision

2009-11-12 Thread Naftoli Gugenheim
I guess it's about two separate things: cascading delete, as you said; and that it should silently skip dead-end joins rather than throwing an error. Note that I'm not aware of an issue with OneToMany cascading deletes (although in order to tell it to, you have to mix in Cascade). What we have

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
There is a related issue that if implemented, would certainly make the Mapper framework more robust - that of marking table rows for deletion, rather than deleting them directly. Some RDBMS's have a built-in marking function, and another function that actually removes rows that have been so marke

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
Naftoli, Isn't this really a cascading delete issue and not one isolated to ManyToMany situations? Most ORM solutions allow for cascading deletes. Such a feature could be added to the Mapper class, itself, and hold a list of foreign key assignments that the delete function could iterate over, if

[Lift] Re: Changes to scala-tools.org Hudson

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 7:58 AM, Derek Chen-Becker wrote: > Should I make these changes for the ScalaJPA project as well? Yes. > Do we need to notify all of the people who are hosting projects on > scala-tools.org, or is everyone pretty much on this list? > I think Josh has been talking to fo

[Lift] Re: Changes to scala-tools.org Hudson

2009-11-12 Thread Derek Chen-Becker
Should I make these changes for the ScalaJPA project as well? Do we need to notify all of the people who are hosting projects on scala-tools.org, or is everyone pretty much on this list? Derek On Fri, Nov 6, 2009 at 11:23 AM, Josh Suereth wrote: > Great, Thanks! > > > On Fri, Nov 6, 2009 at 11:2

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
Tim, It can be shown correctly now! It's so cool and easy to use. Thank you very much ! Cheers, Neil On Nov 12, 9:08 pm, Timothy Perrett wrote: > Its a string because you havent properly escapped it... note that the code i > sent used the """CONTENT""" markers, thus you need to e

[Lift] Re: [TIP] Customizing output

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 3:44 AM, Eduardo Costa wrote: > > I published this tip on my blog (http://extremejava.tpk.com.br/ > 2009/11/12/customizing-liftwebs-errorwarningnotice-messages/), > but, > I'll pu

[Lift] Re: How to use Box

2009-11-12 Thread David Pollak
On Thu, Nov 12, 2009 at 5:53 AM, Ferdinand Chan wrote: > > David, > > Thanks for the blog entry and it does a great job in explaining how > Option works and how to use it. > > May I suggest that we add a link to this blog post on Lift Wiki??? > Correct me if I'm wrong but I think most newbie to S

[Lift] Re: How to use Box

2009-11-12 Thread Ferdinand Chan
Opyate, Thanks for the example. But my scala knowledge seems not good enough to understand it. Will try to re-read it couple of times and try to understand it Cheers, Ferdinand On Nov 12, 8:06 pm, opyate wrote: > Hey Ferdinand, > > Here are a couple of examples: > > import _root_.net.liftweb

[Lift] Re: How to use Box

2009-11-12 Thread Ferdinand Chan
David, Thanks for the blog entry and it does a great job in explaining how Option works and how to use it. May I suggest that we add a link to this blog post on Lift Wiki??? Correct me if I'm wrong but I think most newbie to Scala / Lift may wonder and puzzle how Box / Option works. I know you'

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Timothy Perrett
Its a string because you havent properly escapped it... note that the code i sent used the """CONTENT""" markers, thus you need to escape them properly. Cheers, Tim On 12 Nov 2009, at 12:02, Neil.Lv wrote: > Why the " flashSrc" is a string in the Script ? Maybe it should be "/ > flash/test.sw

[Lift] Props filename hazzle

2009-11-12 Thread Cornelius
Hi all, this may be somewhat outdated but I spent some time to figure out how to specify different properties with java-properties files: The doc at http://scala-tools.org/scaladocs/liftweb/1.0/ says, that the filename should be somewhat of this: modeName.hostName.userName.filename.extension

[Lift] [TIP] Customizing output

2009-11-12 Thread Eduardo Costa
I published this tip on my blog (http://extremejava.tpk.com.br/ 2009/11/12/customizing-liftwebs-errorwarningnotice-messages/), but, I'll put here as a quick reference for other liftweb users: just create a snippet named "msgs". It can be like this one: package mypkg.snippet class Msgs { def msg

[Lift] Re: How to use Box

2009-11-12 Thread opyate
Hey Ferdinand, Here are a couple of examples: import _root_.net.liftweb.common._ val boxExample: Box[Int] => Int = { case Full(x) => x case Empty => 0 } def boxExample2(boxedInt: Box[Int]): Int = { boxedInt.map({i => i }) openOr 0 } On Nov 12, 12:28 am, Naftoli G

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
Tim, Here is the html code when i use the code in my Snippet, but it doesn't work. ### Code in the Snippet ### var flashSrc = "/flash/test.swf" var flashVar = "{name1=hello&name2=world&name3=foobar}" val script = """swfobject.embedSWF('" + flashSrc + "', 'myContent', '300', '120', '9.0.0

[Lift] Re: "Content is not allowed in prolog" Parsing an XML

2009-11-12 Thread GA
Sorry I've sent this email to the wrong list. On Nov 12, 2009, at 12:24 PM, GA wrote: > > Hello guys, > > I have the following scala code line: > > XML.load(new java.io.InputStreamReader(conn.getInputStream, "UTF-8")) > > I am downloading and parsing RSS feeds. This line parses most of the

[Lift] "Content is not allowed in prolog" Parsing an XML

2009-11-12 Thread GA
Hello guys, I have the following scala code line: XML.load(new java.io.InputStreamReader(conn.getInputStream, "UTF-8")) I am downloading and parsing RSS feeds. This line parses most of the sites without problems but some sites give the following error: Content is not allowed in prolog Any id

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Timothy Perrett
Neil, Try this: import net.liftweb.http.js._ import net.liftweb.http.js.JE._ import net.liftweb.http.js.JsCmds._ val script = """swfobject.embedSWF('" + flashSrc + "','myContent', '300', '120', '9.0.0', 'expressInstall.swf', '" + flashVar + "');""" def whatever(xhtml: NodeSeq):

[Lift] Re: XmlResponse with cookies

2009-11-12 Thread Timothy Perrett
Right, I agree that named arguments would be preferable but thats a 2.8 feature and the current idiom implemented by other HttpResponse classes is to have overloaded apply methods - hence the suggestion :) If its functionality that you want right now, then sure, go for the apply route - otherw

[Lift] How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
Hi all, How to Embed the flash dynamic in Snippet in the Lift? I use the swfobject to embed my flash and want to specify the flashVar dynamic, but this is doesn't work! Here is the code in the Snippet: The flashSrc can shown correctly in the index page, but the falshvar doesn't work!