[Lift] Binding Radio Button

2009-04-21 Thread sailormoo...@gmail.com
Hello: var sex = "M" val sex_map = Map("Male"->"M", "Female"->"F") bind("entry", xhtml, "sex" -> SHtml.radio(sex_map.keys.toList, Empty, sex = _), ) I don't know why I would get an exception like this: Thanks for the help [WARNING] D:\\snippet\Us

[Lift] Re: Lift and Bespin... a new way to develop web apps...

2009-04-21 Thread Peter Bliznak
now this looks impressive! can't wait. From: David Pollak To: liftweb Sent: Tuesday, April 21, 2009 7:07:24 PM Subject: [Lift] Lift and Bespin... a new way to develop web apps... Folks, I spent an hour with Dion Almaer yesterday. Dion is one of the guys beh

[Lift] Re: Lift and Bespin... a new way to develop web apps...

2009-04-21 Thread Warren Henning
On Tue, Apr 21, 2009 at 4:07 PM, David Pollak wrote: > and then collaborate with > another developer on expanding the chat application while chatting with the > other developer in the already running chat application. That would be so god damn awesome. Is Bespin something else that other enligh

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Derek Chen-Becker
Generally, yes, but I'll confirm the next time I get the error. Thanks, Derek On Tue, Apr 21, 2009 at 5:35 PM, Miles Sabin wrote: > > On Wed, Apr 22, 2009 at 12:31 AM, Derek Chen-Becker > wrote: > > I'll open a ticket in Trac for the errors I'm seeing. I'm actually > getting a > > different e

[Lift] Re: Lift and Bespin... a new way to develop web apps...

2009-04-21 Thread TylerWeir
o m g. This is going to be sick! On Apr 21, 7:07 pm, David Pollak wrote: > Folks, > > I spent an hour with Dion Almaer yesterday.  Dion > is one of the guys behind Bespin . > > Dion and I blocked out how Lift, when running in developer mode

[Lift] Re: scalar queries in Lift/JPA

2009-04-21 Thread Charles F. Munat
I was thinking tuples, but that didn't work. I'll try your suggestion. BTW, for anyone reading along, I forgot the group by clause in the query below. Chas. Derek Chen-Becker wrote: > I think that the type would be Array[Any] and you'll get one String and > Int for each row. > > Derek > > O

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Miles Sabin
On Wed, Apr 22, 2009 at 12:31 AM, Derek Chen-Becker wrote: > I'll open a ticket in Trac for the errors I'm seeing. I'm actually getting a > different error now: "Build compiler (scalac) crashed". That would typically (tho' not invariably) suggest a scalac bug which can be reproduced on the comma

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Derek Chen-Becker
I'll open a ticket in Trac for the errors I'm seeing. I'm actually getting a different error now: "Build compiler (scalac) crashed". I'm happy to open tickets but I'm never sure if I'm duping :(. For what it's worth I'm getting a similar error to what I was getting earlier in a project that is a si

[Lift] Lift and Bespin... a new way to develop web apps...

2009-04-21 Thread David Pollak
Folks, I spent an hour with Dion Almaer yesterday. Dion is one of the guys behind Bespin . Dion and I blocked out how Lift, when running in developer mode, could expose data via JSON giving Bespin information about the Lift app and read/writ

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread David Pollak
One final thing... try: rm -rf ~/.m2/repositories There may be a corrupted JAR file in your Maven repository. On Tue, Apr 21, 2009 at 3:13 PM, Julian Howarth wrote: > > On Apr 21, 6:41 pm, David Pollak > wrote: > > It looks like you were editing some of the files with Eclipse which uses > a >

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
On Apr 21, 6:41 pm, David Pollak wrote: > It looks like you were editing some of the files with Eclipse which uses a > different version of Scala than does Lift.   I haven't edited any of the files - all I've run are the 2 maven commands from an initially empty directory > If you try "mvn clean

[Lift] Re: scalar queries in Lift/JPA

2009-04-21 Thread Derek Chen-Becker
I think that the type would be Array[Any] and you'll get one String and Int for each row. Derek On Tue, Apr 21, 2009 at 3:37 PM, Charles F. Munat wrote: > > Anyone have a quick example of how to run a scalar query in JPA? I can't > find anything in the JPA demo. > > I have this query: > > selec

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Kai M.
sorry for taking over this thread again... I tried NetBeans and it does not work any better. No JavaDocs, no Sources, nothing. I tried to "download all sources/javadocs" menu- item, etc about a dozen times.. I even got maven to work via runProject but of course there seems no way to enable jvm-deb

[Lift] Re: ajax form that submits multiple values?

2009-04-21 Thread ivan
Hi and thanks! That helps and now the form is submitted and the function 'processEntryAdd' is called. But I would like to have something like: "submit2" -> SHtml.ajaxButton("Add user - 2", () => { processEntryAdd SetHtml("userList", ) & DisplayMessage("me

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
I've done it myself! ;) Just for reference, i modified pom.xml and ran mvn deploy. now i am running my own maven2 repository for that purpose. On 21 Apr., 23:04, Franz Bettag wrote: > One last stupid rookie question.. i've checked out lift from github, > ran mvn compile (which showed success on

[Lift] scalar queries in Lift/JPA

2009-04-21 Thread Charles F. Munat
Anyone have a quick example of how to run a scalar query in JPA? I can't find anything in the JPA demo. I have this query: select t.answer, count(distinct answer) from Vote t where t.poll = :poll order by t.answer but how do I call it? I normally do: Model.createNamedQuery[...]("findVoteCoun

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 2:04 PM, Franz Bettag wrote: > > One last stupid rookie question.. i've checked out lift from github, > ran mvn compile (which showed success on everything), now i am kinda > stuck. what's the best practice to get rolling from here? You don't need to do that. Maven will

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
One last stupid rookie question.. i've checked out lift from github, ran mvn compile (which showed success on everything), now i am kinda stuck. what's the best practice to get rolling from here? --~--~-~--~~~---~--~~ You received this message because you are subscr

[Lift] Re: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext

2009-04-21 Thread Timothy Perrett
Just pushed this change - archetypes now work seamlessly. Cheers, Tim On Apr 21, 9:30 pm, David Pollak wrote: > Please make it so. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this gro

[Lift] Re: Mocking multiple models in a Snippet

2009-04-21 Thread erik.karls...@iki.fi
> No worries. If you don't mind, please share whatever you end up with on the > list so that others can benefit :) Sure! It is nothing fancy but here is what I did (some simple code to show): Snippet code: ... class TeamSnippet { def list(html: NodeSeq):NodeSeq = { val team = getTeamMode

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
awesome! thank you very much! On 21 Apr., 22:29, David Pollak wrote: > On Tue, Apr 21, 2009 at 11:50 AM, Franz Bettag wrote: > > > My old answer seems somehow to have gotten delayed, it was a problem > > with mvn scala:cc. mvn clean and mvn compile fixed that. > > > Sorry for that. > > > The ef

[Lift] Re: Object typecast to Mapper

2009-04-21 Thread David Pollak
Amit, Class.forName(...) is called reflection in Scala/Java land. It allows you to get a class based on a String. You can then create a new instance of the class with the newInstance() method. However, what you get is an instance of Object... and you have to case it into something else before us

[Lift] Re: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext

2009-04-21 Thread David Pollak
Please make it so. On Sun, Apr 19, 2009 at 1:59 PM, Timothy Perrett wrote: > > Hey Heiko, > > This was my feeling - im aware that class does not exist in version > 7... I guess my point was do we need to change the lift-archetype so > that it explicitly defines jetty 6? It seems that this would s

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 11:50 AM, Franz Bettag wrote: > > My old answer seems somehow to have gotten delayed, it was a problem > with mvn scala:cc. mvn clean and mvn compile fixed that. > > Sorry for that. > > The effect is almost what i was looking for ;) i was looking for > something like overr

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Miles Sabin
On Tue, Apr 21, 2009 at 9:10 PM, Derek Chen-Becker wrote: > First off, I don't want to come off as whining. I know you've put some > tremendous effort into this and it shows. The new version (I'm actually > using 2.8.0_blahblah), especially the new JDT weaving makes things generally > a pleasure.

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 12:38 PM, Timothy Perrett wrote: > > +1, having the choice would be good. Seems like it would be simple to > add it to LiftRules for user configuration. > > @dpp What other re-factoring of Req did you have in mind? Id have a > poke about with the streaming stuff but I get t

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Derek Chen-Becker
First off, I don't want to come off as whining. I know you've put some tremendous effort into this and it shows. The new version (I'm actually using 2.8.0_blahblah), especially the new JDT weaving makes things generally a pleasure. The weird part for me is that with nested modules it sometimes work

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Miles Sabin
On Tue, Apr 21, 2009 at 8:03 PM, Lee Mighdoll wrote: > I've played a bit with both netbeans 6.7m2 and eclipse 3.4.2 with the 2.7.3 > plugin.  I'm currently using eclipse, but I've found it to be fairly > tempermental ... Do you have any compelling reason for not immediately upgrading to 2.7.4.RC

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Miles Sabin
I wrote: > I'm going to be doing on Lift development with Eclipse at the Scala > Lift Off Let me try that again ... I'm going to be doing a presentation on Lift development with Eclipse at the Scala Lift Off. Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://tw

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Miles Sabin
On Tue, Apr 21, 2009 at 8:45 PM, Derek Chen-Becker wrote: > Eclipse has been on and off with me. The new version definitely works > better, but I write code against Maven projects with nested modules and that > combination seems to make everything fairly unhappy. I get weird error > messages like

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Derek Chen-Becker
On Tue, Apr 21, 2009 at 1:53 PM, Charles F. Munat wrote: > > In Rails I wrote an extensive library of CRUD functionality that I used > to build CRUD apps very quickly. My views were reduced to a few lines of > code, controllers even more so. For example, a controller that had 350 > lines of code

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread Charles F. Munat
Uploads have remained quite mysterious and difficult for me. I'm all for anything that makes it easier to do them. Less memory usage is good, too. Chas. Tim Perrett wrote: > Guys, > > I've been taking a close look at the way lift handles uploads. Right > now were putting the entire thing (uplo

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Charles F. Munat
Jeppe Nejsum Madsen wrote: > Do you think you'll surpass your Rails speed? If yes, can you explain > what elements contribute to this? I'm not sure, but I think so. Then again, it's difficult to say, because I'm doing more. There is definitely a bit less boilerplate for me with Lift, but not

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Timothy Perrett
I too used to do a lot of rails dev... Granted my lift apps take me *slightly* longer to produce, but only by a bit. However, they do take a lot less time to deploy and maintain because my platform is not leaking like the proverbial rusty bucket ;-) Cheers, Tim On 21/04/2009 20:15, "Jeppe Nejsu

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Timothy Perrett
The main one i've come across is that whole jetty WebAppContext which I dont seem to be able to get rid of did anyone find a solution for that? Cheers, Tim On Apr 21, 8:45 pm, Derek Chen-Becker wrote: > Eclipse has been on and off with me. The new version definitely works > better, but I wr

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Derek Chen-Becker
Eclipse has been on and off with me. The new version definitely works better, but I write code against Maven projects with nested modules and that combination seems to make everything fairly unhappy. I get weird error messages like "_root_ does not exist" that go away if I stop and restart Eclipse.

[Lift] Re: [Lift committers] Welcome Heiko Seeberger to the Lift committers

2009-04-21 Thread Derek Chen-Becker
Welcome aboard, Heiko! On Tue, Apr 21, 2009 at 11:56 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Folks, > I'm pleased to announce that Heiko Seeberger has joined the Lift commiters. > I'm expecting cool OSGi related stuff to be in Lift very soon. > > Please join me in welcoming hi

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread Timothy Perrett
+1, having the choice would be good. Seems like it would be simple to add it to LiftRules for user configuration. @dpp What other re-factoring of Req did you have in mind? Id have a poke about with the streaming stuff but I get the impression it might be a bit wasted depending on what you have pl

[Lift] Lift documentation -- Attention newcomers (and everyone else)!

2009-04-21 Thread Charles F. Munat
I am charged with coming up with a site map/information architecture for our hopefully-soon-to-be-updated wiki. What would most benefit you on a documentation wiki? What sorts of things are you having the most problems with? Please submit suggestions for a wiki outline, as well as any other id

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread Derek Chen-Becker
It's documentation. For some reason, the tex4ht translator is putting "~" where there should be quotes. The ~ character is a valid character within Scala code, but it doesn't have the meaning that we're using here. Derek On Tue, Apr 21, 2009 at 11:12 AM, Ann wrote: > > Thank you. > But is it a

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Clemens Oertel
> If your project is more than a simple app (as I'm certain it is), I > would go with JPA. Record is not ready yet, and Mapper is pretty > limited. For example, AFAIK Mapper doesn't do many-to-many > associations. > I've had a lot of success with JPA/Hibernate, and it's getting pretty > solid in

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread Derek Chen-Becker
I would vote for adding streaming and leaving the choice to the user. Derek On Tue, Apr 21, 2009 at 1:28 PM, Tim Perrett wrote: > > Guys, > > I've been taking a close look at the way lift handles uploads. Right > now were putting the entire thing (upload) into memory. This, IMO, is > not a good

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread David Pollak
Let's add it to the 1.1 backlog and see where we get. It might work out well for the refactoring of Req due to the coding of portlets, etc. On Tue, Apr 21, 2009 at 12:28 PM, Tim Perrett wrote: > > Guys, > > I've been taking a close look at the way lift handles uploads. Right > now were putting t

[Lift] Moving to streaming upload API

2009-04-21 Thread Tim Perrett
Guys, I've been taking a close look at the way lift handles uploads. Right now were putting the entire thing (upload) into memory. This, IMO, is not a good look. I managed to crash my whole laptop as Jetty scrabbled for memory to store a massive upload I was trying. Looking at the commons upload

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Jeppe Nejsum Madsen
On Tue, Apr 21, 2009 at 9:01 PM, Charles F. Munat wrote: > > Yeah, it's always "nice to get some"... :-) > > As a former Rails developer, I'll say this: I don't think I'm yet quite > as fast in Lift as I was in Rails, but I'm getting there. A lot of this > has had to do with switching mindset fro

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Jeppe Nejsum Madsen
Thanks for the swift reponse. A few comments inline On Tue, Apr 21, 2009 at 7:51 PM, David Pollak wrote: [...] > I don't know Lift/Scala either but I've always liked the clean, simple >> syntax of SML (did a fair share of SML programming back in the CS classes >> :-), so FP is not uncommon to

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
My old answer seems somehow to have gotten delayed, it was a problem with mvn scala:cc. mvn clean and mvn compile fixed that. Sorry for that. The effect is almost what i was looking for ;) i was looking for something like override def _toForm = Nil.. In the Listing the data should be display, bu

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
My fault, mvn clean and restarting jetty made it work. i guess mvn scala:cc didn't work that well. On 21 Apr., 20:27, Franz Bettag wrote: > Idea 8 doesn't even list that in the Override List, in addition it > doesn't work. > Maybe it's because i use it in a trait? > > import java.util.Date > imp

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Lee Mighdoll
I've played a bit with both netbeans 6.7m2 and eclipse 3.4.2 with the 2.7.3 plugin. I'm currently using eclipse, but I've found it to be fairly tempermental... I often have to manually do a clean build to get correct error messages, or reload the file in the editor, and stepping through the debugg

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Charles F. Munat
Yeah, it's always "nice to get some"... :-) As a former Rails developer, I'll say this: I don't think I'm yet quite as fast in Lift as I was in Rails, but I'm getting there. A lot of this has had to do with switching mindset from Ruby to a more Java-ish approach. For you, as a Java developer,

[Lift] Re: CRUDifying a model

2009-04-21 Thread David Pollak
On Sun, Apr 19, 2009 at 3:44 AM, Tobias Daub wrote: > > Do I understand it right..before I had to do this access stuff in > Boot.scala. But those new methods I've to override directly in the > companion object of the class that inherits from CRUDify? Is that right? > > I dont need to edit any

[Lift] Re: id# based pages

2009-04-21 Thread Charles F. Munat
Actually, after following the link in your email, I think I like your style better, too. David, is there an advantage to the zipped style? Chas. Timothy Perrett wrote: > Personal preference, but I dont like that zip map style... id always > use specific paramaters as per my exampe - they you k

[Lift] Re: ajax form that submits multiple values?

2009-04-21 Thread David Pollak
Howdy, This is a bug in how Ajax forms are submitted (it's a browser-level bug.) The submit button is not serialized as part of the thing that's sent to the server. I'd suggest the following: "submit" -> SHtml.hidden("Add user", processEntryAdd) ++ Thanks, David On Mon, Apr 20, 2009 at 5:0

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 11:27 AM, Franz Bettag wrote: > > Idea 8 doesn't even list that in the Override List, in addition it > doesn't work. > Maybe it's because i use it in a trait? I don't think so. Here's code that compiles just fine: class User extends MegaProtoUser[User] { def getSingl

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
Idea 8 doesn't even list that in the Override List, in addition it doesn't work. Maybe it's because i use it in a trait? import java.util.Date import model._ import net.liftweb.mapper._ trait TimeStamped[OwnerType <: Stamped[OwnerType]] { this: Stamped[OwnerType] => private val thisTyped =

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
Franz, In the createdOn field: object createdOn extends MappedLong(this) { override def dbDisplay_? = false } This will exclude the field from display. Does this help? Thanks, David On Mon, Apr 20, 2009 at 7:19 PM, Franz Bettag wrote: > > Hey there, > > is there any way to hide fields (cr

[Lift] Re: anybody looked at the 280north stuff?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 10:42 AM, Raoul Duke wrote: > > http://280north.com/blog/2009/02/announcing-atlas/ > > i'm curious how it really pans out. I looked at it a year ago and helped them out in terms of choosing licenses and business models. Have not had a chance since to look at it. :-( >

[Lift] Welcome Heiko Seeberger to the Lift committers

2009-04-21 Thread David Pollak
Folks, I'm pleased to announce that Heiko Seeberger has joined the Lift commiters. I'm expecting cool OSGi related stuff to be in Lift very soon. Please join me in welcoming him. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.co

[Lift] anybody looked at the 280north stuff?

2009-04-21 Thread Raoul Duke
http://280north.com/blog/2009/02/announcing-atlas/ i'm curious how it really pans out. sincerely. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegro

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 7:12 AM, Jeppe Nejsum Madsen wrote: > Hello, > > I've been lurking on this list for a while and trying out small things with > Lift/Scala but thought I would ask the more experienced people around here > before digging much deeper. First some background: > > I've been writi

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread David Pollak
It looks like you were editing some of the files with Eclipse which uses a different version of Scala than does Lift. If you try "mvn clean jetty:run" on your Mac, all should be good. On Tue, Apr 21, 2009 at 8:08 AM, Julian Howarth wrote: > > I've switched to my Linux box with maven 2.1.0 and Ja

[Lift] Re: Demo doesn't work

2009-04-21 Thread David Pollak
Fixed On Tue, Apr 21, 2009 at 10:08 AM, Ernst Bauernfeind < ernst.beiglbo...@gmail.com> wrote: > > Hello, > just wanted to say that demo.liftweb.com doesn't work (502 Bad Gateway > nginx/0.6.32). > I'm very excited about Scala and Lift, so i would be very happy to see > demos, above all the comet

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 10:13 AM, Ann wrote: > > Is it why liftweb.com is down for more than 2 hours? It says to me No... this was a misconfiguration of the Lift server. It's been resolved. > > "Lift has a problem > > Sorry! This site is experiencing technical difficulties. > > Try waiting a

[Lift] Re: Avoiding polling when using Comet. Reverse AJAX

2009-04-21 Thread marius d.
Comet is also known as long polling especially when browsers are involved. That's because: 1. When timeout occurs ... after x seconds/minutes client needs to re- establish connection 2. Client reconnects after response is provided by server But what is the problem with long pooling if a request

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread Ann
Is it why liftweb.com is down for more than 2 hours? It says to me "Lift has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Access denied for user 'wikiuser'@'localhost' (using password: YES) (local

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Kai M.
On Apr 21, 7:10 am, Lee Mighdoll wrote: > On my version, I see a bunch of libraries that start out M2_REPO, and if I > scroll the library window to the right I see that M2_REPO is successfully > resolved to: - /home/lee/.m2/repository... If you don't see the libraries > resolved correctly to yo

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread Ann
Thank you. But is it a problem in documentation or is it in scala library? (I'm new to scala so I don't know if it's possible to use ~ instead of ") On Apr 21, 4:26 pm, bradford wrote: > Hi Ann, > > I believe the is a problem with the document converting quotes to > tildas.  You will need to man

[Lift] Demo doesn't work

2009-04-21 Thread Ernst Bauernfeind
Hello, just wanted to say that demo.liftweb.com doesn't work (502 Bad Gateway nginx/0.6.32). I'm very excited about Scala and Lift, so i would be very happy to see demos, above all the comet chat example. greets --~--~-~--~~~---~--~~ You received this message becau

[Lift] Re: class hierarchy with models

2009-04-21 Thread glenn
I'm not sure if this will work as intended, but I'm trying. Here's a Company class(and its object) that inherits an Address trait: object Company extends Company with LongKeyedMetaMapper[Company]{ override def fieldOrder = List(name, line1.asInstanceOf, line2.

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
I've switched to my Linux box with maven 2.1.0 and Java 1.6.0_13, followed the same steps and it all works as intended. So whatever is wrong is something to do with the particular setup on my mac. Julian On Apr 21, 2:45 pm, Timothy Perrett wrote: > Im working on Mac and have no problems at all

[Lift] Avoiding polling when using Comet. Reverse AJAX

2009-04-21 Thread przemek.pokrywka
Hello, Is is possible to use Comet in Liftweb without frequent polling by Browser? When I sniffed traffic between my browser (FF3) and demo app (Comet chat example), I observed a regular stream of HTTP GETs. Przemek --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread Derek Chen-Becker
I fixed this in the HTML generation script but we're not yet building the site from GitHub. We should have this fixed soon. Derek On Tue, Apr 21, 2009 at 7:26 AM, bradford wrote: > > Hi Ann, > > I believe the is a problem with the document converting quotes to > tildas. You will need to manual

[Lift] Is Lift the right tool for us?

2009-04-21 Thread Jeppe Nejsum Madsen
Hello, I've been lurking on this list for a while and trying out small things with Lift/Scala but thought I would ask the more experienced people around here before digging much deeper. First some background: I've been writing webapps for well over a decade using all kind of tools/languages rangi

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Timothy Perrett
Im working on Mac and have no problems at all: :~ timperrett$ $JAVA_HOME -bash: /Library/Java/Home: is a directory :~ timperrett$ java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
Ha! Upgrading the JDK is easier said than done. 1.6.0_07 *is* the latest version as far as macs are concerned. Is there a way of specifying a version of scala that is compatible with that JDK version? On Apr 21, 1:54 pm, David Bernard wrote: > Thanks, I resquest it, just to check which version o

[Lift] Re: Stuck at "Getting started"

2009-04-21 Thread bradford
Hi Ann, I believe the is a problem with the document converting quotes to tildas. You will need to manually go through the code and replace ~ with ". Hope this helps, Bradford On Apr 21, 9:16 am, Ann wrote: > I've got these errors when tried examples from getting started, when I > run mvn jet

[Lift] Stuck at "Getting started"

2009-04-21 Thread Ann
I've got these errors when tried examples from getting started, when I run mvn jetty:run I get: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] [INFO] Building todo [INFO

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread David Bernard
Thanks, I resquest it, just to check which version of java is used to run scalac. IMHO the problem is that scala was compiled with a more recent version of java than your => ClassVersionNumber unknown by your jdk and the .class try to upgrade your jdk. On Tue, Apr 21, 2009 at 14:38, Julian Howart

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
> mvn compile -Dmaven.scala.displayCmd=true [INFO] Scanning for projects... [INFO] [INFO] Building helloworld [INFO]task-segment: [compile] [INFO] [

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread marius d.
If you go into the sites/example folder you can type: mvn jetty:run .. assuming that you previously built lift. If you did not yet go to the foldel where you checked out lift (same folder where you have .git, doc, lift, lift-ampw etc) and run: mvn clean:clean install Br's, Marius On Apr 21,

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread pravin karne
I got that example also solution for my problem Thanks Marius for u r valuable pointer one more question ,how can i run these sites/ example applications. I have created the jar file from given pom.xml. but i am not able to run that jar file. could u please tell that? Thanks On Tue, Apr 21, 20

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread David Bernard
hi, Can you run (and report the output) : mvn compile -Dmaven.scala.displayCmd=true /davidB On Tue, Apr 21, 2009 at 14:22, Julian Howarth wrote: > > > On Apr 21, 12:56 pm, Timothy Perrett wrote: > > Can you try with maven 2.0.9... > > I've now switched to maven 2.0.9 but the error is exactly t

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
On Apr 21, 12:56 pm, Timothy Perrett wrote: > Can you try with maven 2.0.9... I've now switched to maven 2.0.9 but the error is exactly the same as before. I removed the directories and reran the mvn archetype:generate command. This was successful again. It was the jetty command that failed aga

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread marius d.
def buildRows: NodeSeq = (empty /: data)((l, r) => l ++ {r}) is just an example that shows that you have full programmatic control for generating rows. such as: def buildRows: NodeSeq = (empty /: data)((l, r) => l ++ (if (condition) {r} else )) There are many ways to do it ... this is just

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Timothy Perrett
Can you try with maven 2.0.9... Also, I think your java version would be 6 for the JRE, but 1.5.0 for the JDK that ships with OSX? Cheers, Tim On 21/04/2009 11:29, "Julian Howarth" wrote: > > I'm getting started with Lift and am trying to run the examples from > the Exploring Lift book but g

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread pravin
but there is case , suppose, whether a particular row is present depends on some condition, leading to code like this : <%for(int a=0;a <% if(condition)%>// check of condition ... <% else{ %> ... <%}

[Lift] Can't get applications to run in Jetty

2009-04-21 Thread Julian Howarth
I'm getting started with Lift and am trying to run the examples from the Exploring Lift book but get errors when I try to run the application on Jetty. I have also tried following the examples from Getting Started Guide and the wiki, but always end up with similar errors. So I run: mvn archetype

[Lift] Re: id# based pages

2009-04-21 Thread Timothy Perrett
Personal preference, but I dont like that zip map style... id always use specific paramaters as per my exampe - they you know exactly what your going to get when you call S.param("thing") in your snippet code. Tim On Apr 21, 12:22 pm, "Charles F. Munat" wrote: > Put this in your Boot.scala file

[Lift] Re: id# based pages

2009-04-21 Thread Charles F. Munat
Put this in your Boot.scala file inside the def Boot method: val idRewriter: LiftRules.RewritePF = { case RewriteRequest(path @ ParsePath("user" :: id :: _, _, _,_), _, _) => RewriteResponse( ParsePath("user" :: "index" :: Nil, "", true, false), Map("id" -> id :: pat

[Lift] Re: Error message undecipherable

2009-04-21 Thread Charles F. Munat
Whoops. Should've checked this before I responded to the previous email. Glad you figured it out. Chas. glenn wrote: > I found the problem. AjaxCall method returns a tuple, (String, JsExp). > > So, I just needed to change onclick function to > onclick={SHtml.ajaxCall(Str("Button1"),ajaxFunc

[Lift] Re: Error message undecipherable

2009-04-21 Thread Charles F. Munat
Sorry, I should have been more explicit. The UnprefixedAttribute is your "onclick" attribute. The first parameter (a string) is "onclick." The third parambers (MetaData) is null. What you are passing is the second parameter, which can be a) an Option containing a Seq of scala.xml.Nodes, b) ano

[Lift] Re: Error message undecipherable

2009-04-21 Thread marius d.
The reason for the tuple is Lift's garbage collection mechanism. However due to some jQuery issues regarding namespaces, this mechanism is not yet used instead a more generalized GC mechanism is today in place. Note that you also have SHtml.makeAjaxCall function that just returns the JsExp. Br's

[Lift] Re: Minimal Authorization API for Lift

2009-04-21 Thread Timothy Perrett
Brett, You are confusing things here - HttpAuthentication is just for Basic and Digest auth, nothing else. MetaMegaProtoUser is a base class that saves time when implementing mapper backed user systems. You are free to use whatever you want of course... SiteMap controls URL access and is wired u

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread marius d.
Perhaps something like: // in your markup // your snippet class TableFeed { val data = "Item1" :: "item2" :: Nil val empty: NodeSeq = NodeSeq.Empty def buildRows: NodeSeq = (empty /: data)((l, r) => l ++ {r}) def build(xhtml: NodeSeq) : NodeSeq = { bind("t", xhtml, "rows" ->

[Lift] Re: id# based pages

2009-04-21 Thread Timothy Perrett
You want to do something like this: http://gist.github.com/99026 Tim On Apr 21, 5:43 am, harryh wrote: > I want the URLs for user profile pages on my site to be in the > following form: > > http://mydomain.com/user/123 > > Where 123 is the user id. I'm having trouble figuring out how I can > a

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread Timothy Perrett
Hi there, Read my article here: http://is.gd/sfyT Lift does not use any html based iteration - read the binding article and it will all make sense (just ask if it doesnt) Cheers, Tim On Apr 21, 7:19 am, pravin wrote: > i have already done with this, > > But this is static page.no of rows in d

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread pravin
i have already done with this, But this is static page.no of rows in display table is fixed. but suppose i have collection of data with variable size , and i want to display that data in table (e.g list of employee with details). So my concern is how i iterate over collection dynamically in li

[Lift] CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
Hey there, is there any way to hide fields (createdOn/createdBy...) from CRUDify? I was digging through the code since google didn't turn up anything useful for this topic, but i didn't find anything (may be the lack of my scala skill). best regards -franz --~--~-~--~~

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread pravin karne
i have already done with this, But this is static page.no of rows in display table is fixed. but suppose i have collection of data with variable size , and i want to display that data in table (e.g list of employee with details). So my concern is how i iterate over collection dynamically in lif

[Lift] id# based pages

2009-04-21 Thread harryh
I want the URLs for user profile pages on my site to be in the following form: http://mydomain.com/user/123 Where 123 is the user id. I'm having trouble figuring out how I can add pages like this where the URL path does not correspond to the path under webapp/ Help? This can't be very hard I'm

  1   2   >