[Lift] Re: Error message undecipherable

2009-04-21 Thread glenn
Charles, Actually, no, it doesn't help. The error appears to refer to the third parameter to bind: button1 - button onclick={SHtml.ajaxCall(Str(Button1),ajaxFunc _)}Press me/button I suspect the compiler doesn't like this construct {SHtml.ajaxCall(Str (Button1),ajaxFunc _)} for the onclick

[Lift] Re: Error message undecipherable

2009-04-21 Thread glenn
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 _)._2} and all works as it should. I'm learning scala as I go along. On Apr 20, 3:40 pm, Charles F. Munat c...@munat.com

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread g-man
Since Scala is a dialect of Java, and Lift is an extension of that, I went the Netbeans route because NB is basically part of Java, and I am happy so far: - Netbeans is quicker to load than Eclipse, and doesn't create all those zillions of files behind; - Netbeams handles all the moving parts

[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

[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

[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
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

[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 pravinka...@gmail.com wrote: i have already done with this, But this is static

[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 har...@gmail.com 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

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

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

[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

[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.

[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)

[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: 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 ::

[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 c...@munat.com wrote: Put this in your

[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;acollection.size();a++){ //start loop % % if(condition)%// check of condition trtd.../td/tr

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

2009-04-21 Thread marius d.
def buildRows: NodeSeq = (empty /: data)((l, r) = l ++ trtd{r}/ td/tr) 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) trtd{r}/td/tr else )) There are many ways to do

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

2009-04-21 Thread Julian Howarth
On Apr 21, 12:56 pm, Timothy Perrett timo...@getintheloop.eu 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

[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 howar...@freenet.co.ukwrote: On Apr 21, 12:56 pm, Timothy Perrett timo...@getintheloop.eu wrote: Can you try with maven 2.0.9... I've now switched to

[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,

[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 howar...@freenet.co.uk wrote: I'm getting started with Lift and am trying to run the examples from the

[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

[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

[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 ann.cu...@gmail.com wrote: I've got these errors when tried examples from getting started,

[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 david.bernard...@gmail.com wrote: Thanks, I resquest it,

[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] 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

[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 fingerm...@gmail.com wrote: Hi Ann, I believe the is a problem with the document converting quotes to tildas. You

[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

[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 timo...@getintheloop.eu wrote: Im working on Mac and

[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,

[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

[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 fingerm...@gmail.com wrote: Hi Ann, I believe the is a problem with the document converting quotes to tildas.  You

[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)

[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

[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 howar...@freenet.co.ukwrote: I've switched to my Linux box with

[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 je...@ingolfs.dkwrote: 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

[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

[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

[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 rao...@gmail.com 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

[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 i...@fbettag.de wrote: Hey there, is there any way to

[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
On Tue, Apr 21, 2009 at 11:27 AM, Franz Bettag i...@fbettag.de 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] {

[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) ++ input type=submit value=Add User/ Thanks, David

[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

[Lift] Re: CRUDifying a model

2009-04-21 Thread David Pollak
On Sun, Apr 19, 2009 at 3:44 AM, Tobias Daub hannes.flo...@gmx.li 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

[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

[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 i...@fbettag.de 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

[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,

[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 feeder.of.the.be...@gmail.com 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 :-),

[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 c...@munat.com 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

[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

[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 timo...@getintheloop.euwrote: Guys, I've been taking a close look at the way lift handles uploads. Right

[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 timo...@getintheloop.euwrote: 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,

[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

[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 ann.cu...@gmail.com wrote: Thank

[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

[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

[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 him.

[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: 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 dchenbec...@gmail.com wrote: Eclipse has been on and off with me. The new version definitely

[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

[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: 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 (upload)

[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 c...@munat.com 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

[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 dchenbec...@gmail.com 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

[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

[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

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 12:38 PM, Timothy Perrett timo...@getintheloop.euwrote: +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

[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 dchenbec...@gmail.com 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

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 11:50 AM, Franz Bettag i...@fbettag.de 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

[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 timo...@getintheloop.euwrote: 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

[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

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread Franz Bettag
awesome! thank you very much! On 21 Apr., 22:29, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Apr 21, 2009 at 11:50 AM, Franz Bettag i...@fbettag.de wrote: My old answer seems somehow to have gotten delayed, it was a problem with mvn scala:cc. mvn clean and mvn compile fixed

[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 =

[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 feeder.of.the.be...@gmail.com wrote: Please make it so. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 2:04 PM, Franz Bettag i...@fbettag.de 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.

[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:

[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 i...@fbettag.de wrote: One last stupid rookie question.. i've checked out lift from github, ran mvn compile (which

[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, lift:embed what=listaKorisnika/)

[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

[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 c...@munat.com 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:

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

2009-04-21 Thread Julian Howarth
On Apr 21, 6:41 pm, David Pollak feeder.of.the.be...@gmail.com 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

[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 howar...@freenet.co.ukwrote: On Apr 21, 6:41 pm, David Pollak feeder.of.the.be...@gmail.com wrote: It looks like you were editing

[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 http://almaer.com/blog/ yesterday. Dion is one of the guys behind Bespin https://bespin.mozilla.com/. 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/write

[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

[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 dchenbec...@gmail.com 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

[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 On

[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 feeder.of.the.be...@gmail.com wrote: Folks, I spent an hour with Dion Almaer http://almaer.com/blog/ yesterday.  Dion is one of the guys behind Bespin https://bespin.mozilla.com/. Dion and I blocked out how Lift, when

[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 mi...@milessabin.com wrote: On Wed, Apr 22, 2009 at 12:31 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: I'll open a ticket in Trac for the errors I'm seeing. I'm

[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 feeder.of.the.be...@gmail.com 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

[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 feeder.of.the.be...@gmail.com To: liftweb liftweb@googlegroups.com 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

[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]