[Lift] Re: How to test/TDD lift apps?

2009-07-07 Thread Jeppe Nejsum Madsen
On Mon, Jul 6, 2009 at 6:03 PM, David Pollak wrote: > > > On Mon, Jul 6, 2009 at 1:34 AM, Jeppe Nejsum Madsen > wrote: >> >> On Fri, Jul 3, 2009 at 6:43 PM, David >> Pollak wrote: >> > Jeppe, >> > >> > Once I check in some code (in about 20 minutes), if you run Lift in Test >> > mode (-Drun.mode=

[Lift] Re: Rendering breakdown on Safari

2009-07-07 Thread Kjetil Valstadsve
In the interest of making it useful to search for solutions here, I'll summarize the solution for this problem. Some keywords for good measure: DOM, Safari, Javascript, XHTML, rendering collapses. And, of course, it turns out to be utterly trivial. The XHTML served to the browser was malformed, i

[Lift] liftweb.net is down...

2009-07-07 Thread Timothy Perrett
Hey guys, Any idea why liftweb.net is down? Thanks Tim --~--~-~--~~~---~--~~ 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, sen

[Lift] NPE Problem with User.current in CRUDify action

2009-07-07 Thread Jeppe Nejsum Madsen
Hi, I get an Empty box when using the value of User.current when trying to populate the valid select values for use in a CRUDify edit form: I have this mapped object which I'm trying to edit using CRUDify: class Vehicle extends LongKeyedMapper[Vehicle] with IdPK { [...] object customC

[Lift] Re: Rendering breakdown on Safari

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 1:17 AM, Kjetil Valstadsve wrote: > > In the interest of making it useful to search for solutions here, I'll > summarize the solution for this problem. Some keywords for good > measure: DOM, Safari, Javascript, XHTML, rendering collapses. > > And, of course, it turns out to

[Lift] Re: liftweb.net is down...

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 4:42 AM, Timothy Perrett wrote: > > Hey guys, > > Any idea why liftweb.net is down? > Apache gone wild... it's back up. > > Thanks > > Tim > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 F

[Lift] Re: How to test/TDD lift apps?

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 1:06 AM, Jeppe Nejsum Madsen wrote: > > On Mon, Jul 6, 2009 at 6:03 PM, David > Pollak wrote: > > > > > > On Mon, Jul 6, 2009 at 1:34 AM, Jeppe Nejsum Madsen > > wrote: > >> > >> On Fri, Jul 3, 2009 at 6:43 PM, David > >> Pollak wrote: > >> > Jeppe, > >> > > >> > Once I che

[Lift] Re: How to test/TDD lift apps?

2009-07-07 Thread Jeppe Nejsum Madsen
On Tue, Jul 7, 2009 at 3:30 PM, David Pollak wrote: [...] >> Well, it wasn't :-) I checked my templates and it wasn't there. I can >> see that the lastet templates generated by the basic archetype does >> have the namespace decl, so I've just added it and everything is fine. >> >> My templates w

[Lift] Re: How to test/TDD lift apps?

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 6:37 AM, Jeppe Nejsum Madsen wrote: > > On Tue, Jul 7, 2009 at 3:30 PM, David > Pollak wrote: > > [...] > > >> Well, it wasn't :-) I checked my templates and it wasn't there. I can > >> see that the lastet templates generated by the basic archetype does > >> have the namespa

[Lift] Re: liftweb.net is down...

2009-07-07 Thread Timothy Perrett
Sweet - thanks for fixing that! On Jul 7, 2:28 pm, David Pollak wrote: > On Tue, Jul 7, 2009 at 4:42 AM, Timothy Perrett > wrote: > > > > > Hey guys, > > > Any idea why liftweb.net is down? > > Apache gone wild... it's back up. > > > > > Thanks > > > Tim > > -- > Lift, the simply functional web

[Lift] Re: MappedDecimal and nulls

2009-07-07 Thread Derek Chen-Becker
I'll check in a fix very shortly. On Mon, Jul 6, 2009 at 4:16 PM, Jeppe Nejsum Madsen wrote: > > Hi, > > I seem to get errors when trying to read a MappedDecimal that is NULL in > the > db: > > Message: java.lang.NullPointerException > > > net.liftweb.mapper.MappedDecimal$$anonfun$buildSetActua

[Lift] Re: MappedDecimal and nulls

2009-07-07 Thread Derek Chen-Becker
Done. Hudson should build it and have it in the repo soon. On Tue, Jul 7, 2009 at 9:32 AM, Derek Chen-Becker wrote: > I'll check in a fix very shortly. > > > On Mon, Jul 6, 2009 at 4:16 PM, Jeppe Nejsum Madsen wrote: > >> >> Hi, >> >> I seem to get errors when trying to read a MappedDecimal that

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread Derek Chen-Becker
I have no idea how that would act like that. The definition of User.currentUser is: 1. private object curUser extends RequestVar[Box[ModelType]](currentUserId.flatMap(id => getSingleton.find(id))) 2. 3. 4. def currentUser: Box[ModelType] = curUser.is So the only way that you

[Lift] Scala resources

2009-07-07 Thread Kevin Wright
I'm trying to compile a catalogue of online resources: websites, blogs, wikis, open source projects, articles, etc. relating to scala If anyone has any links for suitable content, especially material that may not be well known, then please share! --~--~-~--~~~---~--~--

[Lift] Re: Scala resources

2009-07-07 Thread Timothy Perrett
http://blog.getintheloop.eu/ Im writing a *lot* about scala and lift - especially how-to type tutorials. Cheers, Tim On 07/07/2009 16:48, "Kevin Wright" wrote: > I'm trying to compile a catalogue of online resources: websites, blogs, wikis, > open source projects, articles, etc. relating to

[Lift] mirroring the lift mailing list to nabble?

2009-07-07 Thread James Strachan
Just an idle thought. I wonder if folks wanted to mirror the mailing list to nabble? I mused on twitter today about the relative activity of the various programming languages on nabble... http://www.nabble.com/Programming-Languages-f13993.html then Graham Rocher spotted that Ruby also included R

[Lift] Re: mirroring the lift mailing list to nabble?

2009-07-07 Thread James Strachan
DOH! Didn't' think to search for liftweb! Its already there... http://www.nabble.com/liftweb-f30586.html its just not in any categories. Whoever's admin, fancy adding it to Scala & Web Development Frameworks? 2009/7/7 James Strachan : > Just an idle thought. I wonder if folks wanted to mirror t

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread David Pollak
Are you doing this as part of an HTTP request or at some other point in the execution of your code (e.g., a background processing thread)? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen wrote: > > Hi, > > I get an Empty box when using the value of User.current when trying to > populate the v

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread Jeppe Nejsum Madsen
Just a normal request from a link in a CRUDify list Sendt fra min iPhone Den 07/07/2009 kl. 18.49 skrev David Pollak : > Are you doing this as part of an HTTP request or at some other point > in the execution of your code (e.g., a background processing thread)? > > On Tue, Jul 7, 2009 at 5:53

[Lift] Re: mirroring the lift mailing list to nabble?

2009-07-07 Thread David Pollak
I've started the process of getting me added as admin for this list on Nabble. Thanks for the suggestion. On Tue, Jul 7, 2009 at 9:39 AM, James Strachan wrote: > > DOH! Didn't' think to search for liftweb! Its already there... > > http://www.nabble.com/liftweb-f30586.html > > its just not in any

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread Jeppe Nejsum Madsen
Yes its Strange If i put The code from currentUser into my method it works (This is my workaround for now) so the user is in the db. So it looks looks like a problem with The RequestVar not being initialized correctly I havent looked into The request processing cycle yet but this is next on

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-07 Thread Jonas Bonér
No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett : > > Jonas, > > Did you roll this into master? What's its status? > > Cheers, Tim > > On Jun 10, 4:46 pm, James Strachan wrote: >> 2009/6/9 Jonas Bonér : >> >> >> >> > 2009/6/9

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-07 Thread Meredith Gregory
Jonas, i'm going to begin playing with it after i've finished the conversion of the DSL stuff to scala-query. The JTA monad should just fit with scala-query. Best wishes, --greg On Tue, Jul 7, 2009 at 10:18 AM, Jonas Bonér wrote: > > No I haven't. Should I? Is everyone happy with it? > Have a

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-07 Thread Timothy Perrett
Hey Jonas, I have no real use case to test it out - I was just interested in its status as conceptually it was very very clever and wondered where you were too with it. I think Greg or Derek are most likely to be able to give you valuable feedback as I believe they are using JTA already. Cheers

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-07 Thread Jonas Bonér
Thanks Greg. I would love to get your feedback on it. 2009/7/7 Meredith Gregory : > Jonas, > > i'm going to begin playing with it after i've finished the conversion of the > DSL stuff to scala-query. The JTA monad should just fit with scala-query. > > Best wishes, > > --greg > > On Tue, Jul 7, 20

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-07 Thread Jonas Bonér
Thanks Tim. Thanks for staying on top of it. Derek has already looked at it and seemed to like it. But I'll wait until I get Greg's feedback. 2009/7/7 Timothy Perrett : > > > Hey Jonas, > > I have no real use case to test it out - I was just interested in its status > as conceptually it was very

[Lift] Maven Lift archetype errors

2009-07-07 Thread glenn
Creating a lift project out of the latest lift-archetype-basic, versions 1.1-SNAPSHOT from the snapshot repo and 1.1-M3 from the releases, generates a number of compilation errors. Also, the and params for the maven jetty plugin have been removed. --~--~-~--~~~---~-

[Lift] Re: Maven Lift archetype errors

2009-07-07 Thread David Pollak
Can you provide the exact line you typed on the command line? Are you Windows, Linux or Mac? I'll try to reproduce the problem in a clean VMWare instance. On Tue, Jul 7, 2009 at 11:33 AM, glenn wrote: > > Creating a lift project out of the latest lift-archetype-basic, > versions 1.1-SNAPSHOT f

[Lift] Re: Anyone out there using SBT?

2009-07-07 Thread Jonas Bonér
Is there a Swedish Bikini Team? I had no idea. 2009/7/6 Kevin Wright : > Single Bullet Theory, or Swedish Bikini Team ? > > > On Mon, Jul 6, 2009 at 10:07 AM, Timothy Perrett > wrote: >> >> Hey Guys, >> >> Is anyone out there using SBT for their lift projects? if so, how are >> you finding it? >

[Lift] Re: Anyone out there using SBT?

2009-07-07 Thread Jonas Bonér
I looked at SBT 4-5 months ago. Was impressed but couldn't use it due to Java module dep. Don't know if it can build Java now. 2009/7/7 Jonas Bonér : > Is there a Swedish Bikini Team? I had no idea. > > 2009/7/6 Kevin Wright : >> Single Bullet Theory, or Swedish Bikini Team ? >> >> >> On Mon, Jul

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 10:08 AM, Jeppe Nejsum Madsen wrote: > Just a normal request from a link in a CRUDify list > Gee... this is a puzzler. Can you put together a reproducible example for us to test out? > > > Sendt fra min iPhone > > Den 07/07/2009 kl. 18.49 skrev David Pollak >: > > Are yo

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread David Pollak
Okay... I see the code path that could cause this issue. Are you doing any re-writing? Are you accessing User.currentUser in your re-writes? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen wrote: > > Hi, > > I get an Empty box when using the value of User.current when trying to > populate t

[Lift] Re: MappedDecimal and nulls

2009-07-07 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: > Done. Hudson should build it and have it in the repo soon. Thanks! /Jeppe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@go

[Lift] Re: Scala resources

2009-07-07 Thread TylerWeir
http://planetscala.com/ On Jul 7, 12:03 pm, Timothy Perrett wrote: > http://blog.getintheloop.eu/ > > Im writing a *lot* about scala and lift - especially how-to type tutorials. > > Cheers, Tim > > On 07/07/2009 16:48, "Kevin Wright" wrote: > > > I'm trying to compile a catalogue of online reso

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread Jeppe Nejsum Madsen
David Pollak writes: > Okay... I see the code path that could cause this issue. > > Are you doing any re-writing? Are you accessing User.currentUser in your > re-writes? As far as I can tell, I'm not doing any rewriting directly. But I'm using CRUDify and it seems to do some rewriting under th

[Lift] Re: Maven Lift archetype errors

2009-07-07 Thread glenn
Actually, this might have more to do with the latest Scala eclipse plugin than with the lift archetypes. I got the errors when I switched to the plugin from http://www.scala-lang.org/scala-eclipse-plugin-nightly Reverting to an earlier plugin, from http://www.scala-lang.org/scala-eclipse-plugin

[Lift] Re: Google Analytics

2009-07-07 Thread Xavi Ramirez
Thanks! I ran into this exact problem. Is there any way to get rid of it? Is there a tag? Thanks, Xavi On Tue, Mar 17, 2009 at 5:22 PM, Charles F. Munat wrote: > > OK, I have to stop posting this crap when it's 5:30 AM, I've been > working for 18 hours straight, and my brain is fried. > > Th

[Lift] Re: Maven Lift archetype errors

2009-07-07 Thread glenn
The command line I used is: >mvn archetype:generate -U -DarchetypeGroupId=net.liftweb >-DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-SNAPSHOT >-DremoteRepositories=http:// scala-tools.org/repo-snapshots -DgroupId=demo.helloworld - DartifactId=helloworld -Dversion=1.0-SNAPS H

[Lift] organizing views of synchronous streams

2009-07-07 Thread Meredith Gregory
All, Here's a blog postoutlining a way to organize synchronous streams of information. i post it here to get an opinion regarding how much work you all think it might be to do in lift. Best wishes, --greg -- L.G. M

[Lift] Re: organizing views of synchronous streams

2009-07-07 Thread Alex Boisvert
For what it's worth, the Business Process Modeling Notation (BPMN) uses a similar notation to convey concurrent events, actions, etc. http://www.scribd.com/doc/2334639/Introduction-to-BPMN (See pages 5, 7, 9 for diagrams with pools and lanes) http://www.eclipse.org/bpmn/images/screenshots/ Some

[Lift] current user

2009-07-07 Thread Joe Wass
Hello I'm trying to do something very simple: return the logged in user's username so I can use it building a menu. I have the following code in my Boot class: def loggedIndentifier : String = XYZUser.currentUser match { case Full(theUser : XYZUser) => theUser.identifier

[Lift] Re: organizing views of synchronous streams

2009-07-07 Thread Andrew Scherpbier
Maybe you should take a look at this: http://www.simile-widgets.org/timeline/ Ever since I discovered that widget I've wanted to use it for something... Cheers! --Andrew Meredith Gregory wrote: All, Here's a blog post outlining a way to organize synchronous streams of information. i

[Lift] Your message will appear in Lift momentarily.

2009-07-07 Thread Joe Wass
This has been bugging me for some time. When you make a post on the Google group, you get the message "Your message will appear in Lift momentarily". The meaning of that sentence is that the message will appear for a brief period of time. I hope they didn't mean that! Perhaps they meant 'shortly'?

[Lift] Re: Your message will appear in Lift momentarily.

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 3:14 PM, Joe Wass wrote: > > This has been bugging me for some time. When you make a post on the > Google group, you get the message "Your message will appear in Lift > momentarily". The meaning of that sentence is that the message will > appear for a brief period of time.

[Lift] Re: current user

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 3:12 PM, Joe Wass wrote: > > Hello > > I'm trying to do something very simple: return the logged in user's > username so I can use it building a menu. I have the following code in > my Boot class: > >def loggedIndentifier : String = XYZUser.currentUser match { >

[Lift] Re: organizing views of synchronous streams

2009-07-07 Thread Meredith Gregory
Alex, Thanks. i'm aware of the BPMN and other diagrams of this type, which go back to Role-Interaction Nets which go back to place-transition nets. i was really asking more about feasibility with existing Lift stuff. This all gets a lot more interesting in a browser. Also, explaining the ideas usi

[Lift] Re: organizing views of synchronous streams

2009-07-07 Thread Meredith Gregory
Andrew, Thanks! This looks quite interesting. Best wishes, --greg On Tue, Jul 7, 2009 at 3:13 PM, Andrew Scherpbier wrote: > Maybe you should take a look at this: > > http://www.simile-widgets.org/timeline/ > > Ever since I discovered that widget I've wanted to use it for something... > > Che

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-07 Thread fbettag
Sorry this is giving me headaches. I don't even know what to look for.. :( The Problem is also described here: http://www.nabble.com/Namespace-failure-td21982365s27240.html Is there anyway i can spoof the content-type for a comet actor from application/xhtml+xml to something else? like text/html

[Lift] Re: Building from source - error importing _root_.org.specs

2009-07-07 Thread Calen Pennington
So, I switched to Sun's 1.6 JDK, and am getting the same errors. And yes, I changed the scala version from 2.7.4 to 2.7.5 in pom.xml. Interestingly, running mvn compile works correctly, and mvn test fails with the same errors that mvn install does. Unfortunately, I'm not familiar enough with mave

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-07 Thread David Pollak
2009/7/7 fbettag > > Sorry this is giving me headaches. I don't even know what to look > for.. :( > The Problem is also described here: > http://www.nabble.com/Namespace-failure-td21982365s27240.html > > Is there anyway i can spoof the content-type for a comet actor from > application/xhtml+xml t

[Lift] Re: Building from source - error importing _root_.org.specs

2009-07-07 Thread David Pollak
On Tue, Jul 7, 2009 at 7:35 PM, Calen Pennington wrote: > > So, I switched to Sun's 1.6 JDK, and am getting the same errors. And > yes, I changed the scala version from 2.7.4 to 2.7.5 in pom.xml. > > Interestingly, running mvn compile works correctly, and mvn test fails > with the same errors tha

[Lift] Pick n random elements from a list?

2009-07-07 Thread DFectuoso
Hi! I have a list, lets say its List.range(1,100) and i want to pick n random elements from it. Basicly I know that i can create n diferente randon numbers inside the limits and pick each element, but that would look something like this store List.range(1,100); store randonNumbers generated by