[Lift] Re: Netbeans /lift/

2008-09-01 Thread Oliver
Sorry, the archetypeVersion should be 0.9 as shown in
  http://liftweb.net/index.php/HowTo_start_a_new_liftwebapp

On Mon, Sep 1, 2008 at 1:52 PM, Oliver [EMAIL PROTECTED] wrote:

 Hi,

 Lift uses Maven 2 which doesn't require an IDE to run. It's probably
 possible to add a Maven task within Netbeans to create a lift project, but
 its a good idea to get an idea of how to run Maven from the command line.

 As you have Scala installed, you need to install Maven 2. Once you have
 done this you can create a new Lift app easily

 mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -N  \
 -DarchetypeGroupId=net.liftweb \

 -DarchetypeArtifactId=lift-archetype-basic \
 -DarchetypeVersion=0.7.1 \
 -DremoteRepositories=http://scala-tools.org/repo-releases \
 -DgroupId=com.foo.jpaweb \

 -DartifactId=webapp

 just replace com.foo.jpaweb with your path and webapp with the name of your
 application. If you are running in windows you will need to get rid of the
 backslashes and put the command on one line.

 There is a Maven plugin in Netbeans that your will have to install/enable
 (via Tools/Plugins). Once this is done Netbeans will open your project and
 allow you to build it using Maven, without going back to the command line.

 Hope this helps

 Oliver


 On Mon, Sep 1, 2008 at 1:05 PM, Marc Boschma [EMAIL PROTECTED][EMAIL 
 PROTECTED]
  wrote:


 Hi,

 I've been playing with Netbeans + Scala plug-in, and now just starting
 to consider /lift/ as well...

  From what I can tell (googling) it is still necessary to create a
 maven /lift/ project by hand (command line) and then open that in
 Netbeans... is that correct?

 Ideally it would be nice to be able to start a /lift/ project from
 within the IDE like a Scala Application or Library.

 Marc


 



--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Snippet Failure

2008-09-01 Thread [EMAIL PROTECTED]


David, Marius,

It looks like it was an eclipse problem.

mvn *clean* jetty:run

Where the clean is very important.

I now have hello world lift up and running, so thank you very much for
your help with this.

Just out of interest, which IDE do you use?

David Pollak wrote:


On Aug 31, 9:43 pm, David Pollak [EMAIL PROTECTED]
wrote:
 On Sun, Aug 31, 2008 at 12:59 PM, Marius [EMAIL PROTECTED] wrote:

  Hi,

  Could you try

  lift:HelloWorld.howdy /

  or

  lift:hello_world.howdy /

 I'd remove Eclipse from the equation as well.  The Eclipse plugin is Scala
 2.7.2-?? where Lift currently requires 2.7.1.  If your snippet was compiled
 by Eclipse, it could cause problems.

 Are you using Lift 0.9 or 0.10-SNAPSHOT?

 In either event, please, from the command line, type mvn clean jetty:run and
 then see if things work.


--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Documentation

2008-09-01 Thread Charles F. Munat

Thanks, Jim. Will do.

Chas.

Jim Lloyd wrote:
 Chas,
 
 This is my first post to this group. I'm a friend of David's who has 
 been meaning to learn Scala and Lift for months based on David's praise 
 for Scala and his obvious joy in working on Lift. I finally found some 
 time to dive into Scala and I love it. I'm now trying to find time to 
 dive into Lift, and I too am wishing for more documentation. This means 
 that I probably won't be able to answer any of your questions, but that 
 I will be keenly interested in anything you produce, including all of 
 your questions, whether they get quick answers or not. I recommend that 
 you post your questions to this list. It might be worthwhile to identify 
 your questions with some prefix in the subject like DocQ: ..., but I 
 think it better that you don't fragment the list.
 
 Jim
 
 On Sun, Aug 31, 2008 at 9:09 PM, Charles F. Munat [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 OK, I have an idea and I think I've narrowed it down to something I can
 fit into my schedule. I'll work on it and hopefully will have something
 in the next week or so.
 
 Chas.
 
 Charles F. Munat wrote:
   Actually, after reviewing my schedule and reconsidering the amount of
   time required, I'm probably biting off more than I can chew. Also, I
   understand that you're hard at work on a manual. Any idea when
 and how
   that will be available?
  
   Chas.
  
   David Pollak wrote:
   Charles,
  
   I am unclear what you are asking for.  The Lift list is open to
 all for
   posting.  If you've got questions, by all means, post them.
  There are
   lots of folks who are helpful and knowledgeable on the list.
  
   One of the reasons that the Lift list and the Lift community are
   populated with such awesome and helpful people is the attitude
 and tone
   on the list and in the community.  We are here to welcome folks
 into the
   community, help them understand, and build excellent things.
  
   As you produce stuff and contribute to the Lift community, I
 expect that
   you'll get increasingly positive responses to your work and your
 questions.
  
   Thanks,
  
   David
  
   On Sat, Aug 30, 2008 at 3:39 PM, Charles F. Munat
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
  
   Lift desperately needs better documentation prior to the
 release of
   version 1.0. Despite the efforts of many to create
 documentation, there
   is still no clear path to Lift adoption for the majority of web
   developers out there. At least, none that I can find.
  
   I am willing to write Lift documentation, but I don't
 understand Lift
   well enough to do so. I am also unwilling to waste hours
 searching for
   answers to questions -- that is simply not a worthwhile use
 of my time.
  
   I am willing to devote an hour a day for the month of
 September to
   getting a good start on a non-wiki documentation site. What
 I need is
   permission to post questions to the mailing list.
  
   The reason I need permission is because when I have a
 question, I want
   to be able to post it and get a rapid reply. I do not have
 several hours
   to spend on each question searching through the wiki, the
 mailing list,
   and the example code trying to figure out if it has been
 answered
   before. That is not an efficient use of my time, and I have
 very little
   time.
  
   This may result in a lot of traffic to the list. I'll have a
 lot of
   questions. So I suggest the creation of a separate
 documentation
   mailing list. And if some of the best coders for Lift were
 on that list
   and agreed to try to respond quickly, then I can learn Lift
 quickly (a
   benefit to me) and I can write the documentation quickly (a
 benefit to
   the community and new users). Win-win.
  
   I am even willing to give my phone number to select members
 of the
   community so that they can call me with answers to questions
 if that's
   faster than writing an email. This is about getting
 documentation done,
   quickly and accurately. The if you build it, documentation
 will come
   method does not work in real life.
  
   It would also be nice if folks on the list would read the
 documentation
   and send corrections, suggestions, comments, etc. to me
 (maybe via the
   documentation mailing list).
  
   I've been out of the loop for a couple of months, so maybe
 some of this
   already exists. If so, 

[Lift] Re: JPA and annotations

2008-09-01 Thread Viktor Klang
Hi Oliver!

I think you need to qualiify the parameter:

@Column(name = NAME)

Cheers,
Viktor

On Mon, Sep 1, 2008 at 9:27 AM, Oliver [EMAIL PROTECTED] wrote:

 When I try to use the following annotation in a JPA labled entity in a
 Scala class

 @Column(columnName)

 I get a error: wrong number of arguments for constructor Column:
 ()javax.persistence.Column
 Same thing for a @Table(tableName)

 Any ideas?

 cheers
 Oliver



 



-- 
Viktor Klang
Rogue Software Architect

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Snippet Failure

2008-09-01 Thread Marius

I'm using Eclipse on Ubuntu but didn't upgrade the plugin to version
2.7.2 ...


Br's,
Marius

On Sep 1, 9:29 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 David, Marius,

 It looks like it was an eclipse problem.

 mvn *clean* jetty:run

 Where the clean is very important.

 I now have hello world lift up and running, so thank you very much for
 your help with this.

 Just out of interest, which IDE do you use?

 David Pollak wrote:

 On Aug 31, 9:43 pm, David Pollak [EMAIL PROTECTED]
 wrote:

  On Sun, Aug 31, 2008 at 12:59 PM, Marius [EMAIL PROTECTED] wrote:

   Hi,

   Could you try

   lift:HelloWorld.howdy /

   or

   lift:hello_world.howdy /

  I'd remove Eclipse from the equation as well.  The Eclipse plugin is Scala
  2.7.2-?? where Lift currently requires 2.7.1.  If your snippet was compiled
  by Eclipse, it could cause problems.

  Are you using Lift 0.9 or 0.10-SNAPSHOT?

  In either event, please, from the command line, type mvn clean jetty:run and
  then see if things work.
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA and annotations

2008-09-01 Thread Viktor Klang
Seems like my memory doesn't serve anyone any good today either,
here's hopefully the working solution (sitting @ work without access to my
beloved Scalac.

@Column{ var name=O_ID }


http://suereth.blogspot.com/2008/04/scala-annotations.html

On Mon, Sep 1, 2008 at 12:37 PM, Oliver [EMAIL PROTECTED] wrote:

 Viktor
 Well spotted - I shouldn't rely on my memory to write emails.
 Unfortunately,

 @Column(name = NAME)

 gives me exactly the same error.

 On Mon, Sep 1, 2008 at 6:32 PM, Viktor Klang [EMAIL PROTECTED]wrote:

 Hi Oliver!

 I think you need to qualiify the parameter:

 @Column(name = NAME)

 Cheers,
 Viktor


 On Mon, Sep 1, 2008 at 9:27 AM, Oliver [EMAIL PROTECTED] wrote:

 When I try to use the following annotation in a JPA labled entity in a
 Scala class

 @Column(columnName)

 I get a error: wrong number of arguments for constructor Column:
 ()javax.persistence.Column
 Same thing for a @Table(tableName)

 Any ideas?

 cheers
 Oliver







 --
 Viktor Klang
 Rogue Software Architect




 



-- 
Viktor Klang
Rogue Software Architect

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Documentation

2008-09-01 Thread David Pollak


Rob Dickens wrote:
 Maybe good documentation starts with good documentation of the source 
 code itself. How many people really understand what even the 
 initialisation stuff does, I wonder; complicated and undocumented 
 enough for me to give up, anyway (which is saying something).
Rob,

Do you mean the stuff in Boot or some other initialization code?

Thanks,

David


 2008/8/30 Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 Lift desperately needs better documentation prior to the release of
 version 1.0. Despite the efforts of many to create documentation,
 there
 is still no clear path to Lift adoption for the majority of web
 developers out there. At least, none that I can find.

 I am willing to write Lift documentation, but I don't understand Lift
 well enough to do so. I am also unwilling to waste hours searching for
 answers to questions -- that is simply not a worthwhile use of my
 time.

 I am willing to devote an hour a day for the month of September to
 getting a good start on a non-wiki documentation site. What I need is
 permission to post questions to the mailing list.

 The reason I need permission is because when I have a question, I want
 to be able to post it and get a rapid reply. I do not have several
 hours
 to spend on each question searching through the wiki, the mailing
 list,
 and the example code trying to figure out if it has been answered
 before. That is not an efficient use of my time, and I have very
 little
 time.

 This may result in a lot of traffic to the list. I'll have a lot of
 questions. So I suggest the creation of a separate documentation
 mailing list. And if some of the best coders for Lift were on that
 list
 and agreed to try to respond quickly, then I can learn Lift quickly (a
 benefit to me) and I can write the documentation quickly (a benefit to
 the community and new users). Win-win.

 I am even willing to give my phone number to select members of the
 community so that they can call me with answers to questions if that's
 faster than writing an email. This is about getting documentation
 done,
 quickly and accurately. The if you build it, documentation will come
 method does not work in real life.

 It would also be nice if folks on the list would read the
 documentation
 and send corrections, suggestions, comments, etc. to me (maybe via the
 documentation mailing list).

 I've been out of the loop for a couple of months, so maybe some of
 this
 already exists. If so, please enlighten me.

 Does the Lift community think this would be valuable? I can tell
 you now
 that barring some sort of effort along these lines, it is not looking
 like I will ever have the time to make Lift my primary development
 method, and that would be a shame. And if I'm having that problem, I
 suspect that many others are as well. Great documentation = rapid
 adoption. Poor documentation = possibly, consignment to the great heap
 of good ideas that failed.

 Feedback?

 Charles F. Munat
 Seattle


 -- 
 Rob, Lafros.com

 

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Snippet Failure

2008-09-01 Thread David Pollak
On Sun, Aug 31, 2008 at 11:29 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:



 David, Marius,

 It looks like it was an eclipse problem.

 mvn *clean* jetty:run

 Where the clean is very important.


Yep.




 I now have hello world lift up and running, so thank you very much for
 your help with this.


Sure.





 Just out of interest, which IDE do you use?


I use NetBeans for smaller files and Emacs for bigger/more complex files.

NetBeans is great for stuff where the complexity of the file and/or the
project is not too great.

On the other hand, complex parser-combinator files don't edit so well in
NetBeans as the cost of sending the file off to the compiler after each set
of keystrokes is too great.  There are also some projects that just don't
like to be opened in NetBeans (for example, the Lift sites/example code
causes Out of Memory errors in NetBeans.)  For those files/projects, I use
emacs.

As a general rule, if I've got a large number of bulk edits to make, I also
use emacs.  After 30+ years, emacs still has a better interface for editing
text than anything else I've used.




 David Pollak wrote:


 On Aug 31, 9:43 pm, David Pollak [EMAIL PROTECTED]
 wrote:
  On Sun, Aug 31, 2008 at 12:59 PM, Marius [EMAIL PROTECTED]
 wrote:
 
   Hi,
 
   Could you try
 
   lift:HelloWorld.howdy /
 
   or
 
   lift:hello_world.howdy /
 
  I'd remove Eclipse from the equation as well.  The Eclipse plugin is
 Scala
  2.7.2-?? where Lift currently requires 2.7.1.  If your snippet was
 compiled
  by Eclipse, it could cause problems.
 
  Are you using Lift 0.9 or 0.10-SNAPSHOT?
 
  In either event, please, from the command line, type mvn clean jetty:run
 and
  then see if things work.
 

 



-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Logo for Lift

2008-09-01 Thread David Pollak


Viktor Klang wrote:


 On Mon, Sep 1, 2008 at 2:59 PM, David Pollak 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:



 On Mon, Sep 1, 2008 at 12:15 AM, Viktor Klang
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Yeah, it was frickin awesome.

 Now, how about some crew-shirts?

 I kinda like polo-shirts, what do you guys prefer?


 Cafe Press doesn't see to have polo shirts :-(

 http://www.cafepress.com/liftweb


 Ouch, but this wasn't too shabby: 
 http://www.cafepress.com/liftweb.298419546

 I just confirmed that I'm going to ÖreDev this year (I saw that Mr 
 Hohmann will be attending)
 Would be cool to see some lift + scala buzz happening :)
You bet it will.  Luke's pimping Lift and Scala and I'm cross-pimping 
Buy a Feature: http://www.bayfp.org/blog/


 Cheers
 Viktor


  



 Cheers,
 Viktor


 On Sun, Aug 31, 2008 at 11:15 PM, David Pollak [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Folks,

 Tyler and Tim did an awesome job running the Lift logo
 contest at
 99designs.com http://99designs.com.

 Enclosed, please find the SVG and PNG for the new Lift logos.

 Thanks,

 David

 TylerWeir wrote:
  Hey everyone,
 
  We recently held a logo design contest through 99designs
 [ http://www.99designs.com
  ] and we've selected the logo for Lift!
 
  You can see the result at our wiki here [
 http://wiki.liftweb.net/index.php/Main_Page
  ]
 
  Thanks
  
 





 -- 
 Viktor Klang
 Rogue Software Architect





 -- 
 Lift, the simply functional web framework http://liftweb.net
 Collaborative Task Management http://much4.us
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp





 -- 
 Viktor Klang
 Rogue Software Architect

 

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: json form

2008-09-01 Thread Marius

I also copy pasted your code and it compiles and works fine for me.
But if you're using Scala 2.7.2 it might cause problems. Can you try
with 2.7.1?

Br's,
Marius

On Sep 1, 8:04 pm, Marius [EMAIL PROTECTED] wrote:
 Hi,

 I have pretty much the same code working just fine but the imports are
 slightly different

 package lifttest.snippet

 import scala.xml._
 import net.liftweb.http._
 import net.liftweb.http.S._
 import net.liftweb.http.SHtml._
 import net.liftweb.http.{RequestVar}
 import net.liftweb.util.Helpers._
 import net.liftweb.util._
 import net.liftweb.util.Can._
 import net.liftweb.http.js._
 // import net.liftweb.http.js.jquery.JqJsCmds._
 import JsCmds._

 class JSONForm {

   def show(html: Group): NodeSeq = {
 jsonForm(json, html)
   }

   object json extends JsonHandler {
 def apply(in: Any): JsCmd =
   SetHtml(json_result, in match {
 case [EMAIL PROTECTED](processForm, _, p: Map[String, _], _) = {
   println(Cars =  + p(cars))
   println(Name =  + p(name))
   b{p}/b
 }
 case x = bProblem... didn't handle JSON message {x}/b
   })
   }

   def head = head{Script(json.jsCmd)}/head

 }

 Also are you packages set up correctly? What Scala version are you
 using? Can you try mvn clean first ?

 Br's,
 Marius

 On Sep 1, 6:23 pm, Acciaio [EMAIL PROTECTED] wrote:

  import scala.xml._
  import net.liftweb.http._
  import net.liftweb.http.S._
  import net.liftweb.http.SHtml._
  import net.liftweb.http.{RequestVar}
  import net.liftweb.util.Helpers._
  import net.liftweb.util._
  import net.liftweb.util.Can._
  import net.liftweb.http.js._

  class JSONForm {

def show(html: Group): NodeSeq = {
  jsonForm(json, html)  //Both way in this form or in the
  complete one posted before...
}

import JsCmds._
object json extends JsonHandler {
  def apply(in: Any): JsCmd =
SetHtml(json_result, in match {
  case [EMAIL PROTECTED](processForm, _, p: Map[String, _], _) = {
println(Cars =  + p(cars))
b{p}/b
  }
  case x = bProblem... didn't handle JSON message {x}/b
})
}

def head = head{Script(json.jsCmd)}/head
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] correct place for css

2008-09-01 Thread [EMAIL PROTECTED]

Hi,

I have placed all my css in default.css file. Is this wrong?

I notice that the demo's put css in the templates-hidden/default.html,
but this doesnt seem right to me (especially as my css is quite
large),

I also see in the api there is a net.liftweb.builtin.snippet.CSS, but
it is not obvious to me how/ when this should be used.

I guess my question is, what is the correct place to put css.

Also I noticed that if I put a br in my html rather than a br/ it
causes a stack overflow. Is this a bug? Should I report it somewhere?

Thanks,



David.

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Please Welcome Francois Bertrand to the Lift Committers

2008-09-01 Thread David Pollak
Folks,

I'm psyched to announce that Francois Bertrand has joined the Lift
Committers.  Francois wrote the amazing Flot widget for Lift (
http://code.google.com/p/flot-widget-liftweb/ ) as well as other front end
components.  I'm looking forward to these being rolled into the standard
Lift distribution.  I'm also looking forward to seeing what other goodies
Francois rolls into Lift.

Please join me in welcoming him!

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---