[Lift] Re: openOr with a block to cover Nil in the middle of a chain?

2009-03-29 Thread Timothy Perrett
...And that's why Box rocks ;-) On 28/03/2009 15:59, Derek Chen-Becker dchenbec...@gmail.com wrote: somThing.user.map(u = u.firstName.is http://u.firstName.is ) openOr no name --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Bidirectional Record - JSON conversion

2009-03-29 Thread Marius
Folks, I just committed the Record/JSON conversion support. Here is a simple example: import net.liftweb.record.field._ import java.util._ object Main { def main(args : Array[String]) : Unit = { val rec = MyRecordMeta.createRecord.firstName(McLoud) // Change an existing record

[Lift] chadwskinner

2009-03-29 Thread Chad Skinner
Yes. I've got a backlog of stuff to do a mile long. Don't expect anything on this item before Wednesday. David, Is this backlog something that is public or something we can read. I'm hoping to get a better idea of how things work (Lift, OSGi, application architecture / design, integration,

[Lift] Re: Lift as a UI in server side OSGi

2009-03-29 Thread Chad Skinner
Yes. I've got a backlog of stuff to do a mile long. Don't expect anything on this item before Wednesday. David, Is this backlog something that is public or something we can read. I'm hoping to get a better idea of how things work (Lift, OSGi, application architecture / design,

[Lift] Re: chadwskinner

2009-03-29 Thread Chad Skinner
Sorry, about double posting this. I am not certain how I replied in google and got the subject goofed up so it posted in the wrong thread. Normally, when you reply you don't even have a field to set the subject. Weird. On Sat, Mar 28, 2009 at 5:54 PM, Chad Skinner chadwskin...@gmail.comwrote:

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Derek Chen-Becker
Very nice :) On Sun, Mar 29, 2009 at 6:07 AM, Marius marius.dan...@gmail.com wrote: Folks, I just committed the Record/JSON conversion support. Here is a simple example: import net.liftweb.record.field._ import java.util._ object Main { def main(args : Array[String]) : Unit = {

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
@marius, this is slick. However, its causing my build to error now... I get the following stack trace when building the entire lift project: [INFO] Compiling 22 source files to /Users/timperrett/repositories/ lift/lift-framework/lift-record/target/classes [WARNING]

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
FYI - the job is also failing on Hudson http://scala-tools.org/hudson/job/lift/926/ On Mar 29, 9:29 pm, Timothy Perrett timo...@getintheloop.eu wrote: @marius, this is slick. However, its causing my build to error now... I get the following stack trace when building the entire lift project:

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread marius d.
Apologies ... fixing it now. On Mar 29, 11:34 pm, Timothy Perrett timo...@getintheloop.eu wrote: FYI - the job is also failing on Hudson http://scala-tools.org/hudson/job/lift/926/ On Mar 29, 9:29 pm, Timothy Perrett timo...@getintheloop.eu wrote: @marius, this is slick. However, its

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread marius d.
Done ... The Box's implicits were not visible. Funny it was working on my Eclipse plugin 2.8.0 ... Sorry again and thanks for pointing it out ! Br's, Marius On Mar 29, 11:45 pm, marius d. marius.dan...@gmail.com wrote: Apologies ... fixing it now. On Mar 29, 11:34 pm, Timothy Perrett

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
That's strange about the eclipse plugin though for sure - I guess that's IDE voodoo for you! Cheers Marius Tim Sent from my iPhone On 29 Mar 2009, at 21:56, marius d. marius.dan...@gmail.com wrote: Done ... The Box's implicits were not visible. Funny it was working on my Eclipse

[Lift] lift on vista

2009-03-29 Thread vpalle
Hi there I've followed the getting started guide and managed to create the helloworld app, but when I try and open http://localhost:8080, the page is empty.. or rather, theres no connection. I can see that the jetty server is running though.. Any known problems with vista regarding lift or

[Lift] importing model - permanently hidden?

2009-03-29 Thread bradford
I have two models in separate .scala files. One of them is a ForeignKey to the other. The problem I'm having is that it won't let me import the Foreign model, since I have not defined a companion object. And if I do define a companion object, I get a NetBeans warning saying, imported `Courses`

[Lift] lift on vista

2009-03-29 Thread vpalle
Hi there I've followed the Lift getting started guide and created the hello world project with maven, but after i start with 'mvn jetty::run'´ and enter http://localhost:8080/ in my browser, nothing happens.. the page is not available.. any suggestions? I've tried turning of my firewall and

[Lift] scala:console and then boot call hangs

2009-03-29 Thread bradford
I feel like I'm spamming the mailing list with all of my questions. I apologize if they are too many. It would be nice to see more people in IRC since these messages are moderated and take a while to post. mvn scala:compile scala new net.liftweb.Boot().boot hangs until I kill it (but, mvn

[Lift] Mapper, defaults, and not null

2009-03-29 Thread bradford
Is there a way to specify the default value on a table column with Mapper? And is there a way to specify that the table column is not null with the Mapper? Thanks, Bradford --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: lift on vista

2009-03-29 Thread TylerWeir
You typed mvn jetty::run with two colons, is that a typo. Also, does the console say something like this: 2009-03-29 16:59:13.557::INFO: No Transaction manager found - if your webapp requires one, please configure one. 2009-03-29 16:59:15.258::INFO: Started selectchannelconnec...@0.0.0.0:8080

[Lift] Re: Mapper, defaults, and not null

2009-03-29 Thread TylerWeir
Check out: http://github.com/dpp/liftweb/blob/f5a24da9309be6d515540c63237e094debe12932/lift-mapper/src/main/scala/net/liftweb/mapper/MappedField.scala You're looking for: defaultValue, object name extends MappedString(this, 100) { override def defaultValue = bradford } On Mar 29, 4:36 pm,

[Lift] Re: lift:Menu.group

2009-03-29 Thread bradford
This can probably be improved (and I've done little testing on it), but I've come up with something to satisfy my description above: def group(template: NodeSeq): NodeSeq = { val default = S.attr(default).openOr() val active_attrs = S.prefixedAttrsToMetaData(active)

[Lift] annoying blanks at the line ends - another conversion error in the html version

2009-03-29 Thread claudius.haec...@googlemail.com
the first maven call contains superfluous line breaks. This doesn't look very nice. The second maven call contains superfluous blanks. Both make copy-paste of the respective code impossible. mvn archetype:generate -U \ -DarchetypeGroupId=net.liftweb \

[Lift] Re: chadwskinner

2009-03-29 Thread David Pollak
On Sat, Mar 28, 2009 at 3:54 PM, Chad Skinner chadwskin...@gmail.comwrote: Yes. I've got a backlog of stuff to do a mile long. Don't expect anything on this item before Wednesday. David, Is this backlog something that is public or something we can read. I'm hoping to get a better idea of

[Lift] Scaladocs not updating?

2009-03-29 Thread Derek Chen-Becker
I checked in some fairly large revisions to the built-in menu snippet Scaladocs, but it's not showing up on scala-tools.org. I confirmed that it's in there on GitHub, so I was wondering if the Hudson job maybe doesn't automatically build the docs? Derek

[Lift] Re: importing model - permanently hidden?

2009-03-29 Thread Derek Chen-Becker
I don't have an answer, but does it work if you import model._ ? Derek On Sun, Mar 29, 2009 at 12:23 PM, bradford fingerm...@gmail.com wrote: I have two models in separate .scala files. One of them is a ForeignKey to the other. The problem I'm having is that it won't let me import the