[Lift] I download auctionnet from ibm developer web site, but meet a error.

2009-11-15 Thread Margaret
Hi,buddy I download auctionnet from ibm developer website, but could not build successfully. I have tried mvn install mvn compile mvn scala:compile mvn jetty:run mvn -o jetty:run just got the same error : [INFO] Compiling 7 source files to /Users/peter/Desktop/auctionNet/target/classes /Use

[Lift] Re: How to use Box

2009-11-15 Thread Eros Candelaresi
Hi, I like the getOrElse way of accessing data very much as it allows to handle non-existing values with very little code. However, I am still looking for a more elegant replacement for this: val username = User.find(id).getOrElse(User.create.name("User not found")).name Ok, this is very sho

[Lift] PCDataXmlParser

2009-11-15 Thread chris . huisman
Hello, I am a newby to both scala and lift. Now that that's out of the way I'm wondering how to properly use PCDataXmlParser to read and parse html. I pull data from a restful service by doing the following: [code] import dispatch._ import Http._ import net.liftweb.util._; import scala.xml._

[Lift] Building Json result from a Map -> tranforming a map into a list of new objects

2009-11-15 Thread Tate
Hi all, I am pretty new to Scala and Lift so this question may not be pitched or explained correctly. I have an abstract class called Book that is created via Object Book. No troubles with this. abstract class Book { val tags : Map[String,String] val id : String } I wish to serialize t

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-15 Thread Neil.Lv
Where is the images directory that should i create ? Out side of the webapp in the tomcat or in the webapps? like this: D:\tomcat_5.5.25\webapps\images And the lift how to know and find the images folder in the webapps of the tomcat, not the demo/src/main/webapp/images . Thanks v

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-11-15 Thread David Pollak
On Sun, Nov 15, 2009 at 10:29 PM, braver wrote: > > I have a simple question on migrating a typical PinS-desribed pattern: > > def act() = > loop { > react { >case DoSomething => ... >case EXIT => exit() > } > } > > -- now, without exit(), how does it terminate? > Like any other object

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-11-15 Thread braver
I have a simple question on migrating a typical PinS-desribed pattern: def act() = loop { react { case DoSomething => ... case EXIT => exit() } } -- now, without exit(), how does it terminate? Cheers, Alexy --~--~-~--~~~---~--~~ You received this mes

[Lift] Re: Problem with long keys in GAE using JDO

2009-11-15 Thread Margaret
does appengine support actor in scala? - mawei...@gmail.com 13585201588 http://maweis.com On Mon, Nov 16, 2009 at 1:00 PM, Atsuhiko Yamanaka wrote: > > Hi, > > On Sun, Nov 15, 2009 at 6:23 AM, kkarad wrote: >> I am currently have some prob

[Lift] Re: Problem with long keys in GAE using JDO

2009-11-15 Thread Atsuhiko Yamanaka
Hi, On Sun, Nov 15, 2009 at 6:23 AM, kkarad wrote: > I am currently have some problems using scala and jdo under app > engine. More specifically, my entitity classes cannot use Long as a > primary key. Whenever I try persisting a entity object. I get the > following exception: ... > Do you know

[Lift] Re: Wiki One-to-Many

2009-11-15 Thread Randinn
Thank you for your help. On Nov 16, 9:15 am, Naftoli Gugenheim wrote: > Copy-paste error. Your Book.sort is inside Book.name. > > - > > Randinn wrote: > > Ah, I thought that it would be less of a bother so people wouldn't > have to deal with my trivial questio

[Lift] Re: How do I guarantee that logic will execute before render?

2009-11-15 Thread Naftoli Gugenheim
That may need a slight modification. If the RequestVar is top level then a def can't exist side by side with it. - David Pollak wrote: On Sun, Nov 15, 2009 at 12:45 PM, DMB wrote: > > I guess the underlying problem I have is that I don't know how one > obje

[Lift] Re: How do I guarantee that logic will execute before render?

2009-11-15 Thread David Pollak
On Sun, Nov 15, 2009 at 12:45 PM, DMB wrote: > > I guess the underlying problem I have is that I don't know how one > object can get a reference to another. Maybe I'm just trying to use > OOP when I need to be functional, I don't know. I basically want the > time selector to be completely separat

[Lift] Re: regarding maven archetype:generate

2009-11-15 Thread johncch
Ah, I wonder why I didn't see that in the maven docs. Thank you! On Nov 16, 2:01 am, Indrajit Raychaudhuri wrote: > Add -DarchetypeRepository=http://scala-tools.org/repo-snapshots > > That means, modify the command as thus: > > mvn archetype:generate -U -DarchetypeGroupId=net.liftweb > -Darchety

[Lift] JS event source in a server side handler

2009-11-15 Thread Chris Lewis
Hello list, Often in an AJAX handler I need to update something on the client side; usually a UI control that initiated the handler. The only way I know to handle this is to generate a DOM id in the snippet during a rendering call (like a bind() call in a flatMap over a dataset), look for that

[Lift] Re: Wiki One-to-Many

2009-11-15 Thread Naftoli Gugenheim
Copy-paste error. Your Book.sort is inside Book.name. - Randinn wrote: Ah, I thought that it would be less of a bother so people wouldn't have to deal with my trivial questions. Here it is import net.liftweb.util._ import net.liftweb.http._ import net.

[Lift] Re: Wiki One-to-Many

2009-11-15 Thread Randinn
Ah, I thought that it would be less of a bother so people wouldn't have to deal with my trivial questions. Here it is import net.liftweb.util._ import net.liftweb.http._ import net.liftweb.mapper._ object Author extends Author with LongKeyedMetaMapper[Author] class Author extends LongKeyedM

[Lift] Re: How do I guarantee that logic will execute before render?

2009-11-15 Thread DMB
I guess the underlying problem I have is that I don't know how one object can get a reference to another. Maybe I'm just trying to use OOP when I need to be functional, I don't know. I basically want the time selector to be completely separate from thumbnail JSON generator so that I could compose

[Lift] Re: How do I guarantee that logic will execute before render?

2009-11-15 Thread David Pollak
On Sun, Nov 15, 2009 at 2:46 AM, DMB wrote: > > Here's a simple problem. I have a web page which is supposed to > display a gallery. > > The page has two snippets in it. One of the snippets is month/year > selector, which takes (in the order of priority) URL parameters or > cookies and renders ye

[Lift] Re: Possible lift error in tag

2009-11-15 Thread David Pollak
Marius, Thanks for turning this fix around so quickly! David On Sun, Nov 15, 2009 at 7:58 AM, Marius wrote: > > Pushed a fix to master. Please let me if there are other issues here. > > On Nov 15, 2:38 pm, Marius wrote: > > Pushed a suggested fix on reviewboard > > > > Br's, > > Marius > > >

[Lift] Re: Problem cloning lift repo.

2009-11-15 Thread David Pollak
On Sun, Nov 15, 2009 at 5:03 AM, ivan wrote: > > On Nov 13, 2:25 pm, David Pollak > wrote: > > The correct command line: > > > > git clone git://github.com/dpp/liftweb.git > > > > That works when not behind a firewall that blocks git ports. But the > http version should work. It works on all my

[Lift] Re: regarding maven archetype:generate

2009-11-15 Thread Indrajit Raychaudhuri
Add -DarchetypeRepository=http://scala-tools.org/repo-snapshots That means, modify the command as thus: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=1.1-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo-snapsho

[Lift] H2 foreign keys

2009-11-15 Thread Naftoli Gugenheim
The H2 DriverType does not indicate H2 supports foreign key constraints. However it does, albeit with a different syntax than Schemifier uses. I'll try to file a ticket later. If I decide to work on it, what would be the best way? Refactor the SQL in Schemifier to be generated by the DriverType?

[Lift] regarding maven archetype:generate

2009-11-15 Thread johncch
Dear all, I'm trying to create a 1.1-SNAPSHOT project but I keep failing. I'm not sure what's happening so I'd really appreciate it if someone can point out my fault. This is the exact command I type: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype

[Lift] Re: Possible lift error in tag

2009-11-15 Thread Marius
Pushed a fix to master. Please let me if there are other issues here. On Nov 15, 2:38 pm, Marius wrote: > Pushed a suggested fix on reviewboard > > Br's, > Marius > > On Nov 15, 2:24 pm, Marius wrote: > > > What is the exact JS error? > > > On Nov 15, 2:04 pm, Marius wrote: > > > > I don't thi

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-15 Thread Neil.Lv
It try to deploy the war to the tomcat5.5.25, and the path is different. Use LiftRules.getResource("/images/") to get this information: In the dev box: --> Path:Full(file:/G:/project/demo/src/main/webapp/images/ In the tomcat: --> Path:Full(jndi:/localhost/demo-1.0/images/

[Lift] Re: How do I guarantee that logic will execute before render?

2009-11-15 Thread Jeppe Nejsum Madsen
DMB writes: > Here's a simple problem. I have a web page which is supposed to > display a gallery. > > The page has two snippets in it. One of the snippets is month/year > selector, which takes (in the order of priority) URL parameters or > cookies and renders year/month selections accordingly.

[Lift] Re: Wiki One-to-Many

2009-11-15 Thread Naftoli Gugenheim
Why don't you try the reverse -- post your code and error? - Randinn wrote: I was wondering if anyone that read the Git wiki One-to-Many made the example could post it onto Github as i was unsuccessful. Thank you. --~--~-~--~~~--

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-15 Thread Neil.Lv
Tim, I'm not clear that how to do use the caching proxy and maps a URL to the dispatcher. I didn't find the archive about the SoftReferenceCache. Is there some exmaple that descript how to use is ~? :) Thanks very much! Cheers, Neil On Nov 15, 6:33 pm, Timothy Perrett wrote: >

[Lift] Re: Problem cloning lift repo.

2009-11-15 Thread ivan
On Nov 13, 2:25 pm, David Pollak wrote: > The correct command line: > > git clone git://github.com/dpp/liftweb.git > That works when not behind a firewall that blocks git ports. But the http version should work. It works on all my repos but it doesnt work for liftweb.git. > > > > > On Thu, Nov

[Lift] Re: Possible lift error in tag

2009-11-15 Thread Marius
Pushed a suggested fix on reviewboard Br's, Marius On Nov 15, 2:24 pm, Marius wrote: > What is the exact JS error? > > On Nov 15, 2:04 pm, Marius wrote: > > > I don't think my commits may have caused this. > > > Derek ? > > > Br's, > > Marius > > > On Nov 14, 11:36 pm, David Pollak > > wrote:

[Lift] Re: Possible lift error in tag

2009-11-15 Thread Marius
What is the exact JS error? On Nov 15, 2:04 pm, Marius wrote: > I don't think my commits may have caused this. > > Derek ? > > Br's, > Marius > > On Nov 14, 11:36 pm, David Pollak > wrote: > > > Looks like a bug.  Please open a ticket > > athttp://github.com/dpp/liftweb/issues > > > Marius & D

[Lift] Re: Possible lift error in tag

2009-11-15 Thread Marius
I don't think my commits may have caused this. Derek ? Br's, Marius On Nov 14, 11:36 pm, David Pollak wrote: > Looks like a bug.  Please open a ticket athttp://github.com/dpp/liftweb/issues > > Marius & Derek: could this have anything to do with your recent changes?  If > so, could you get a f

[Lift] How do I guarantee that logic will execute before render?

2009-11-15 Thread DMB
Here's a simple problem. I have a web page which is supposed to display a gallery. The page has two snippets in it. One of the snippets is month/year selector, which takes (in the order of priority) URL parameters or cookies and renders year/month selections accordingly. This month/year selector

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-15 Thread Timothy Perrett
Neil, If you want to save the byte array, save it into the database, then just write a caching proxy that maps a URL to the dispatcher. That is, use SoftReferenceCache to cache the database read so that the next time the image is requested there is no database hit. This has been discussed a

[Lift] Wiki One-to-Many

2009-11-15 Thread Randinn
I was wondering if anyone that read the Git wiki One-to-Many made the example could post it onto Github as i was unsuccessful. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this g