[Lift] Re: Lift's CometActor and multiple dynamic charts

2009-10-16 Thread David Pollak
On Thu, Oct 15, 2009 at 4:05 PM, Java1Guy wrote: > > FWIW - I went with choice #1. > Seems like CometActor name method doesn't really get the value of the > name parameter in the XML :( > how were you testing this? > Appended uniqueId on all the variables and functions - worked just > fine! >

[Lift] Re: Including the class name in the JSON field

2009-10-16 Thread David Pollak
http://github.com/dpp/liftweb/issues#issue/108 On Thu, Oct 15, 2009 at 9:05 AM, Derek Chen-Becker wrote: > I think that's reasonable, as long as the key for that field is well-chosen > to avoid potential conflicts. When I worked with Marco Behler on ScaJorp I > think that we found a de facto stan

[Lift] Re: JSON... deserializing lists of parameterized case classes

2009-10-16 Thread David Pollak
http://github.com/dpp/liftweb/issues#issue/108 On Fri, Oct 16, 2009 at 12:16 AM, Joni Freeman wrote: > > Hi David, > > Please file a ticket, serialization does not support polymorphic Lists > yet. It requires that we add type information into JSON. Something > like: > > { > "who": [ >{ >

[Lift] Re: Detecting when user has left a page

2009-10-16 Thread David Pollak
Sorry. You can set CometActor.lifespan = Full(1 minute) and the CometActor will be destroyed 1 minute after it's not on a page anymore. This is the best resolution I can get to. On Sep 22, 1:46 pm, David Pollak wrote: > On Tue, Sep 22, 2009 at 1:37 PM, Xavi Ramirez wrote: > > > Hello, > > > I

[Lift] Re: Wizard code in master

2009-10-16 Thread Randinn
That would be a great added feature, sorry for the late comment on the subject. Ah, full disclosure, I do not care for green... On Sep 12, 4:14 am, David Pollak wrote: > The wizard stuff is in the lift-wizard package.  Right now, it's random > thoughts that are forming into something that will b

[Lift] Re: Newbee question Datamapper

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 9:42 AM, Naftoli Gugenheim wrote: > > I think there is support somewhere in the MappedField hierarchy for a > MappedField that represents to database columns. Take a look at > MappedPassword. > Having a field represent two columns (as MappedPassword does) is a huge piece o

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread javier
I would love one too, thanks! javier --~--~-~--~~~---~--~~ 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: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Charles F. Munat
I was thinking more that if you're duplicating efforts, why not use those efforts to help Jorge move ScalaTime forward simultaneously? I haven't found any problems with ScalaTime being pre-1.0. It just means that not all Joda functionality is available in ScalaTime, and sometimes you need to u

[Lift] Re: [Sorta Not Related] Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Ross Mellgren
can haz invite? sorry sorry. If you have any spare, I'd love to try it, but at a lower priority than other people. Thanks, -Ross On Oct 15, 2009, at 3:18 PM, Jim Barrows wrote: > Who wants a wave invite? > Not sure how long Google will take to process them.. but I have some! > > I just adde

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Indrajit Raychaudhuri
and me, and me ! On 17/10/09 12:34 AM, Marius wrote: > > pick me, pick me ! > > On Oct 15, 10:18 pm, Jim Barrows wrote: >> Who wants a wave invite? >> Not sure how long Google will take to process them.. but I have some! >> >> I just added the lifehack list to my wave account, and I think firefo

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Marius
pick me, pick me ! On Oct 15, 10:18 pm, Jim Barrows wrote: > Who wants a wave invite? > Not sure how long Google will take to process them.. but I have some! > > I just added the lifehack list to my wave account, and I think firefox > nearly died.  Quite amusing.. in many ways > > -- > James

[Lift] Re: Newbee question Datamapper

2009-10-16 Thread Naftoli Gugenheim
I think there is support somewhere in the MappedField hierarchy for a MappedField that represents to database columns. Take a look at MappedPassword. - harryh wrote: Make MyMappedTimeSpan a trait: trait MyMappedTimeSpan[T <:Mapper[T]](val owner: T) { obj

[Lift] Re: Newbee question Datamapper

2009-10-16 Thread harryh
Make MyMappedTimeSpan a trait: trait MyMappedTimeSpan[T <:Mapper[T]](val owner: T) { object from extends MappedTime[MapperType](this.asIntanceOf [MatterType]) object to extends MappedTime[MapperType](this.asIntanceOf [MatterType]) } And then use it like so: class DBObject extends LongKeyedM

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
You were right. I was making things complicated. the mvn command I was writing was wrong... I stopped and started all over. I retyped it from scratch and I found the errors. Thanks for your help guys. My project works in 1.1-M6 just fine. Cheers, GA On Oct 16, 2009, at 5:04 PM, David Polla

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 8:18 AM, Naftoli Gugenheim wrote: > > What's exactly the problem if it's pre 1.0? That it may have bugs? > It may have bugs. The APIs may change. Jorge (now that he has a day job) may not continue to maintain it. In general, unless there's a compelling reason, we're not

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Derek Chen-Becker
I haven't even looked at his code yet, so I'll just plug on with straight Joda Time. On Fri, Oct 16, 2009 at 9:01 AM, David Pollak wrote: > > > On Fri, Oct 16, 2009 at 3:46 AM, Timothy Perrett > wrote: > >> >> I thought we had this discussion in some other thread and because >> scala-time wasn'

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Naftoli Gugenheim
What's exactly the problem if it's pre 1.0? That it may have bugs? - Derek Chen-Becker wrote: Right. Fortunately most of the work setting up Joda Time will make switching to Scala Time pretty simple. Derek On Fri, Oct 16, 2009 at 4:46 AM, Timothy Perrett wro

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 3:46 AM, Timothy Perrett wrote: > > I thought we had this discussion in some other thread and because > scala-time wasn't 1.0 there was a general reluctancy to use it? We > could cherry pick some of the code however; im sure Jorge wouldn't > mind :-) > We can't grab source

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 7:28 AM, GA wrote: > Why is it getting the 2.7.1 version in first place? The pom.xml is created > by maven from the archetype and repository right? > It seems that you created your project against the Lift 1.0 archetype and are try to upgrade it to 1.1-X. Lift 1.0 used S

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Could you please send me a pom.xml example for lift 1.1? Cheers, GA On Oct 16, 2009, at 4:28 PM, GA wrote: > Why is it getting the 2.7.1 version in first place? The pom.xml is > created by maven from the archetype and repository right? > > Is it perhaps some environment setup that I have or

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Why is it getting the 2.7.1 version in first place? The pom.xml is created by maven from the archetype and repository right? Is it perhaps some environment setup that I have or I should have? On Oct 16, 2009, at 4:24 PM, David Pollak wrote: > You have to make sure that the version of Scala i

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 6:07 AM, GA wrote: > I did it. This is the first par of my pom.xml > > 4.0.0 > com.server > Server > 1.1-SNAPSHOT > war > Server > 2007 > > 2.7.1 > > > This is your problem. Maven uses the version of Scala in your pom.xml to compile and that versio

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
You have to make sure that the version of Scala in your pom.xml file is 2.7.5. On Fri, Oct 16, 2009 at 4:40 AM, GA wrote: > Ok, now we have an improvement. I did the following: > > I replaced the following part of my pom.xml: > > > > scala-tools.org > Scala-Tools Maven2 Repos

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Steve Swing
Yes please if you can spare one for me! Thank you! Steve --~--~-~--~~~---~--~~ 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, s

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Juozas
Hi, i would love to try it out:) -Juozas Ogden Nash - "The trouble with a kitten is that when it grows up, it's always a cat." On Fri, Oct 16, 2009 at 3:05 PM, David Bernard wrote: > > Correction, I receive my wave account this mor

[Lift] Re: [Sorta Not Related] Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Eros Candelaresi
Hi, I'm be interested too. So if you still have invitations left... :) Regards, Eros Jim Barrows schrieb: > Who wants a wave invite? > Not sure how long Google will take to process them.. but I have some! > > I just added the lifehack list to my wave account, and I think firefox > nearly died.

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
I did it. This is the first par of my pom.xml 4.0.0 com.server Server 1.1-SNAPSHOT war Server 2007 2.7.1 scala-tools.org Scala-Tools Maven2 Repository http://scala-tools.org/repo-releases scala-tools.org

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Derek Chen-Becker
Right. Fortunately most of the work setting up Joda Time will make switching to Scala Time pretty simple. Derek On Fri, Oct 16, 2009 at 4:46 AM, Timothy Perrett wrote: > > I thought we had this discussion in some other thread and because > scala-time wasn't 1.0 there was a general reluctancy to

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Try creating a blank project, not a basic one... Lets see what happens then. Cheers, Tim On 16 Oct 2009, at 13:39, GA wrote: > More errors. Shouldn't this be working right after the creation? I > am talking about brand new projects. It is absolutely empty. It has > only the delivered User

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
More errors. Shouldn't this be working right after the creation? I am talking about brand new projects. It is absolutely empty. It has only the delivered User model. [WARNING] Multiple versions of scala libraries detected! [INFO] includes = [**/*.scala,] [INFO] excludes = [] [INFO] Compiling

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Yes, the error is important. Can you try a: mvn clean jetty:run Cheers, Tim On 16 Oct 2009, at 12:40, GA wrote: > Ok, now we have an improvement. I did the following: > > I replaced the following part of my pom.xml: > >>> >>> >>> scala-tools.org >>> Scala-Tools Maven2 Repos

[Lift] Newbee question Datamapper

2009-10-16 Thread hyperion
Hello, I tried this: class MyMappedTimeSpan[T <:Mapper[T]](val owner: T){ import net.liftweb.util._ import net.liftweb.http.S import xml.NodeSeq val from = new MappedTime(owner) val to = new MappedTime(owner) } class DBObject extends LongKeyedMapper[Bericht] with IdPK {

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread David Bernard
Correction, I receive my wave account this morning (after 2 weeks). So no need to invite me. Thanks On Fri, Oct 16, 2009 at 14:02, David Bernard wrote: > I requested an account (for dev) but no reply. So If you can invite me. > > thanks. > > On Fri, Oct 16, 2009 at 13:50, Markus Kolb wrote: >>

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread David Bernard
I requested an account (for dev) but no reply. So If you can invite me. thanks. On Fri, Oct 16, 2009 at 13:50, Markus Kolb wrote: > > > > On Oct 15, 9:18 pm, Jim Barrows wrote: >> Who wants a wave invite? > > I'm following the wave development, too. > Would be nice to try it out. > > Markus >

[Lift] Re: Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Markus Kolb
On Oct 15, 9:18 pm, Jim Barrows wrote: > Who wants a wave invite? I'm following the wave development, too. Would be nice to try it out. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To pos

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Ok, now we have an improvement. I did the following: I replaced the following part of my pom.xml: >> >> >> scala-tools.org >> Scala-Tools Maven2 Repository >> http://scala-tools.org/repo-releases >> >> with: scala-tools http://scala-too

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository. Make your repositories node look like the one I pasted and you should find your project working ones more. Cheers, Tim On 16 Oct 2009, at 11:59, GA wrote: > This is what it comes with my pom.xml > > > > scala-tool

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Indrajit Raychaudhuri
Hmm, as Tim pointed out, ensure that you have another section for the snapshots. Looks like that's missing in your pom.xml Put this one within section and you'd be good to go: scala-tools-snapshots http://scala-tools.org/repo-snapshots Cheers, Indrajit On 16/10/09 4:29 PM, GA wrote

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
This is what it comes with my pom.xml scala-tools.org Scala-Tools Maven2 Repository http://scala-tools.org/repo-releases scala-tools.org Scala-Tools Maven2 Repository http://scala-tools.org/repo-releases It is ok?

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Timothy Perrett
I thought we had this discussion in some other thread and because scala-time wasn't 1.0 there was a general reluctancy to use it? We could cherry pick some of the code however; im sure Jorge wouldn't mind :-) Cheers, Tim On 16 Oct 2009, at 11:30, Charles F. Munat wrote: > > You have looke

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
You must be missing the correct repository tag. Check that you have: scala-tools http://scala-tools.org/repo-snapshots scala-tools-releases http://scala-tools.org/repo-releases Cheers, Tim On 16 Oct 2009, at 10:58, GA wrote: > Thanks

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Charles F. Munat
You have looked at Scala Time, right? I think some of this may already be implemented there, and it would probably be better to extend that rather than reinvent it. But maybe I'm thinking about something else? http://github.com/jorgeortiz85/scala-time Chas. Derek Chen-Becker wrote: > Oh, I pl

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Thanks for the info. I downloaded all the jars again, but it did not solved my problem. Now for some reason, if I initiate everything from scratch even with version 1.0 it does not work anymore. If I add the entry: net.liftweb lift-mapper 1.1-SNAPSHOT >

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Just remove ~/.m2 The next time you make a maven call it'll then download all the new JAR files. Cheers, Tim On 16 Oct 2009, at 09:35, GA wrote: > Is there any way to reset maven's repository? I think there is > something corrupt because the behavior is really strange. I think > this is t

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Is there any way to reset maven's repository? I think there is something corrupt because the behavior is really strange. I think this is the cause of my error. Thanks, On Oct 15, 2009, at 5:52 PM, GA wrote: > It is strange. I do not have the entries that you are saying in the > pom.xml fi

[Lift] Re: How much Scala knowledge is needed to start coding a simple blog with Lift?

2009-10-16 Thread Viktor Klang
On Thu, Oct 15, 2009 at 4:41 PM, David Pollak wrote: > > > On Thu, Oct 15, 2009 at 4:18 AM, Viktor Klang wrote: > >> I started Scala 2 years ago by reading the Lift code. >> so DPPs basically responsible for my Scala code... ;) > > > So what you're saying is that you're all my fault... gak. ;-) >

[Lift] Re: JSON... deserializing lists of parameterized case classes

2009-10-16 Thread Joni Freeman
Hi David, Please file a ticket, serialization does not support polymorphic Lists yet. It requires that we add type information into JSON. Something like: { "who": [ { jsonClass = "example.Foo1" ... }, { jsonClass = "example.Foo2" ... } ] } Cheers Joni