[Lift] Re: File Download

2010-03-09 Thread DavidV
Any thoughts on this?  Still trying to get it to work.
Thanks

On Mar 5, 2:56 pm, DavidV  wrote:
> I have recreated a number of StreamingResponse methods from both the
> Loop link above and the Lift book and I still can't seem to get the
> desired effect.  I have been able to get a PlainTextResponse to work
> by using LiftRules.dispatch in the Boot, like so:
>
>     LiftRules.dispatch.prepend {
>       case Req(("analysis" :: "inprocess" :: Nil), _, _) =>
>         () => Full(PlainTextResponse("test"))
>     }
>
> However, I am unable to get any sort of streaming response to work in
> the particular snippet which contains the data I would like to use.
> Here are some of the methods I've tried:
>
>   def textResponse: Box[LiftResponse] = {
>     println("TEXT RESPONSE")
>     val ab = "text would go here"
>     Full(PlainTextResponse(ab,
>       ("Content-Type" -> "text/plain") :: Nil, 200
>     ))
>   }
>
>   def streamingResponseFile: Box[LiftResponse] = {
>     println("STREAMING RESPONSE FILE")
>     val file: File = new File(
>         "C:\\Source\\trunk\\eclipse\\testLift\\src\\main\\webapp\\images\
> \ultra.png"
>     )
>     val length = file.length
>     val fileInput = new java.io.FileInputStream(file)
>     Full(StreamingResponse(fileInput,
>       () => { fileInput.close },
>       length,
>       ("Content-Type" -> "image/png") :: Nil,
>       Nil,
>       200)
>     )
>   }
>
> Do I have to make a LiftRules.dispatch function in the Boot in
> addition to the StreamingResponse in my snippet?
>
> I am trying to download plain text, but it is variable and dependent
> on some parameters and other variables in the particular Snippet
> class.  Would I have to pass that data into the boot method in order
> to get the desired response?  I would prefer to handle it entirely in
> the snippet itself.
>
> Finally, I'm not really sure how exactly to handle the
> Full(StreamingResponse) once I have created it in order to actually
> download the data and save it to the client computer.  Although I
> assume the browser will handle this one I've formatted the Response
> correctly and actually have it working.
>
> Thanks again,
> David
>
> On Mar 4, 11:13 am, Marius  wrote:
>
> > If you want todownloadthrough Lift than yes you can use
> > StreamingResponse, or simply any other LiftResponse (depending on your
> > mime-type) and use LiftRules.dispatch mechanism. But you could also
> > let the container to serve thefile. By default Lift is trying to
> > serve .html, .xhtml, .htm, .xml etc.. You can write your own rules by
> > setting
>
> > LiftRules.liftRequest = {
> >   case req => true // Pattern match whatever you like and return a
> > Boolean
>
> > }
>
> > If Lift cannot find a resource for some reason and you want the
> > container (or subsequent filters) to handle that you can set
>
> > LiftRules.passNotFoundToChain = true
>
> > On 4 mar., 17:09, DavidV  wrote:
>
> > > I am also looking todownloadafilefrom the server that is hosting
> > > my Lift web app.  There is a very useful fileUpload method in the
> > > SHtml class and I was wondering if there may be something similar for
> > > afiledownload?  I was unable to find anything, and searching for
> > > "Lift" or "Scala Liftdownload" on Google returns nothing but pages to
> > >downloadthe libraries, plugins or source code.  I suppose I could use
> > > the StreamingResponse, but I am already saving thefileI need to the
> > > server and it would be nice to be able todownloadit to any client
> > > computer with the typical "Browse" button, similar to the upload,
> > > Thanks,
> > > David
>
> > > On Feb 14, 3:58 pm, Gang  wrote:
>
> > > > Thanks Tim, that's exactly what I'm looking for!
>
> > > > On Feb 14, 11:27 am, Timothy Perrett  wrote:
>
> > > > > See:
>
> > > > >http://blog.getintheloop.eu/2009/3/19/understanding-lift-s-streamingr...
>
> > > > > Construct the CSV in memory and just then stuff it into a streaming 
> > > > > response as a byte array.
>
> > > > > Cheers, Tim
>
> > > > > On 14 Feb 2010, at 16:18, Gang wrote:
>
> > > > > > Hi,
>
> > > > > > I have a question and it may not be a pure Lift one.  But since I'm
> > > > > > working on a Lift app and this group is the most responsive on

[Lift] Re: File Download

2010-03-05 Thread DavidV
I have recreated a number of StreamingResponse methods from both the
Loop link above and the Lift book and I still can't seem to get the
desired effect.  I have been able to get a PlainTextResponse to work
by using LiftRules.dispatch in the Boot, like so:

LiftRules.dispatch.prepend {
  case Req(("analysis" :: "inprocess" :: Nil), _, _) =>
() => Full(PlainTextResponse("test"))
}

However, I am unable to get any sort of streaming response to work in
the particular snippet which contains the data I would like to use.
Here are some of the methods I've tried:

  def textResponse: Box[LiftResponse] = {
println("TEXT RESPONSE")
val ab = "text would go here"
Full(PlainTextResponse(ab,
  ("Content-Type" -> "text/plain") :: Nil, 200
))
  }

  def streamingResponseFile: Box[LiftResponse] = {
println("STREAMING RESPONSE FILE")
val file: File = new File(
"C:\\Source\\trunk\\eclipse\\testLift\\src\\main\\webapp\\images\
\ultra.png"
)
val length = file.length
val fileInput = new java.io.FileInputStream(file)
Full(StreamingResponse(fileInput,
  () => { fileInput.close },
  length,
  ("Content-Type" -> "image/png") :: Nil,
  Nil,
  200)
)
  }

Do I have to make a LiftRules.dispatch function in the Boot in
addition to the StreamingResponse in my snippet?

I am trying to download plain text, but it is variable and dependent
on some parameters and other variables in the particular Snippet
class.  Would I have to pass that data into the boot method in order
to get the desired response?  I would prefer to handle it entirely in
the snippet itself.

Finally, I'm not really sure how exactly to handle the
Full(StreamingResponse) once I have created it in order to actually
download the data and save it to the client computer.  Although I
assume the browser will handle this one I've formatted the Response
correctly and actually have it working.

Thanks again,
David

On Mar 4, 11:13 am, Marius  wrote:
> If you want todownloadthrough Lift than yes you can use
> StreamingResponse, or simply any other LiftResponse (depending on your
> mime-type) and use LiftRules.dispatch mechanism. But you could also
> let the container to serve thefile. By default Lift is trying to
> serve .html, .xhtml, .htm, .xml etc.. You can write your own rules by
> setting
>
> LiftRules.liftRequest = {
>   case req => true // Pattern match whatever you like and return a
> Boolean
>
> }
>
> If Lift cannot find a resource for some reason and you want the
> container (or subsequent filters) to handle that you can set
>
> LiftRules.passNotFoundToChain = true
>
> On 4 mar., 17:09, DavidV  wrote:
>
> > I am also looking todownloadafilefrom the server that is hosting
> > my Lift web app.  There is a very useful fileUpload method in the
> > SHtml class and I was wondering if there may be something similar for
> > afiledownload?  I was unable to find anything, and searching for
> > "Lift" or "Scala Liftdownload" on Google returns nothing but pages to
> >downloadthe libraries, plugins or source code.  I suppose I could use
> > the StreamingResponse, but I am already saving thefileI need to the
> > server and it would be nice to be able todownloadit to any client
> > computer with the typical "Browse" button, similar to the upload,
> > Thanks,
> > David
>
> > On Feb 14, 3:58 pm, Gang  wrote:
>
> > > Thanks Tim, that's exactly what I'm looking for!
>
> > > On Feb 14, 11:27 am, Timothy Perrett  wrote:
>
> > > > See:
>
> > > >http://blog.getintheloop.eu/2009/3/19/understanding-lift-s-streamingr...
>
> > > > Construct the CSV in memory and just then stuff it into a streaming 
> > > > response as a byte array.
>
> > > > Cheers, Tim
>
> > > > On 14 Feb 2010, at 16:18, Gang wrote:
>
> > > > > Hi,
>
> > > > > I have a question and it may not be a pure Lift one.  But since I'm
> > > > > working on a Lift app and this group is the most responsive one I have
> > > > > seen, might just try it here.
>
> > > > > I need todownloaddata from database in CSV format.  What is the best
> > > > > approach within Lift framework?  Do I have to write the data on the
> > > > > server somewhere and then provide user with a link?  I have tried to
> > > > > google "scala, lift,filedownload...", but could not come up with
> > > > > what I'm looking for.  Maybe I didn't use the right key words in
> > > &

[Lift] Re: File Download

2010-03-04 Thread DavidV
I am also looking to download a file from the server that is hosting
my Lift web app.  There is a very useful fileUpload method in the
SHtml class and I was wondering if there may be something similar for
a file download?  I was unable to find anything, and searching for
"Lift" or "Scala Lift download" on Google returns nothing but pages to
download the libraries, plugins or source code.  I suppose I could use
the StreamingResponse, but I am already saving the file I need to the
server and it would be nice to be able to download it to any client
computer with the typical "Browse" button, similar to the upload,
Thanks,
David

On Feb 14, 3:58 pm, Gang  wrote:
> Thanks Tim, that's exactly what I'm looking for!
>
> On Feb 14, 11:27 am, Timothy Perrett  wrote:
>
> > See:
>
> >http://blog.getintheloop.eu/2009/3/19/understanding-lift-s-streamingr...
>
> > Construct the CSV in memory and just then stuff it into a streaming 
> > response as a byte array.
>
> > Cheers, Tim
>
> > On 14 Feb 2010, at 16:18, Gang wrote:
>
> > > Hi,
>
> > > I have a question and it may not be a pure Lift one.  But since I'm
> > > working on a Lift app and this group is the most responsive one I have
> > > seen, might just try it here.
>
> > > I need todownloaddata from database in CSV format.  What is the best
> > > approach within Lift framework?  Do I have to write the data on the
> > > server somewhere and then provide user with a link?  I have tried to
> > > google "scala, lift,filedownload...", but could not come up with
> > > what I'm looking for.  Maybe I didn't use the right key words in
> > > search?  Thanks in advance!
>
> > > Brs
> > > Gang
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Lift" group.
> > > To post to this group, send email to lift...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > liftweb+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/liftweb?hl=en.-Hide quoted text -
>
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: stateful submit

2009-11-24 Thread DavidV
Capturing the value depends on reading it from the URL as a parameter,
so even if it's local, after I submit the form and the page reloads
without the "id" parameter in the URL, I still get the None.get error
because it is trying find a parameter that isn't there.  I need some
way to keep the parameter in the URL after the form is submitted...

On Nov 24, 2:10 pm, Ross Mellgren  wrote:
> Try capturing it as a local variable?
>
> e.g.
>
> def chooseIndex(ns: NodeSeq): NodeSeq = {
>    val myParam = S.param("id")
>    def getImgs(s: String) = /* work with myParam here */
>    ..
>
> }
>
> If you want getImgs to be outside, then you can pass it in,
>
> def getImgs(s: String, myParam: Option[String]) = ...
>
> def chooseIndex(ns: NodeSeq): NodeSeq = {
>      val myParam = S.param("id")
>     { submit(..., () => getImgs("met", myParam)) }
>
> }
>
> -Ross
>
> On Nov 24, 2009, at 2:02 PM, DavidV wrote:
>
> > I have searched a number of threads and have found similar posts but
> > nothing the exactly answers this relatively simple question.
> > I am using the Lift submit method (net.liftweb.http.Shtml.submit) to
> > submit a form.  Upon submission, I want to execute another method
> > called getImgs(s: String), so I have set up my submit button as so:
>
> > def chooseIndex: NodeSeq = {
> > ...
> > {submit("Metabolic Reserve Index", () => getImgs("met"))}
> > ...
> > }
>
> > In my .html file for this page I call the snippet with form="post"
> > 
>
> > The getImgs method has a variable that relies on a URL parameter that
> > is lost when I click the submit button, so my S.param("id").get
> > returns a None.get error.  How can I retain the parameter through the
> > submit process?  Is it best to use a StatefulSnippet?  Can I read in
> > the parameter as an attribute?  I feel like like there are a number of
> > ways to accomplish this, but what is the best, or most "lifty" way?
>
> > Thanks,
> > David
>
> > --
>
> > You received this message because you are subscribed to the Google  
> > Groups "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > liftweb+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en
> > .

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] stateful submit

2009-11-24 Thread DavidV
I have searched a number of threads and have found similar posts but
nothing the exactly answers this relatively simple question.
I am using the Lift submit method (net.liftweb.http.Shtml.submit) to
submit a form.  Upon submission, I want to execute another method
called getImgs(s: String), so I have set up my submit button as so:

def chooseIndex: NodeSeq = {
...
{submit("Metabolic Reserve Index", () => getImgs("met"))}
...
}

In my .html file for this page I call the snippet with form="post"


The getImgs method has a variable that relies on a URL parameter that
is lost when I click the submit button, so my S.param("id").get
returns a None.get error.  How can I retain the parameter through the
submit process?  Is it best to use a StatefulSnippet?  Can I read in
the parameter as an attribute?  I feel like like there are a number of
ways to accomplish this, but what is the best, or most "lifty" way?

Thanks,
David

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: problems with tomcat

2009-11-24 Thread DavidV
Update:
The tomcat incompatability with the external server was caused by a
Java version mismatch.  I was compiling my scala code with a newer
version of the JDK.  I had an older JDK installed on the external
server and this was causing a problem with some of my class files (but
not others, oddly).  Anyway, I updated my JDK version on the linux
server and now the website is working correctly.  Thanks for all the
help!

On Nov 17, 7:42 pm, Naftoli Gugenheim  wrote:
> If you call maven with the right parameter it will skip the tests. I think 
> it's something like -Dmaven.tests.skip .
>
> -----
>
> DavidV wrote:
>
> More specifically, I am trying to follow the stack trace to lead me to
> some sort of URL so that I can see where and why this connection is
> trying to be made.  I'm not sure why the AppTest needs to make a
> connection in the first place.  Can I just skip the Test portion of
> the mvn package command?  Or do I have hard code the proxy settings
> somewhere other than in my maven settings.xml file?  I'm still
> struggling with this problem...
>
> On Nov 16, 10:54 am, DavidV  wrote:
>
> > For the time being I have code that compiles correctly and I am
> > leaving eclipse completely out of the picture.  I am running Windows
> > Vista 64bit. I have quit eclipse and tried to run a "mvn clean
> > install" to rebuild my project, but I get the exact same error that I
> > previously posted (ConnectException) regarding the AppTest failure
> > when the install command executes the "TESTS".  Therefore, the build
> > fails.
> > ...
> > ---
> >  T E S T S
> > ---
> > Running net.genomas.lift.test.AppTest
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.199
> > sec <<< FA
> > ILURE!
>
> > Results :
>
> > Tests in error:
> >   testXml(net.genomas.lift.test.AppTest)
>
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>
> > [INFO]
> > 
> > [ERROR] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] There are test failures.
>
> > ...
>
> > If I run the project with "mvn cleantomcat:run" it works fine because
> > it doesn't execute the "TESTS" step.
>
> > I think that myproblemswith remotetomcatserver may stem from
> > eclipse messing up the correct maven packaging of the .war file.  I'm
> > still trying to figure out what is causing this ConnectException
> > whenever AppTest.scala is executed that is preventing me from
> > performing a normal "mvn package"
>
> > On Nov 13, 6:39 pm, David Pollak 
> > wrote:
>
> > > On Fri, Nov 13, 2009 at 9:15 AM, DavidV  
> > > wrote:
>
> > > > When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run
> > > > my code through maven.  However, I am concerned about my inability to
> > > > run the "mvn clean package" command successfully without first running
> > > > the "clean" command in eclipse.
>
> > > Yeah... Eclipse is generally a problem.
>
> > > Are you running Windows or Linux/Mac?
>
> > > Can you quite Eclipses before doing a build.
>
> > > >  I am afraid that this extra eclipse
> > > > step may be interfering with the proper creation of the .war file
> > > > which may be contributing to the problem.  When I try to execute "mvn
> > > > clean package" without eclipse I get the following error appearing in
> > > > my surefire-report:
>
> > > > ---
> > > > Test set: net.genomas.lift.test.AppTest
>
> > > > ---
> > > > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.251
> > > > sec <<< FAILURE!
> > > > testXml(net.genomas.lift.test.AppTest)  Time elapsed: 1.228 sec  <<<
> > > > ERROR!
> > > > java.net.ConnectException: Connection refused: connect
> > > >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> > > >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > > >        at 
> > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
>

[Lift] Re: problems with tomcat

2009-11-17 Thread DavidV
I skipped the Test portion of mvn package by removing the testCompile
goal from my pom file under the maven-scala-plugin.  War packaging is
now working correctly, but the webapp still isn't deploying on the
remote Tomcat server...will keep at it and will post my solution if I
find one...  I think it still has to do with my database connection

On Nov 17, 10:41 am, DavidV  wrote:
> More specifically, I am trying to follow the stack trace to lead me to
> some sort of URL so that I can see where and why this connection is
> trying to be made.  I'm not sure why the AppTest needs to make a
> connection in the first place.  Can I just skip the Test portion of
> the mvn package command?  Or do I have hard code the proxy settings
> somewhere other than in my maven settings.xml file?  I'm still
> struggling with this problem...
>
> On Nov 16, 10:54 am, DavidV  wrote:
>
> > For the time being I have code that compiles correctly and I am
> > leaving eclipse completely out of the picture.  I am running Windows
> > Vista 64bit. I have quit eclipse and tried to run a "mvn clean
> > install" to rebuild my project, but I get the exact same error that I
> > previously posted (ConnectException) regarding the AppTest failure
> > when the install command executes the "TESTS".  Therefore, the build
> > fails.
> > ...
> > ---
> >  T E S T S
> > ---
> > Running net.genomas.lift.test.AppTest
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.199
> > sec <<< FA
> > ILURE!
>
> > Results :
>
> > Tests in error:
> >   testXml(net.genomas.lift.test.AppTest)
>
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>
> > [INFO]
> > 
> > [ERROR] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] There are test failures.
>
> > ...
>
> > If I run the project with "mvn cleantomcat:run" it works fine because
> > it doesn't execute the "TESTS" step.
>
> > I think that my problems with remotetomcatserver may stem from
> > eclipse messing up the correct maven packaging of the .war file.  I'm
> > still trying to figure out what is causing this ConnectException
> > whenever AppTest.scala is executed that is preventing me from
> > performing a normal "mvn package"
>
> > On Nov 13, 6:39 pm, David Pollak 
> > wrote:
>
> > > On Fri, Nov 13, 2009 at 9:15 AM, DavidV  
> > > wrote:
>
> > > > When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run
> > > > my code through maven.  However, I am concerned about my inability to
> > > > run the "mvn clean package" command successfully without first running
> > > > the "clean" command in eclipse.
>
> > > Yeah... Eclipse is generally a problem.
>
> > > Are you running Windows or Linux/Mac?
>
> > > Can you quite Eclipses before doing a build.
>
> > > >  I am afraid that this extra eclipse
> > > > step may be interfering with the proper creation of the .war file
> > > > which may be contributing to the problem.  When I try to execute "mvn
> > > > clean package" without eclipse I get the following error appearing in
> > > > my surefire-report:
>
> > > > ---
> > > > Test set: net.genomas.lift.test.AppTest
>
> > > > ---
> > > > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.251
> > > > sec <<< FAILURE!
> > > > testXml(net.genomas.lift.test.AppTest)  Time elapsed: 1.228 sec  <<<
> > > > ERROR!
> > > > java.net.ConnectException: Connection refused: connect
> > > >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> > > >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > > >        at 
> > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> > > > 195)
> > > >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> > > >        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> > > >        at java.net.Socket.conn

[Lift] Re: problems with tomcat

2009-11-17 Thread DavidV
More specifically, I am trying to follow the stack trace to lead me to
some sort of URL so that I can see where and why this connection is
trying to be made.  I'm not sure why the AppTest needs to make a
connection in the first place.  Can I just skip the Test portion of
the mvn package command?  Or do I have hard code the proxy settings
somewhere other than in my maven settings.xml file?  I'm still
struggling with this problem...

On Nov 16, 10:54 am, DavidV  wrote:
> For the time being I have code that compiles correctly and I am
> leaving eclipse completely out of the picture.  I am running Windows
> Vista 64bit. I have quit eclipse and tried to run a "mvn clean
> install" to rebuild my project, but I get the exact same error that I
> previously posted (ConnectException) regarding the AppTest failure
> when the install command executes the "TESTS".  Therefore, the build
> fails.
> ...
> ---
>  T E S T S
> ---
> Running net.genomas.lift.test.AppTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.199
> sec <<< FA
> ILURE!
>
> Results :
>
> Tests in error:
>   testXml(net.genomas.lift.test.AppTest)
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] There are test failures.
>
> ...
>
> If I run the project with "mvn cleantomcat:run" it works fine because
> it doesn't execute the "TESTS" step.
>
> I think that my problems with remotetomcatserver may stem from
> eclipse messing up the correct maven packaging of the .war file.  I'm
> still trying to figure out what is causing this ConnectException
> whenever AppTest.scala is executed that is preventing me from
> performing a normal "mvn package"
>
> On Nov 13, 6:39 pm, David Pollak 
> wrote:
>
> > On Fri, Nov 13, 2009 at 9:15 AM, DavidV  wrote:
>
> > > When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run
> > > my code through maven.  However, I am concerned about my inability to
> > > run the "mvn clean package" command successfully without first running
> > > the "clean" command in eclipse.
>
> > Yeah... Eclipse is generally a problem.
>
> > Are you running Windows or Linux/Mac?
>
> > Can you quite Eclipses before doing a build.
>
> > >  I am afraid that this extra eclipse
> > > step may be interfering with the proper creation of the .war file
> > > which may be contributing to the problem.  When I try to execute "mvn
> > > clean package" without eclipse I get the following error appearing in
> > > my surefire-report:
>
> > > ---
> > > Test set: net.genomas.lift.test.AppTest
>
> > > ---
> > > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.251
> > > sec <<< FAILURE!
> > > testXml(net.genomas.lift.test.AppTest)  Time elapsed: 1.228 sec  <<<
> > > ERROR!
> > > java.net.ConnectException: Connection refused: connect
> > >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> > >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > >        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> > > 195)
> > >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> > >        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> > >        at java.net.Socket.connect(Socket.java:525)
> > >        at java.net.Socket.connect(Socket.java:475)
> > >        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> > >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> > >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> > >        at sun.net.www.http.HttpClient.(HttpClient.java:233)
> > >        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> > >        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> > >        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
> > > (HttpURLConnection.java:860)
> > >        at sun.net.www.protocol.http.HttpURLConnection.plainConnect
> > > (HttpURLConnection.java:80

[Lift] Re: problems with tomcat

2009-11-16 Thread DavidV

For the time being I have code that compiles correctly and I am
leaving eclipse completely out of the picture.  I am running Windows
Vista 64bit. I have quit eclipse and tried to run a "mvn clean
install" to rebuild my project, but I get the exact same error that I
previously posted (ConnectException) regarding the AppTest failure
when the install command executes the "TESTS".  Therefore, the build
fails.
...
---
 T E S T S
---
Running net.genomas.lift.test.AppTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.199
sec <<< FA
ILURE!

Results :

Tests in error:
  testXml(net.genomas.lift.test.AppTest)

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] There are test failures.

...

If I run the project with "mvn clean tomcat:run" it works fine because
it doesn't execute the "TESTS" step.

I think that my problems with remote tomcat server may stem from
eclipse messing up the correct maven packaging of the .war file.  I'm
still trying to figure out what is causing this ConnectException
whenever AppTest.scala is executed that is preventing me from
performing a normal "mvn package"


On Nov 13, 6:39 pm, David Pollak 
wrote:
> On Fri, Nov 13, 2009 at 9:15 AM, DavidV  wrote:
>
> > When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run
> > my code through maven.  However, I am concerned about my inability to
> > run the "mvn clean package" command successfully without first running
> > the "clean" command in eclipse.
>
> Yeah... Eclipse is generally a problem.
>
> Are you running Windows or Linux/Mac?
>
> Can you quite Eclipses before doing a build.
>
>
>
>
>
>
>
> >  I am afraid that this extra eclipse
> > step may be interfering with the proper creation of the .war file
> > which may be contributing to the problem.  When I try to execute "mvn
> > clean package" without eclipse I get the following error appearing in
> > my surefire-report:
>
> > ---
> > Test set: net.genomas.lift.test.AppTest
>
> > ---
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.251
> > sec <<< FAILURE!
> > testXml(net.genomas.lift.test.AppTest)  Time elapsed: 1.228 sec  <<<
> > ERROR!
> > java.net.ConnectException: Connection refused: connect
> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> > 195)
> >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >        at java.net.Socket.connect(Socket.java:525)
> >        at java.net.Socket.connect(Socket.java:475)
> >        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> >        at sun.net.www.http.HttpClient.(HttpClient.java:233)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> >        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
> > (HttpURLConnection.java:860)
> >        at sun.net.www.protocol.http.HttpURLConnection.plainConnect
> > (HttpURLConnection.java:801)
> >        at sun.net.www.protocol.http.HttpURLConnection.connect
> > (HttpURLConnection.java:726)
> >        at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> > (HttpURLConnection.java:1049)
> >        at
> > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
> > (XMLEntityManager.java:677)
> >        at
> > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity
> > (XMLEntityManager.java:1315)
> >        at
> > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity
> > (XMLEntityManager.java:1282)
> >        at
> > com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource
> > (XMLDTDScannerImpl.java:283)
> >        at com.sun.org.apache.xerces.internal.impl.XML

[Lift] Re: problems with tomcat

2009-11-13 Thread DavidV
h(BoxedArray.scala:45)
at scala.Iterable$class.foreach(Iterable.scala:256)
at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
at net.genomas.lift.test.AppTest.wellFormed$1(AppTest.scala:48)
at net.genomas.lift.test.AppTest.testXml(AppTest.scala:65)

I am working behind a firewall that is important for the security of
our data where I work, so it cannot be disabled.  I also work behind a
proxy but I have configured the maven settings.xml file to get past
the proxy, and that definitely works because I am able to
download .jar files, etc from the internet when I update to newer
versions of scala/lift.

I would like to be able to run "mvn clean package" successfully
without using eclipse at all to ensure that I am getting a correctly
configured .war file.  This may be the reason that I am having trouble
deploying to Tomcat.  Any ideas regarding how to fix this connection
failure?

Thanks,
David



On Nov 12, 4:59 pm, David Pollak 
wrote:
> Scala is very, very, super ultra mega version fragile.  This means that code
> compiled with 2.7.5 will not work with code compiled with 2.7.7 and vice
> versa.
>
> So, in your pom.xml file, please set your scala version to 2.7.5 (nothing
> else... not 2.7.4, not 2.7.7) and lift to 1.0.2
>
> Then mvn clean tomcat:run -- does it work?
>
> Then mvn clean install -- does the WAR file work in Tomcat?
>
> On Thu, Nov 12, 2009 at 1:10 PM, DavidV  wrote:
>
> > Another potentially helpful detail is that I get the same liftFilter
> > error when running on a local jetty server through maven as I do when
> > running on tomcat (also through maven).  I am executing a clean
> > command before running the web app each and every time.
>
> > ...
> > 2009-11-12 16:10:05.833::WARN:  failed LiftFilter:
> > java.lang.AbstractMethodError
>
> > 2009-11-12 16:10:05.834::WARN:  failed
> > org.mortbay.jetty.plugin.Jetty6PluginWebA
> > ppcont...@14c0275{/,C:\Source\trunk\eclipse\testLift\src\main\webapp}:
> > java.lang
> > .AbstractMethodError
> > ...
>
> > On Nov 12, 3:40 pm, DavidV  wrote:
> > > I just tried to run the same code that used to work with Lift-1.0.1
> > > and Scala 2.7.5 with my updates to Lift 1.0.1 and Scala 2.7.7 and I
> > > got the following error:
>
> > > [INFO] [tomcat:run {execution: default-cli}]
> > > [INFO] Running war onhttp://localhost:8080/portal
> > > [INFO] Creating Tomcat server configuration at c:\Source\trunk\eclipse
> > > \testLift\
> > > target\tomcat
> > > Nov 12, 2009 3:36:51 PM org.apache.catalina.startup.Embedded start
> > > INFO: Starting tomcat server
> > > Nov 12, 2009 3:36:51 PM org.apache.catalina.core.StandardEngine start
> > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
> > > Nov 12, 2009 3:36:53 PM org.apache.catalina.core.StandardContext
> > > filterStart
> > > SEVERE: Exception starting filterLiftFilter
> > > java.lang.AbstractMethodError
> > >         at scala.actors.Scheduler$.impl(Scheduler.scala:35)
> > >         at scala.actors.Scheduler$.execute(Scheduler.scala:101)
> > >         at scala.actors.Actor$class.start(Actor.scala:783)
> > >         at net.liftweb.http.PointlessActorToWorkAroundBug$.start
> > > (LiftServlet.sca
> > > la:702)
> > >         at net.liftweb.http.PointlessActorToWorkAroundBug$.ctor
> > > (LiftServlet.scal
> > > a:767)
> > >         at net.liftweb.http.PointlessActorToWorkAroundBug$.
> > > (LiftServlet.sc
> > > ala:776)
> > >         at net.liftweb.http.PointlessActorToWorkAroundBug$.
> > > (LiftServlet.
> > > scala)
> > >         at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563)
> > >         at org.apache.catalina.core.ApplicationFilterConfig.getFilter
> > > (Applicatio
> > > nFilterConfig.java:275)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
> > > tionFilterConfig.java:397)
> > >         at org.apache.catalina.core.ApplicationFilterConfig.
> > > (ApplicationFi
> > > lterConfig.java:108)
> > >         at org.apache.catalina.core.StandardContext.filterStart
> > > (StandardContext.
> > > java:3709)
> > >         at org.apache.catalina.core.StandardContext.start
> > > (StandardContext.java:4
> > > 356)
> > >         at org.apache.catalina.core.ContainerBase.start
> > > (ContainerBase.java:1045)
>
> > >         at org.apache.catalina.core.StandardHost.start
> > > (Standa

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV

Another potentially helpful detail is that I get the same liftFilter
error when running on a local jetty server through maven as I do when
running on tomcat (also through maven).  I am executing a clean
command before running the web app each and every time.

...
2009-11-12 16:10:05.833::WARN:  failed LiftFilter:
java.lang.AbstractMethodError

2009-11-12 16:10:05.834::WARN:  failed
org.mortbay.jetty.plugin.Jetty6PluginWebA
ppcont...@14c0275{/,C:\Source\trunk\eclipse\testLift\src\main\webapp}:
java.lang
.AbstractMethodError
...



On Nov 12, 3:40 pm, DavidV  wrote:
> I just tried to run the same code that used to work with Lift-1.0.1
> and Scala 2.7.5 with my updates to Lift 1.0.1 and Scala 2.7.7 and I
> got the following error:
>
> [INFO] [tomcat:run {execution: default-cli}]
> [INFO] Running war onhttp://localhost:8080/portal
> [INFO] Creating Tomcat server configuration at c:\Source\trunk\eclipse
> \testLift\
> target\tomcat
> Nov 12, 2009 3:36:51 PM org.apache.catalina.startup.Embedded start
> INFO: Starting tomcat server
> Nov 12, 2009 3:36:51 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
> Nov 12, 2009 3:36:53 PM org.apache.catalina.core.StandardContext
> filterStart
> SEVERE: Exception starting filterLiftFilter
> java.lang.AbstractMethodError
>         at scala.actors.Scheduler$.impl(Scheduler.scala:35)
>         at scala.actors.Scheduler$.execute(Scheduler.scala:101)
>         at scala.actors.Actor$class.start(Actor.scala:783)
>         at net.liftweb.http.PointlessActorToWorkAroundBug$.start
> (LiftServlet.sca
> la:702)
>         at net.liftweb.http.PointlessActorToWorkAroundBug$.ctor
> (LiftServlet.scal
> a:767)
>         at net.liftweb.http.PointlessActorToWorkAroundBug$.
> (LiftServlet.sc
> ala:776)
>         at net.liftweb.http.PointlessActorToWorkAroundBug$.
> (LiftServlet.
> scala)
>         at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter
> (Applicatio
> nFilterConfig.java:275)
>         at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
> tionFilterConfig.java:397)
>         at org.apache.catalina.core.ApplicationFilterConfig.
> (ApplicationFi
> lterConfig.java:108)
>         at org.apache.catalina.core.StandardContext.filterStart
> (StandardContext.
> java:3709)
>         at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4
> 356)
>         at org.apache.catalina.core.ContainerBase.start
> (ContainerBase.java:1045)
>
>         at org.apache.catalina.core.StandardHost.start
> (StandardHost.java:719)
>         at org.apache.catalina.core.ContainerBase.start
> (ContainerBase.java:1045)
>
>         at org.apache.catalina.core.StandardEngine.start
> (StandardEngine.java:443
> )
>         at org.apache.catalina.startup.Embedded.start(Embedded.java:
> 825)
>         at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer
> (AbstractRunMo
> jo.java:385)
>         at org.codehaus.mojo.tomcat.AbstractRunMojo.execute
> (AbstractRunMojo.java
> :144)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> (DefaultPlugi
> nManager.java:490)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:694)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:569)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:387)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (DefaultLi
> fecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> 138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main
> (CompatibleMain.java:6
> 0)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced
> (Launcher.java:315)
&g

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV

I just tried to run the same code that used to work with Lift-1.0.1
and Scala 2.7.5 with my updates to Lift 1.0.1 and Scala 2.7.7 and I
got the following error:

[INFO] [tomcat:run {execution: default-cli}]
[INFO] Running war on http://localhost:8080/portal
[INFO] Creating Tomcat server configuration at c:\Source\trunk\eclipse
\testLift\
target\tomcat
Nov 12, 2009 3:36:51 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Nov 12, 2009 3:36:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Nov 12, 2009 3:36:53 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter LiftFilter
java.lang.AbstractMethodError
at scala.actors.Scheduler$.impl(Scheduler.scala:35)
at scala.actors.Scheduler$.execute(Scheduler.scala:101)
at scala.actors.Actor$class.start(Actor.scala:783)
at net.liftweb.http.PointlessActorToWorkAroundBug$.start
(LiftServlet.sca
la:702)
at net.liftweb.http.PointlessActorToWorkAroundBug$.ctor
(LiftServlet.scal
a:767)
at net.liftweb.http.PointlessActorToWorkAroundBug$.
(LiftServlet.sc
ala:776)
at net.liftweb.http.PointlessActorToWorkAroundBug$.
(LiftServlet.
scala)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter
(Applicatio
nFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
tionFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.
(ApplicationFi
lterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart
(StandardContext.
java:3709)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4
356)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)

at org.apache.catalina.core.StandardHost.start
(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443
)
at org.apache.catalina.startup.Embedded.start(Embedded.java:
825)
at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer
(AbstractRunMo
jo.java:385)
at org.codehaus.mojo.tomcat.AbstractRunMojo.execute
(AbstractRunMojo.java
:144)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main
(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Nov 12, 2009 3:36:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Nov 12, 2009 3:36:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/portal] startup failed due to previous errors
Nov 12, 2009 3:36:53 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 12, 2009 3:36:54 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080

This seems more consistent with whatever is happening on the external
tomcat server...
Thoughts?  Also, any ideas about the test failures during the mvn
clean package command?

Thanks, I finally feel like I'm getting somewhere now!
-David

On Nov 12, 3:21 pm, DavidV  wrote:
> On a side note, while I'm installing Lift 1.0.2 with Scala2.7.5, I
> always execute a "clean" command before th

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV

On a side note, while I'm installing Lift 1.0.2 with Scala2.7.5, I
always execute a "clean" command before the mvn package.  However, I
also need to execute a "clean" in eclipse before the mvn package works
properly.  Otherwise, I get this error:

---
 T E S T S
---
Running net.genomas.lift.test.AppTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.258
sec <<< FA
ILURE!

Results :

Tests in error:
  testXml(net.genomas.lift.test.AppTest)

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] There are test failures.

Please refer to c:\Source\trunk\eclipse\testLift\target\surefire-
reports for the
 individual test results.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 32 seconds
[INFO] Finished at: Thu Nov 12 15:21:06 EST 2009
[INFO] Final Memory: 29M/53M
[INFO]



I now have Lift-1.0.2 and Scala 2.7.7 and am testing with tomcat.



On Nov 12, 2:43 pm, David Pollak 
wrote:
> On Thu, Nov 12, 2009 at 11:36 AM, DavidV  wrote:
>
> > I don't appear to have any conflicting jars in my TOMCAT_HOME/common/
> > lib folder, however, I am now realizing that I have a postgres
> > jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in
> > my webapp.  Perhaps that is the problem?  I'll check that out.
>
> > I am using Lift 1.0.1 with Scala version 2.7.5
>
> Please use Lift 1.0.2
>
> Please delete ~/.m2 (or whereever your Maven repository is)
>
> Please do a "mvn clean install"
>
> Then test locally (mvn tomcat:run)  If it works, copy to your other Tomcat
> instance and see how things work.
>
>
>
> > It does work with the tomcat on my computer, which leads me to believe
> > that it should be compatible with the current versions of Lift/Scala
> > that I'm using.  Maybe that's an incorrect assumption though, as I'm
> > not very familiar with tomcat.
>
> > On Nov 12, 2:15 pm, David Pollak 
> > wrote:
> > > What version of Lift are you using?
>
> > > If it's Lift 1.1-M7 or 1.1-SNAPSHOT, please make sure you've got the
> > Scala
> > > version set to 2.7.7
>
> > > If you're using Eclipse for development, please make sure to do a mvn
> > *clean
> > > * package to build your WAR file.  The clean phase is super important.
>
> > > On Thu, Nov 12, 2009 at 11:07 AM, DavidV 
> > wrote:
>
> > > > I am having some issues deploying my Lift web application to a tomcat
> > > > server.
> > > > When I run tomcat through maven (mvn tomcat:run), the web application
> > > > works properly and connects to my postgres database.  However, when I
> > > > use mvn package to create a war file which I then deploy to a local
> > > > tomcat server (on my computer) only the HTML of the web application
> > > > appears and the snippets with the application's content fail.  It
> > > > appears to be a problem with the sitemap loading properly, because I
> > > > changed the sitemap by deleting one of many Loc.If parameters and the
> > > > web application then worked as expected.  However, when I then tried
> > > > to deploy the same .war file to a tomcat server on a different
> > > > computer, the web app failed again, showing only the HTML and not the
> > > > snippets.  I suspect that perhaps this is because I need to change my
> > > > url to the postgres database, but I've tried many permutations of the
> > > > url and none seem to work.
> > > > To make things worse, the logging doesn't seem to be working properly
> > > > making it difficult to diagnose the exact problem.  I can't locate a
> > > > stdout.log file anywhere.  In my catalina.out file I get the following
> > > > error:
>
> > > > java.lang.NullPointerException
> > > >        at scala.runtime.BoxesRunTime.boxToInteger(Unknown Source)
> > > >        at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
> > > > (Actor.scala:800)
> > > >        at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
> > > > (Ac

[Lift] Re: problems with tomcat

2009-11-12 Thread DavidV

I don't appear to have any conflicting jars in my TOMCAT_HOME/common/
lib folder, however, I am now realizing that I have a postgres
jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in
my webapp.  Perhaps that is the problem?  I'll check that out.

I am using Lift 1.0.1 with Scala version 2.7.5
It does work with the tomcat on my computer, which leads me to believe
that it should be compatible with the current versions of Lift/Scala
that I'm using.  Maybe that's an incorrect assumption though, as I'm
not very familiar with tomcat.

On Nov 12, 2:15 pm, David Pollak 
wrote:
> What version of Lift are you using?
>
> If it's Lift 1.1-M7 or 1.1-SNAPSHOT, please make sure you've got the Scala
> version set to 2.7.7
>
> If you're using Eclipse for development, please make sure to do a mvn *clean
> * package to build your WAR file.  The clean phase is super important.
>
>
>
> On Thu, Nov 12, 2009 at 11:07 AM, DavidV  wrote:
>
> > I am having some issues deploying my Lift web application to a tomcat
> > server.
> > When I run tomcat through maven (mvn tomcat:run), the web application
> > works properly and connects to my postgres database.  However, when I
> > use mvn package to create a war file which I then deploy to a local
> > tomcat server (on my computer) only the HTML of the web application
> > appears and the snippets with the application's content fail.  It
> > appears to be a problem with the sitemap loading properly, because I
> > changed the sitemap by deleting one of many Loc.If parameters and the
> > web application then worked as expected.  However, when I then tried
> > to deploy the same .war file to a tomcat server on a different
> > computer, the web app failed again, showing only the HTML and not the
> > snippets.  I suspect that perhaps this is because I need to change my
> > url to the postgres database, but I've tried many permutations of the
> > url and none seem to work.
> > To make things worse, the logging doesn't seem to be working properly
> > making it difficult to diagnose the exact problem.  I can't locate a
> > stdout.log file anywhere.  In my catalina.out file I get the following
> > error:
>
> > java.lang.NullPointerException
> >        at scala.runtime.BoxesRunTime.boxToInteger(Unknown Source)
> >        at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
> > (Actor.scala:800)
> >        at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
> > (Actor.scala:794)
> >        at scala.actors.Reaction.run(Reaction.scala:82)
> >        at net.liftweb.http.ActorSchedulerFixer$$anon$1$$anon$3.run
> > (LiftServlet.scala:673)
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> > (ThreadPoolExecutor.java:650)
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.run
> > (ThreadPoolExecutor.java:675)
> >        at java.lang.Thread.run(Thread.java:595)
>
> > I also get an error that says:
> > log4j:WARN Please initialize the log4j system properly.
>
> > Do I need to configure log4j in order to get the stdout.log file?
>
> > Any ideas of what might be going on here?
>
> > Thanks,
> > David
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics
--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] problems with tomcat

2009-11-12 Thread DavidV

I am having some issues deploying my Lift web application to a tomcat
server.
When I run tomcat through maven (mvn tomcat:run), the web application
works properly and connects to my postgres database.  However, when I
use mvn package to create a war file which I then deploy to a local
tomcat server (on my computer) only the HTML of the web application
appears and the snippets with the application's content fail.  It
appears to be a problem with the sitemap loading properly, because I
changed the sitemap by deleting one of many Loc.If parameters and the
web application then worked as expected.  However, when I then tried
to deploy the same .war file to a tomcat server on a different
computer, the web app failed again, showing only the HTML and not the
snippets.  I suspect that perhaps this is because I need to change my
url to the postgres database, but I've tried many permutations of the
url and none seem to work.
To make things worse, the logging doesn't seem to be working properly
making it difficult to diagnose the exact problem.  I can't locate a
stdout.log file anywhere.  In my catalina.out file I get the following
error:

java.lang.NullPointerException
at scala.runtime.BoxesRunTime.boxToInteger(Unknown Source)
at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
(Actor.scala:800)
at scala.actors.Actor$$anonfun$scala$actors$Actor$$seq$1.apply
(Actor.scala:794)
at scala.actors.Reaction.run(Reaction.scala:82)
at net.liftweb.http.ActorSchedulerFixer$$anon$1$$anon$3.run
(LiftServlet.scala:673)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

I also get an error that says:
log4j:WARN Please initialize the log4j system properly.

Do I need to configure log4j in order to get the stdout.log file?

Any ideas of what might be going on here?

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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Announcing 1.0.1!

2009-09-10 Thread DavidV

I am running Scala 2.7.5 final and would like to upgrade to Lift
1.0.1.  I have never upgraded my Lift before (still running 1.0) and
am not sure how to do it without creating a new project.  I using
Maven and the jetty server to compile my lift code.  I know how to
modify a .pom file and some basic command prompt maven commands.  Can
I use mvn install, or mvn update or something similar?  I'm sure this
is very straightforward and easy but am having a hard time figuring it
out and certainly don't want to mess up my webapp.
Thanks and looking forward to working with 1.0.1
David

On Sep 10, 11:34 am, David Pollak 
wrote:
> Hmmm... the pointless actor fix thingy should not have been included in
> 1.0.1.
> Lemme look into it.
>
> On Thu, Sep 10, 2009 at 5:06 AM, Stuart Roebuck 
> wrote:
>
>
>
>
>
>
>
> > I've switched a very simple test project from 1.0 to 1.0.1 and
> > switched the scala version to 2.7.5
>
> > Now I've started seeing the following in my jetty log:
>
> > ERROR - [MEMDEBUG] failure
> > java.lang.NoSuchFieldException: refSet
> >        at java.lang.Class.getDeclaredField(Class.java:1882)
> >        at net.liftweb.http.PointlessActorToWorkAroundBug$$anonfun$act$2$
> > $anonfun$apply$2.apply(LiftServlet.scala:722)
> >        at net.liftweb.http.PointlessActorToWorkAroundBug$$anonfun$act$2$
> > $anonfun$apply$2.apply(LiftServlet.scala:714)
> >        at scala.actors.Reaction.run(Reaction.scala:78)
> >        at net.liftweb.http.ActorSchedulerFixer$$anon$1$$anon$3.run
> > (LiftServlet.scala:673)
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> > (ThreadPoolExecutor.java:886)
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.run
> > (ThreadPoolExecutor.java:908)
> >        at java.lang.Thread.run(Thread.java:637)
>
> > I note that there is a reference to this on the mailing list some time
> > ago and this was attributed to being a Scala 2.7.5 issue.
>
> > ?
>
> > Stuart
>
> > On Sep 9, 5:45 pm, Derek Chen-Becker  wrote:
> > > Just a reminder for anyone out there who wants to use 1.0.1: you'll need
> > to
> > > update your pom.xml to use Scala 2.7.5 (and match what Lift was built
> > with).
> > > Typically this just means modifying the properties element in your
> > pom.xml
> > > like so:
>
> > >   
> > >     2.7.5
> > >   
>
> > > Derek
>
> > > On Wed, Sep 9, 2009 at 10:22 AM, Derek Chen-Becker <
> > dchenbec...@gmail.com>wrote:
>
> > > > The Lift team is pleased to announce the lift-1.0.1 release!
>
> > > > Lift is an expressive and elegant framework for writing web
> > applications.
> > > > Lift stresses the importance of security, maintainability, scalability
> > > > and performance while allowing for high levels of developer
> > productivity.
> > > > Lift is a scala web framework.
>
> > > > Changes in this version include:
>
> > > > New features:
> > > > o Added custom type mapping to the DriverType class  Issue: 37.
> > > > o Added MappedDate and MappedTime to allow for better specification of
> > time
> > > > data  Issue: 12.
>
> > > > Fixed Bugs:
> > > > o Backported fixes for the Textile and XML parsers
> > > > o Backported the Actor memory leak fixes
> > > > o Backported a fix to S.params
> > > > o Fixed PostgreSQL Double type mapping
> > > > o Fixed support for Oracle  Issue: 37.
> > > > o Fixed MappedDateTime to use TIMESTAMP mapping  Issue: 12.
> > > > o Fixed ResultSet stringification for NUMERIC and DECIMAL  Issue: 36.
>
> > > > Changes:
> > > > o Refactored generated key support in DB/Mapper  Issue: 37.
> > > > o Modified DB Driver resolution to allow for version-specific drivers
> > > > o Upgrade to Scala 2.7.5
>
> > > > Have fun!
> > > > -Lift team
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapping MappedDouble to Postgres database

2009-09-01 Thread DavidV

I found an old post that addresses this problem.  I am still using
Lift-1.0, so I'll update and that should fix the problem.
-David

On Sep 1, 5:11 pm, DavidV  wrote:
> I am trying to map a MappedDouble object to a postgres database and I
> get the following error:
>
> Exception in thread "main" org.postgresql.util.PSQLException: ERROR:
> type "double" does not exist
>
> I am looking through the Schemifier to try and figure out where the
> database type is assigned and how to override it.  Postgres has a
> "real" type which would be appropriate for the DB columns I am
> creating.
>
> Can anyone help me in converting the MappedDouble to create a DB
> column of type "real" in postgres?
>
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Mapping MappedDouble to Postgres database

2009-09-01 Thread DavidV

I am trying to map a MappedDouble object to a postgres database and I
get the following error:

Exception in thread "main" org.postgresql.util.PSQLException: ERROR:
type "double" does not exist

I am looking through the Schemifier to try and figure out where the
database type is assigned and how to override it.  Postgres has a
"real" type which would be appropriate for the DB columns I am
creating.

Can anyone help me in converting the MappedDouble to create a DB
column of type "real" in postgres?

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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: syntax question

2009-08-28 Thread DavidV

Aha!  I knew it was something simple.  Thanks!

On Aug 28, 4:57 pm, Viktor Klang  wrote:
>  { for(i <- 0 until 10) yield  { for(j <- 0 until 10) yield
> {j} }   } 
>
> My guess is that you've omitted your yields
>
>
>
> On Fri, Aug 28, 2009 at 10:34 PM, DavidV  wrote:
>
> > and yes, I verified that it has the necessary information to iterate
> > by substituting the  values with a println
>
> > On Aug 28, 4:15 pm, Naftoli Gugenheim  wrote:
> > > Before it was empty or not compiling?
> > > Can you verify that it has what to iterate?
>
> > > -
>
> > > DavidV wrote:
>
> > > Like this?
>
> > > def resultTable: NodeSeq  = {
> > >   
> > >       {for (r <- 0 until analysis.slots.length) {
> > >         
> > >         {for (c <- 0 until test.testvars.length) {
> > >           new CellType(calls(r)(c).output)
> > >         }}
> > >         
> > >       }}
> > >   
> > >   }
>
> > > that is not working for me either, it still returns an empty table...
>
> > > can you by any chance demonstrate by editing this table?
>
> > > 
> > >   
> > >     for (c <- 0 until 10)  {
> > >        {array(c)} 
> > >     }
> > >   
> > > 
>
> > > thanks,
> > > David
>
> > > On Aug 28, 3:49 pm, Naftoli Gugenheim  wrote:
>
> > > > You can nest curly braces - just surround the for loop with another
> > pair.
>
> > > > -
>
> > > > DavidV wrote:
>
> > > > This may be more of an HTML question, but since I haven't found an
> > > > answer online, I'm working in Lift and I'm sure most people here can
> > > > answer this easily I figured I'd ask.
>
> > > > I am trying to create a dynamic HTML table, by looping through the
> > > > rows and columns of the table and inserting variables from a two-
> > > > dimensional array.
>
> > > > my array is "calls" and is an Array[Array[Result]]
>
> > > > The basic structure of the table that I want to create is:
>
> > > > def resultTable: NodeSeq  = {
> > > >   
> > > >       for (r <- 0 until analysis.slots.length) {
> > > >         
> > > >         for (c <- 0 until test.testvars.length) {
> > > >           new CellType(calls(r)(c).output)
> > > >         }
> > > >         
> > > >       }
> > > >   
> > > >   }
>
> > > > I have a class CellType that returns a  variable content 
>
> > > > The resultTable method is in a snippet class and I am calling it from
> > > > a separate HTML file.  All other mechanisms are working well since I
> > > > tested a simple TEST within the same method and it
> > > > created the table as expected.  Therefore, this is simply a syntax
> > > > error.  I know you have to use {} to isolate scala code/variables in
> > > > HTML, but I'm not sure how to do that when the brackets are necessary
> > > > for the loop.
>
> > > > Thanks for the help,
> > > > David
>
> --
> Viktor Klang
>
> Blog: klangism.blogspot.com
> Twttr: viktorklang
>
> Lift Committer - liftweb.com
> AKKA Committer - akkasource.org
> Cassidy - github.com/viktorklang/Cassidy.git
> SoftPub founder:http://groups.google.com/group/softpub
--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: syntax question

2009-08-28 Thread DavidV

and yes, I verified that it has the necessary information to iterate
by substituting the  values with a println

On Aug 28, 4:15 pm, Naftoli Gugenheim  wrote:
> Before it was empty or not compiling?
> Can you verify that it has what to iterate?
>
> -----
>
> DavidV wrote:
>
> Like this?
>
> def resultTable: NodeSeq  = {
>   
>       {for (r <- 0 until analysis.slots.length) {
>         
>         {for (c <- 0 until test.testvars.length) {
>           new CellType(calls(r)(c).output)
>         }}
>         
>       }}
>   
>   }
>
> that is not working for me either, it still returns an empty table...
>
> can you by any chance demonstrate by editing this table?
>
> 
>   
>     for (c <- 0 until 10)  {
>        {array(c)} 
>     }
>   
> 
>
> thanks,
> David
>
> On Aug 28, 3:49 pm, Naftoli Gugenheim  wrote:
>
> > You can nest curly braces - just surround the for loop with another pair.
>
> > -
>
> > DavidV wrote:
>
> > This may be more of an HTML question, but since I haven't found an
> > answer online, I'm working in Lift and I'm sure most people here can
> > answer this easily I figured I'd ask.
>
> > I am trying to create a dynamic HTML table, by looping through the
> > rows and columns of the table and inserting variables from a two-
> > dimensional array.
>
> > my array is "calls" and is an Array[Array[Result]]
>
> > The basic structure of the table that I want to create is:
>
> > def resultTable: NodeSeq  = {
> >   
> >       for (r <- 0 until analysis.slots.length) {
> >         
> >         for (c <- 0 until test.testvars.length) {
> >           new CellType(calls(r)(c).output)
> >         }
> >         
> >       }
> >   
> >   }
>
> > I have a class CellType that returns a  variable content 
>
> > The resultTable method is in a snippet class and I am calling it from
> > a separate HTML file.  All other mechanisms are working well since I
> > tested a simple TEST within the same method and it
> > created the table as expected.  Therefore, this is simply a syntax
> > error.  I know you have to use {} to isolate scala code/variables in
> > HTML, but I'm not sure how to do that when the brackets are necessary
> > for the loop.
>
> > Thanks for the help,
> > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: syntax question

2009-08-28 Thread DavidV

Sorry for the confusion.  The way I initially represented the table,
it did not compile.  I got the following errors:

in XML literal: '>' expected instead of '0'
in XML literal: '>' expected instead of '0'
in XML literal: expected closing tag of -
in XML literal: expected closing tag of -

on lines: 3, 5, 8 and 10, respectively.

1 def resultTable: NodeSeq  = {
2  
3   for (r <- 0 until analysis.slots.length) {
4 
5 for (c <- 0 until test.testvars.length) {
6   new CellType(calls(r)(c).output)
7 }
8 
9   }
10   
11  }

I have tried a number of different ways to add the curly braces that
makes it compile, including they way you suggested.  However every
time I succeed in making it compile with curly braces it returns an
empty table.

On Aug 28, 3:49 pm, Naftoli Gugenheim  wrote:
> You can nest curly braces - just surround the for loop with another pair.
>
> -
>
> DavidV wrote:
>
> This may be more of an HTML question, but since I haven't found an
> answer online, I'm working in Lift and I'm sure most people here can
> answer this easily I figured I'd ask.
>
> I am trying to create a dynamic HTML table, by looping through the
> rows and columns of the table and inserting variables from a two-
> dimensional array.
>
> my array is "calls" and is an Array[Array[Result]]
>
> The basic structure of the table that I want to create is:
>
> def resultTable: NodeSeq  = {
>   
>       for (r <- 0 until analysis.slots.length) {
>         
>         for (c <- 0 until test.testvars.length) {
>           new CellType(calls(r)(c).output)
>         }
>         
>       }
>   
>   }
>
> I have a class CellType that returns a  variable content 
>
> The resultTable method is in a snippet class and I am calling it from
> a separate HTML file.  All other mechanisms are working well since I
> tested a simple TEST within the same method and it
> created the table as expected.  Therefore, this is simply a syntax
> error.  I know you have to use {} to isolate scala code/variables in
> HTML, but I'm not sure how to do that when the brackets are necessary
> for the loop.
>
> Thanks for the help,
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: syntax question

2009-08-28 Thread DavidV

Like this?

def resultTable: NodeSeq  = {
  
  {for (r <- 0 until analysis.slots.length) {

{for (c <- 0 until test.testvars.length) {
  new CellType(calls(r)(c).output)
}}

  }}
  
  }

that is not working for me either, it still returns an empty table...

can you by any chance demonstrate by editing this table?


  
for (c <- 0 until 10)  {
   {array(c)} 
}
  



thanks,
David

On Aug 28, 3:49 pm, Naftoli Gugenheim  wrote:
> You can nest curly braces - just surround the for loop with another pair.
>
> -----
>
> DavidV wrote:
>
> This may be more of an HTML question, but since I haven't found an
> answer online, I'm working in Lift and I'm sure most people here can
> answer this easily I figured I'd ask.
>
> I am trying to create a dynamic HTML table, by looping through the
> rows and columns of the table and inserting variables from a two-
> dimensional array.
>
> my array is "calls" and is an Array[Array[Result]]
>
> The basic structure of the table that I want to create is:
>
> def resultTable: NodeSeq  = {
>   
>       for (r <- 0 until analysis.slots.length) {
>         
>         for (c <- 0 until test.testvars.length) {
>           new CellType(calls(r)(c).output)
>         }
>         
>       }
>   
>   }
>
> I have a class CellType that returns a  variable content 
>
> The resultTable method is in a snippet class and I am calling it from
> a separate HTML file.  All other mechanisms are working well since I
> tested a simple TEST within the same method and it
> created the table as expected.  Therefore, this is simply a syntax
> error.  I know you have to use {} to isolate scala code/variables in
> HTML, but I'm not sure how to do that when the brackets are necessary
> for the loop.
>
> Thanks for the help,
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] syntax question

2009-08-28 Thread DavidV

This may be more of an HTML question, but since I haven't found an
answer online, I'm working in Lift and I'm sure most people here can
answer this easily I figured I'd ask.

I am trying to create a dynamic HTML table, by looping through the
rows and columns of the table and inserting variables from a two-
dimensional array.

my array is "calls" and is an Array[Array[Result]]

The basic structure of the table that I want to create is:

def resultTable: NodeSeq  = {
  
  for (r <- 0 until analysis.slots.length) {

for (c <- 0 until test.testvars.length) {
  new CellType(calls(r)(c).output)
}

  }
  
  }

I have a class CellType that returns a  variable content 

The resultTable method is in a snippet class and I am calling it from
a separate HTML file.  All other mechanisms are working well since I
tested a simple TEST within the same method and it
created the table as expected.  Therefore, this is simply a syntax
error.  I know you have to use {} to isolate scala code/variables in
HTML, but I'm not sure how to do that when the brackets are necessary
for the loop.

Thanks for the help,
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] lift request param

2009-08-27 Thread DavidV

For the laboratory website I am building I need to keep track of
batches of samples as they are being processed, and would like to do
so with a request parameter in the URL.  Right now, I am manually
adding this parameter to every link:

object batch extends MappedLong(this) {
override def displayName = "Batch"
override def asHtml: Node = http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: simple syntax question

2009-06-17 Thread DavidV

For now I have fixed the problem by calling a new method in my snippet
that accesses the variable with { } in the input tag.  I would be
interested to know if there is a way to do this with a bind tag
directly in the  tag in the .html file, because I feel like my
current solution is a bit of a kludge...
-David

On Jun 17, 12:00 pm, DavidV  wrote:
> I would like to include a variable value in an  tag in my .html
> file.  I have defined a tag as follows:
>
>   def upload(xhtml: Group): NodeSeq =
>     if (S.get_?) {
>       bind("ul", chooseTemplate("choose", "get", xhtml),
>                     "file_upload" -> fileUpload(ul => theUpload(Full
> (ul))),
>                     "batch" -> currBatch
>       )
>     }
>
> thus,
> 
> 
> 
>
> returns the variable value that I need
>
> How can I retrieve this variable for the "value=" attribute of my
> input tag?  For instance, right now I am trying to do it like this:
>  />
>
> but that is not working.  It also doesn't work like this:
> 
>
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] simple syntax question

2009-06-17 Thread DavidV

I would like to include a variable value in an  tag in my .html
file.  I have defined a tag as follows:

  def upload(xhtml: Group): NodeSeq =
if (S.get_?) {
  bind("ul", chooseTemplate("choose", "get", xhtml),
"file_upload" -> fileUpload(ul => theUpload(Full
(ul))),
"batch" -> currBatch
  )
}

thus,




returns the variable value that I need

How can I retrieve this variable for the "value=" attribute of my
input tag?  For instance, right now I am trying to do it like this:
 />

but that is not working.  It also doesn't work like this:


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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: file upload

2009-06-16 Thread DavidV

yes, that's what I was looking for.  thanks!

On Jun 16, 11:11 am, TylerWeir  wrote:
> Take a look 
> at:http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d...
>
> It should cast some light on your issue.
>
> On Jun 16, 9:54 am, DavidV  wrote:
>
> > I'm still stuck on this problem.
> > Just bringing it to the top of the list again so it's not forgotten...
>
> > On Jun 15, 4:04 pm, DavidV  wrote:
>
> > > I was able to find the code and have a program ready to parse the
> > > files as soon as I can upload them.  I tried writing my own version of
> > > the code found 
> > > here:http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d...
> > > but I got the following error when I tried to load the page on my
> > > browser:
>
> > > XML Parsing Error: prefix not bound to a namespace
> > > Location:http://localhost:8080/analysis/inprocess
> > > Line Number 78, Column 1:
> > > 
> > > ^
>
> > > I am not sure what "choose" is or where to find it and am having
> > > trouble finding documentation online.  I am still working with
> > > Lift-1.0, could this be the problem?
>
> > > Thanks,
> > > David
>
> > > On Jun 12, 6:35 am, wapgui  wrote:
>
> > > > I do similar things.
>
> > > > First there is a snippet using the bind functionality.
> > > > var image : FileParamHolder = _
>
> > > > bind("widget", xhtml,
> > > >   "image" -> fileUpload(image = _)
>
> > > > }
>
> > > > Now write out:
>
> > > > val wbos : ByteArrayOutputStream = build(image)
> > > > val fout = new File(outputFilename)
> > > > if (fout.exists()) {
> > > >    Log.error("Tried to overwrite existing file")
> > > >    return "Error: Filename already exists"}
>
> > > > val foStream = new FileOutputStream(fout)
> > > > foStream.write(wbos.toByteArray())
> > > > foStream.close()
>
> > > > def build(image : FileParamHolder) : ByteArrayOutputStream = {
> > > >   val bout = new ByteArrayOutputStream()
> > > >   val zipout : ZipOutputStream = new ZipOutputStream(bout)
> > > >   zipout.setMethod(ZipOutputStream.DEFLATED);
> > > >   zipout.setLevel(Deflater.DEFAULT_COMPRESSION);
>
> > > >   writeImage(zos, image)
>
> > > > }
>
> > > > private def writeImage(zos: ZipOutputStream,
> > > > image:FileParamHolder):Unit = {
> > > >     if (image.fileName == "") {
> > > >       Log.info("Provided image file is null")
> > > >       return
> > > >     }
> > > >     if (image.fileName.lastIndexOf("\\") != -1) //this is needed if
> > > > upload is from a windows system
> > > >       zos.putNextEntry(new ZipEntry("res/" + image.fileName.substring
> > > > (image.fileName.lastIndexOf("\\")+1)))
> > > >     else
> > > >       zos.putNextEntry(new ZipEntry("res/" + image.fileName))
> > > >     zos.write(image.file, 0, image.file.length) //make here a loop on
> > > > very large files
> > > >     zos.closeEntry()
>
> > > > }
>
> > > > Cheers
> > > > Torsten
>
> > > > On Jun 11, 10:24 pm, DavidV  wrote:
>
> > > > > I would like to upload a .csv file onto the web server so I can then
> > > > > parse it in my webapp, and put certain fields into my database.  I
> > > > > would like a "Browse..." button, much like the one shown on this Lift
> > > > > example page:http://demo.liftweb.net/file_upload
> > > > > Can anyone point me in the right direction as to how to get started
> > > > > doing this, or tell me where I can find the example code for the link
> > > > > I provided?  I can't seem to locate it in liftweb in github
> > > > > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: file upload

2009-06-16 Thread DavidV

I'm still stuck on this problem.
Just bringing it to the top of the list again so it's not forgotten...

On Jun 15, 4:04 pm, DavidV  wrote:
> I was able to find the code and have a program ready to parse the
> files as soon as I can upload them.  I tried writing my own version of
> the code found 
> here:http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d...
> but I got the following error when I tried to load the page on my
> browser:
>
> XML Parsing Error: prefix not bound to a namespace
> Location:http://localhost:8080/analysis/inprocess
> Line Number 78, Column 1:
> 
> ^
>
> I am not sure what "choose" is or where to find it and am having
> trouble finding documentation online.  I am still working with
> Lift-1.0, could this be the problem?
>
> Thanks,
> David
>
> On Jun 12, 6:35 am, wapgui  wrote:
>
> > I do similar things.
>
> > First there is a snippet using the bind functionality.
> > var image : FileParamHolder = _
>
> > bind("widget", xhtml,
> >   "image" -> fileUpload(image = _)
>
> > }
>
> > Now write out:
>
> > val wbos : ByteArrayOutputStream = build(image)
> > val fout = new File(outputFilename)
> > if (fout.exists()) {
> >    Log.error("Tried to overwrite existing file")
> >    return "Error: Filename already exists"}
>
> > val foStream = new FileOutputStream(fout)
> > foStream.write(wbos.toByteArray())
> > foStream.close()
>
> > def build(image : FileParamHolder) : ByteArrayOutputStream = {
> >   val bout = new ByteArrayOutputStream()
> >   val zipout : ZipOutputStream = new ZipOutputStream(bout)
> >   zipout.setMethod(ZipOutputStream.DEFLATED);
> >   zipout.setLevel(Deflater.DEFAULT_COMPRESSION);
>
> >   writeImage(zos, image)
>
> > }
>
> > private def writeImage(zos: ZipOutputStream,
> > image:FileParamHolder):Unit = {
> >     if (image.fileName == "") {
> >       Log.info("Provided image file is null")
> >       return
> >     }
> >     if (image.fileName.lastIndexOf("\\") != -1) //this is needed if
> > upload is from a windows system
> >       zos.putNextEntry(new ZipEntry("res/" + image.fileName.substring
> > (image.fileName.lastIndexOf("\\")+1)))
> >     else
> >       zos.putNextEntry(new ZipEntry("res/" + image.fileName))
> >     zos.write(image.file, 0, image.file.length) //make here a loop on
> > very large files
> >     zos.closeEntry()
>
> > }
>
> > Cheers
> > Torsten
>
> > On Jun 11, 10:24 pm, DavidV  wrote:
>
> > > I would like to upload a .csv file onto the web server so I can then
> > > parse it in my webapp, and put certain fields into my database.  I
> > > would like a "Browse..." button, much like the one shown on this Lift
> > > example page:http://demo.liftweb.net/file_upload
> > > Can anyone point me in the right direction as to how to get started
> > > doing this, or tell me where I can find the example code for the link
> > > I provided?  I can't seem to locate it in liftweb in github
> > > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: file upload

2009-06-15 Thread DavidV

I was able to find the code and have a program ready to parse the
files as soon as I can upload them.  I tried writing my own version of
the code found here:
http://github.com/dpp/liftweb/blob/dcc7b064a42832b06e4523d1a35351967d7a46b2/sites/example/src/main/webapp/file_upload.html
but I got the following error when I tried to load the page on my
browser:

XML Parsing Error: prefix not bound to a namespace
Location: http://localhost:8080/analysis/inprocess
Line Number 78, Column 1:

^

I am not sure what "choose" is or where to find it and am having
trouble finding documentation online.  I am still working with
Lift-1.0, could this be the problem?

Thanks,
David

On Jun 12, 6:35 am, wapgui  wrote:
> I do similar things.
>
> First there is a snippet using the bind functionality.
> var image : FileParamHolder = _
>
> bind("widget", xhtml,
>   "image" -> fileUpload(image = _)
>
> }
>
> Now write out:
>
> val wbos : ByteArrayOutputStream = build(image)
> val fout = new File(outputFilename)
> if (fout.exists()) {
>    Log.error("Tried to overwrite existing file")
>    return "Error: Filename already exists"}
>
> val foStream = new FileOutputStream(fout)
> foStream.write(wbos.toByteArray())
> foStream.close()
>
> def build(image : FileParamHolder) : ByteArrayOutputStream = {
>   val bout = new ByteArrayOutputStream()
>   val zipout : ZipOutputStream = new ZipOutputStream(bout)
>   zipout.setMethod(ZipOutputStream.DEFLATED);
>   zipout.setLevel(Deflater.DEFAULT_COMPRESSION);
>
>   writeImage(zos, image)
>
> }
>
> private def writeImage(zos: ZipOutputStream,
> image:FileParamHolder):Unit = {
>     if (image.fileName == "") {
>       Log.info("Provided image file is null")
>       return
>     }
>     if (image.fileName.lastIndexOf("\\") != -1) //this is needed if
> upload is from a windows system
>       zos.putNextEntry(new ZipEntry("res/" + image.fileName.substring
> (image.fileName.lastIndexOf("\\")+1)))
>     else
>       zos.putNextEntry(new ZipEntry("res/" + image.fileName))
>     zos.write(image.file, 0, image.file.length) //make here a loop on
> very large files
>     zos.closeEntry()
>
> }
>
> Cheers
> Torsten
>
> On Jun 11, 10:24 pm, DavidV  wrote:
>
> > I would like to upload a .csv file onto the web server so I can then
> > parse it in my webapp, and put certain fields into my database.  I
> > would like a "Browse..." button, much like the one shown on this Lift
> > example page:http://demo.liftweb.net/file_upload
> > Can anyone point me in the right direction as to how to get started
> > doing this, or tell me where I can find the example code for the link
> > I provided?  I can't seem to locate it in liftweb in github
> > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] file upload

2009-06-11 Thread DavidV

I would like to upload a .csv file onto the web server so I can then
parse it in my webapp, and put certain fields into my database.  I
would like a "Browse..." button, much like the one shown on this Lift
example page:
http://demo.liftweb.net/file_upload
Can anyone point me in the right direction as to how to get started
doing this, or tell me where I can find the example code for the link
I provided?  I can't seem to locate it in liftweb in github
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: NULLable MappedForeignKey

2009-06-05 Thread DavidV

As you can probably tell from the question, I'm still a beginning
programmer and just learning Scala/Lift, however, I do have a basic
understanding of the difference between option types and null
references.  In this particular case, there are definite cases where
the field will be assigned a value and others where it will be empty,
thus I will set it as Empty where appropriate following David Pollak's
instructions.
Thanks
-David

On Jun 4, 2:22 pm, Joe Wass  wrote:
> Just to check -- are you familiar with the difference between option
> types and null references in scala? It's an important distinction and
> it's very important with Lift.
>
> Joe

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] NULLable MappedForeignKey

2009-06-04 Thread DavidV

What is the proper way to create a MappedForeignKey that is optional?

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: The Lift 1.1 list

2009-04-03 Thread DavidV

Also, it would be great it Lift1.1 included all of the
necessary .js, .css and class files for the new MenuWidget

On Apr 3, 3:42 am, "Charles F. Munat"  wrote:
> Have you looked at Windmill?
>
> http://www.getwindmill.com/
>
>  From what I've heard it's pretty cool.
>
> Chas.
>
> David Pollak wrote:
>
> > On Thu, Apr 2, 2009 at 10:09 AM, Bill Venners  > > wrote:
>
> >     Hi David,
>
> >     On Thu, Apr 2, 2009 at 9:28 PM, David Pollak
> >      >     > wrote:
>
> >      > On Thu, Apr 2, 2009 at 2:30 AM, Bill Venners  >     > wrote:
>
> >      >> Hi David,
>
> >      >> On Thu, Apr 2, 2009 at 12:11 AM, David Pollak
> >      >>  >     > wrote:
> >      >> > Folks,
>
> >      >> > Improved testing framework and better testing support when
> >     running in
> >      >> > "test"
> >      >> > mode.
>
> >      >> Can you elaborate on what your plans are for this?
>
> >      > It's a goal, not a set of plans.  I'm expecting one of the
> >     committers would
> >      > take ownership and figure it out.  Wanna be a committer, take
> >     ownership, and
> >      > figure it out?
>
> >     Ooh, I stepped in that one.
>
> > Yeah... don't you know the rule... get a good idea and you own it.  I'm
> > just the Tom Sawyer who's convincing the smart folks to white-wash my
> > fence/build Lift. ;-)
>
> >     The testing Lift apps is a good, real use
> >     case for both ScalaTest and Specs. I hope to meet with Eric Torreborre
> >     Monday. I'll talk with him about what's needed for Lift, as I think
> >     he's more familiar with its testing needs. I have definitely wanted to
> >     do some work with Lift so I can become more familiar with it as a web
> >     app framework, but just haven't had time yet. I'm gradually popping
> >     things off my stack of tasks, so I'll get there eventually.
>
> > Cool.  I think there's a need for a better way to test web apps in
> > general and to describe the state models so that they can be tested in a
> > sane way.  I just don't have a clue as to how to do it.  But... I think
> > it ties in with the JavaScript enhancements I want to see in 1.1.
> >  Perhaps there's some sort of state/logic combinator thingy that can
> > emit client-side JS, sync data, and be very testable.  Dunno... just
> > ranting/flailing.
>
> >     Bill
>
> >      >> Thanks.
>
> >      >> Bill
>
> >      > --
> >      > Lift, the simply functional web frameworkhttp://liftweb.net
> >      > Beginning Scalahttp://www.apress.com/book/view/1430219890
> >      > Follow me:http://twitter.com/dpp
> >      > Git some:http://github.com/dpp
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Menu widget

2009-04-03 Thread DavidV

I added the dependency to my pom.xml exactly as you suggested and I'm
getting this error:

Downloading: http://scala-tools.org/repo-releases/net/liftweb/lift-widgets/1.1-S
NAPSHOT/lift-widgets-1.1-SNAPSHOT.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) net.liftweb:lift-widgets:jar:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift-
widgets -
Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the
file there:

  mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-
widgets -Dv
ersion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -
Drepositor
yId=[id]

  Path to dependency:
1) testLift:testLift:war:1.0
2) net.liftweb:lift-widgets:jar:1.1-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  testLift:testLift:war:1.0

from the specified remote repositories:
  scala-tools.org (http://scala-tools.org/repo-releases),
  central (http://repo1.maven.org/maven2)


I changed the dependency version to 1.0 because I followed the scala-
tools.org link (http://scala-tools.org/repo-releases) and noticed that
there wasn't a 1.1-SNAPSHOT version in net\liftweb\lift-widgets.
Maven then compiled the project, but my menu still isn't showing up as
I would like it to.  I haven't changed my template.

On Apr 2, 11:07 pm, Derek Chen-Becker  wrote:
> Do you have lift-widgets module as a dependency in your pom.xml?
>
>     
>       net.liftweb
>       lift-widgets
>       1.1-SNAPSHOT
>     
>
> That's needed to get the dropdown widget code.
>
> Derek
>
> On Thu, Apr 2, 2009 at 3:13 PM, DavidV  wrote:
>
> > I posted this yesterday but I haven't seen it appear yet...sorry if it
> > is here twice.
>
> > I downloaded the scripts separately because I didn't know how to
> > update my repository/library to include the MenuWidget class and the
> > appropriate .js and .css files.  I tried running "mvn install" on my
> > webapp, but it didn't download those new files.
> > I fixed the problem with my .css file so it compiles now, however I'm
> > still not getting the nice stylish superfish navbar.  Instead, I'm
> > getting a vertical bulleted list of links to my different pages.  I
> > think it's a problem with my template.  Here are the relevant
> > sections:
>
> > http://www.w3.org/1999/xhtml"; xmlns:lift="http://
> > liftweb.net/">
> >  
> >    
> >    
> >    
>
> >    My WebApp  
> >    
> >    
> >    
> >    

[Lift] Re: Menu widget

2009-04-02 Thread DavidV

I posted this yesterday but I haven't seen it appear yet...sorry if it
is here twice.

I downloaded the scripts separately because I didn't know how to
update my repository/library to include the MenuWidget class and the
appropriate .js and .css files.  I tried running "mvn install" on my
webapp, but it didn't download those new files.
I fixed the problem with my .css file so it compiles now, however I'm
still not getting the nice stylish superfish navbar.  Instead, I'm
getting a vertical bulleted list of links to my different pages.  I
think it's a problem with my template.  Here are the relevant
sections:

http://www.w3.org/1999/xhtml"; xmlns:lift="http://
liftweb.net/">
  




My WebApp  




[Lift] Re: SessionVar or RequestVar example

2009-03-31 Thread DavidV

I figured out what I needed by checking out the "counting" link on the
Lift demo page.  However, I'd like to see some more examples of
Session or RequestVar in use, so if anyone has some I'd still
appreciate it.

On Mar 31, 12:44 pm, DavidV  wrote:
> Does anyone know where I could find some example code of SessionVar or
> RequestVar in use?  I am writing an application and I need to use a
> SessionVar or a RequestVar so that I can maintain and update the value
> of a variable throughout a session, but since I'm new to Lift I'm not
> sure how to use these types.
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Menu widget

2009-03-31 Thread DavidV

I would like to use this new MenuWidget, so I got the source code from
GitHub and put it into my application as a snippet.  I also downloaded
all of the necessary superfish .css and .js files from the superfish
website and put those in local sub-directories of the "src/main/
webapp" folder.  When I try to compile the code in maven, however, I
get the following error.

C:\Source\trunk\eclipse\testLift>mvn clean jetty:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]

[INFO] Building testLift
[INFO]task-segment: [clean, jetty:run]
[INFO]

[INFO] [clean:clean]
[INFO] Deleting directory C:\Source\trunk\eclipse\testLift\target
[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [yuicompressor:compress {execution: default}]
[INFO] jquery.hoverIntent.js (4637b) -> jquery.hoverIntent.js (0b)[0%]
[INFO] superfish.js (3837b) -> superfish.js (0b)[0%]
[INFO] entryform.css (11417b) -> entryform.css (10202b)[89%]
[INFO] print.css (1341b) -> print.css (821b)[61%]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Illegal group reference
[INFO]

[INFO] Trace
java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:713)
at com.yahoo.platform.yui.compressor.CssCompressor.compress
(CssCompresso
r.java:78)
at
net.sf.alchim.mojo.yuicompressor.YuiCompressorMojo.processFile(YuiCom
pressorMojo.java:182)
at net.sf.alchim.mojo.yuicompressor.MojoSupport.processDir
(MojoSupport.j
ava:151)
at net.sf.alchim.mojo.yuicompressor.MojoSupport.execute
(MojoSupport.java
:105)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:924)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:767)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:529)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Mar 31 17:38:35 EDT 2009
[INFO] Final Memory: 17M/30M
[INFO]



Any ideas on how to prevent/fix this?  Do I need to modify my .pom?

Thanks,
David

On Mar 23, 12:18 pm, "marius d."  wrote:
> Cool ... if you tested it and theMenuWidget, from my perspective it
> is good to go into master. And it's really great that you added the
> ScalaDocs !!!
>
> Br's,
> Marius
>
> On Mar 23, 6:07 pm, Derek Chen-Becker  wrote:
>
> > OK, I've pushed the new code on the wip-dcb-dropdown branch. I made some
> > minor mods to the builtin Menu snippet (and changes to the Menu widget to
> > match):
>
> >     1. Added an "expandAll" attribute that renders the

[Lift] SessionVar or RequestVar example

2009-03-31 Thread DavidV

Does anyone know where I could find some example code of SessionVar or
RequestVar in use?  I am writing an application and I need to use a
SessionVar or a RequestVar so that I can maintain and update the value
of a variable throughout a session, but since I'm new to Lift I'm not
sure how to use these types.
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: horizontal navbar drop-downs

2009-03-19 Thread DavidV

That would definitely be very useful!  The more widgets the better!
In the meantime, I'll use the navbar that I have right now, which is
perfectly functional but not aesthetically what I'm going for.  Thanks
again for the help.
-David

On Mar 19, 12:04 pm, Derek Chen-Becker  wrote:
> Added a ticket for the enhancement:
>
> http://liftweb.lighthouseapp.com/projects/26102/tickets/24-create-lif...
>
> Derek
>
> On Thu, Mar 19, 2009 at 11:59 AM, Derek Chen-Becker
> wrote:
>
> > Cool! If Dan can share some code that would help, but in any case I don't
> > think this is going to be a huge chunk of code.
>
> > Derek
>
> > On Thu, Mar 19, 2009 at 11:52 AM, David Pollak <
> > feeder.of.the.be...@gmail.com> wrote:
>
> >> On Thu, Mar 19, 2009 at 9:50 AM, marius d. wrote:
>
> >>> I'm wondering if we shouldn't provide this by the means of a Lift
> >>> widget. Looks like a needed feature ...
>
> >>> WDYT ?
>
> >> Sounds good to me.
>
> >>> Br's,
> >>> Marius
>
> >>> On Mar 19, 6:43 pm, David Pollak 
> >>> wrote:
> >>> > On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker <
> >>> dchenbec...@gmail.com>wrote:
>
> >>> > > This is something that has been asked before, but I don't think there
> >>> was
> >>> > > anything out there. I think that this would be a really nice feature,
> >>> > > particularly if it could leverage the existing jQuery stuff.  IIRC,
> >>> the
> >>> > > built-in Menu snippet doesn't render children at all unless the
> >>> parent is
> >>> > > the current selected page, so we would have to either modify that or
> >>> we
> >>> > > could code up a new MenuBar snippet that renders a "bar" instead of a
> >>> UL
> >>> > > like the current one.
>
> >>> > There's a way to ask for the entire menu rather than just the current
> >>> view.
> >>> >  Dan O'Leary from Enthiosys did this for Innovation Games Online.  I've
> >>> > pinged him to see if he can share some of the code.
>
> >>> > > Derek
>
> >>> > > On Thu, Mar 19, 2009 at 10:21 AM, DavidV  >>> >wrote:
>
> >>> > >> I'm wondering if there is a built-in way to create drop-down menus
> >>> > >> from a horizontal navbar using the Menu.builder method. These are
> >>> the
> >>> > >> relevant sections of my current template:
>
> >>> > >>    My Title 
> >>> > >>    
> >>> > >>    
> >>> > >>    
> >>> > >>    

[Lift] horizontal navbar drop-downs

2009-03-19 Thread DavidV

I'm wondering if there is a built-in way to create drop-down menus
from a horizontal navbar using the Menu.builder method. These are the
relevant sections of my current template:

My Title 




[Lift] Re: MappedTextarea problem

2009-03-12 Thread DavidV

I'm working on making my own style sheet now, thanks for the help.
One more question:
What if I have multiple text areas on one page but what them to be of
different sizes?

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: MappedTextarea problem

2009-03-11 Thread DavidV

As Tyler suggested, I would like to create my own style sheet for my
webapp.  My app is currently using the blueprint CSS boss, but I can't
find the screen.css file anywhere on my computer.  Is it being called
from within a jar or war file?  I can access it by putting the URL in
my web browser, but then I can't find the directory in windows
explorer.  I used firebug and confirmed that I can fix this problem by
altering the css style sheet.  How can I create my own and where
should I store it in my project folder?
Thanks,
David

On Mar 6, 2:48 pm, TylerWeir  wrote:
> blueprintCSS which is more than likely the CSS boss for your app
> definestextareastyle in screen.css.
>
> I tend to add a dedicated stylesheet for just such an overriding-
> required situation.
>
> Tyler
>
> On Mar 3, 5:05 pm, Derek Chen-Becker  wrote:
>
> > I agree with Joachim, this is most likely a CSS issue since we're seeing
> > explicit "rows" and "cols" attributes on the element. If you get firebug and
> > inspect the page with it, you should be able to see what is controlling the
> >textareasize.
>
> > Derek
>
> > On Tue, Mar 3, 2009 at 3:29 PM, DavidV  wrote:
>
> > > Here's the XHTML generated by the Firefox page source.  When I change
> > > the values in my own code, they also change in the source, but the
> > > size of thetextareadoes not change at all.
>
> > >             
> > >      Current Medication(s)
> > >       > > lift:gc="F984808911835ROX" rows="3" cols="15">
> > >             
> > >      Intended Medication(s)
>
> > >       > > lift:gc="F984808911836ZOS" rows="3" cols="15">
> > >             
> > >      Comments
> > >       > > lift:gc="F984808911837DS1" rows="3" cols="15">
>
> > > On Mar 3, 4:17 pm, "Joachim A."  wrote:
> > > > It might be the case that David has some css rules which change the size
> > > of
> > > > thetextarea.
> > > > It's easy to check in firebug or something similair to see what the
> > > applied
> > > > values are.
>
> > > > Joachim
>
> > > > > Can you post the generated XHTML for thetextarea? I would want to
> > > verify
> > > > > that it's actually setting the attributes.
>
> > > > > Derek
>
> > > > > On Tue, Mar 3, 2009 at 2:08 PM, DavidV 
> > > wrote:
> > > > > > For some reason when I override the textareaRows and textareaCols
> > > > > > methods in MappedTextarea, the size of the text block appears the
> > > same
> > > > > > in my web application no matter what size I assign to the rows and
> > > > > > cols.  Does anyone know how to decrease the size of the blank text
> > > > > > area that shows up on the webpage?
> > > > > > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: MappedTextarea problem

2009-03-11 Thread DavidV

BlueprintCSS is indeed the CSS boss for my app.  I'd like to add my
own style-sheet as Tyler suggested, however I can't seem to find the
screen.css file anywhere on my computer.  The directory that it points
to (/classpath/blueprint/screen.css) does not exist in my project
directory.  Any ideas on where this file is located or how I can go
about making my own style-sheet and where I should store it in my
project?
Thanks,
David

On Mar 6, 2:48 pm, TylerWeir  wrote:
> blueprintCSS which is more than likely the CSS boss for your app
> definestextareastyle in screen.css.
>
> I tend to add a dedicated stylesheet for just such an overriding-
> required situation.
>
> Tyler
>
> On Mar 3, 5:05 pm, Derek Chen-Becker  wrote:
>
> > I agree with Joachim, this is most likely a CSS issue since we're seeing
> > explicit "rows" and "cols" attributes on the element. If you get firebug and
> > inspect the page with it, you should be able to see what is controlling the
> >textareasize.
>
> > Derek
>
> > On Tue, Mar 3, 2009 at 3:29 PM, DavidV  wrote:
>
> > > Here's the XHTML generated by the Firefox page source.  When I change
> > > the values in my own code, they also change in the source, but the
> > > size of thetextareadoes not change at all.
>
> > >             
> > >      Current Medication(s)
> > >       > > lift:gc="F984808911835ROX" rows="3" cols="15">
> > >             
> > >      Intended Medication(s)
>
> > >       > > lift:gc="F984808911836ZOS" rows="3" cols="15">
> > >             
> > >      Comments
> > >       > > lift:gc="F984808911837DS1" rows="3" cols="15">
>
> > > On Mar 3, 4:17 pm, "Joachim A."  wrote:
> > > > It might be the case that David has some css rules which change the size
> > > of
> > > > thetextarea.
> > > > It's easy to check in firebug or something similair to see what the
> > > applied
> > > > values are.
>
> > > > Joachim
>
> > > > > Can you post the generated XHTML for thetextarea? I would want to
> > > verify
> > > > > that it's actually setting the attributes.
>
> > > > > Derek
>
> > > > > On Tue, Mar 3, 2009 at 2:08 PM, DavidV 
> > > wrote:
> > > > > > For some reason when I override the textareaRows and textareaCols
> > > > > > methods in MappedTextarea, the size of the text block appears the
> > > same
> > > > > > in my web application no matter what size I assign to the rows and
> > > > > > cols.  Does anyone know how to decrease the size of the blank text
> > > > > > area that shows up on the webpage?
> > > > > > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] access object field after snippet form submission

2009-03-10 Thread DavidV

In the webapp I'm working on, I have three separate forms (snippets)
linked to three separate objects.  I would like to maintain a link
between the objects through ID fields, since all three forms contain
information pertinent to one individual record.  The problem is, after
I submit the first form I can no longer access its ID field from the
second form.  So, when I try to use a MappedLongForeignKey to link the
two objects, the field is blank in the database.  Is there any way to
either access the ID field value from the first form after it has
already been submitted and saved?  Is there a way to save the values
after submission of the form without using a StatefulSnippet?
If this is unclear let me know and I'll include some actual code to
better explain what I am trying to do.
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: MappedTextarea problem

2009-03-03 Thread DavidV

Here's the XHTML generated by the Firefox page source.  When I change
the values in my own code, they also change in the source, but the
size of the textarea does not change at all.

 
  Current Medication(s)
  
 
  Intended Medication(s)

  
 
  Comments
  


On Mar 3, 4:17 pm, "Joachim A."  wrote:
> It might be the case that David has some css rules which change the size of
> the textarea.
> It's easy to check in firebug or something similair to see what the applied
> values are.
>
> Joachim
>
> > Can you post the generated XHTML for the textarea? I would want to verify
> > that it's actually setting the attributes.
>
> > Derek
>
> > On Tue, Mar 3, 2009 at 2:08 PM, DavidV  wrote:
> > > For some reason when I override the textareaRows and textareaCols
> > > methods in MappedTextarea, the size of the text block appears the same
> > > in my web application no matter what size I assign to the rows and
> > > cols.  Does anyone know how to decrease the size of the blank text
> > > area that shows up on the webpage?
> > > 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] MappedTextarea problem

2009-03-03 Thread DavidV

For some reason when I override the textareaRows and textareaCols
methods in MappedTextarea, the size of the text block appears the same
in my web application no matter what size I assign to the rows and
cols.  Does anyone know how to decrease the size of the blank text
area that shows up on the webpage?
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: populate DB table upon creation

2009-02-23 Thread DavidV

I mentioned that I would post the final code once I worked out all the
bugs, so here is what I came up with:

object SampleType extends SampleType with LongKeyedMetaMapper
[SampleType] {
  override def dbTableName = "sample_type" // define the DB table name
  val choices = SampleTypeList.names
  def writeToTable(c: SuperConnection) (cmd: () => String) {
val makeSql = cmd()
val st = c.createStatement
st.execute(makeSql)
println(makeSql)
st.close
  }

  override def dbAddTable = {
DB.use(DefaultConnectionIdentifier) {
  con =>
val connection = con // SuperConnection(con)
  val driver = con.calcDriver
(connection.getMetaData.getDatabaseProductName)
  Full(
() => {
  for (i <- 1 to choices.length) writeToTable(con) {
() => "INSERT INTO "+dbTableName+" (id, name) VALUES ("+i
+", '"+choices(i-1)+"')"
  }
}
  )
}
  }
}

Hope that helps anyone with the same problem in the future.
-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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: populate DB table upon creation

2009-02-20 Thread DavidV

Those are both helpful pointers.  I'm working out the details right
now, I'll post my code as soon as I get it all worked out so that
others can use it.
Thanks again,
David

On Feb 20, 2:41 pm, David Pollak 
wrote:
> In your meta mapper, if you override dbAddTable to return Full[() => Unit],
> that function will be called after all the modifications have been made to
> the tables, if your table was added as part of Schemifier's changes.
>
> On Fri, Feb 20, 2009 at 9:18 AM, DavidV  wrote:
>
> > I wondering how to populate rows of a DB table upon it's creation.
> > First, where in the lift code are tables created?  Is it in trait
> > BaseMapper's dbAddTable method?  I have an Array[String] I would like
> > to add to the table when it is being created.  Which method can I
> > override to achieve this and how should I do so?
>
> You'd probably do something like:
>
> object MyTable extends MyTable with MetaMapper[MyTable] {
>   private val myArray = Array("foo", "bar")
>   private val writeToNewTable() {
>     for (s <- myArray) {
>       create.columnForString(s).save
>     }
>   }
>
>   override def dbAddTable = Full(writeToNewTable _)
>
> }
>
> Does this help?
>
> Thanks,
>
> David
>
>
>
> > Thanks!
> > -David
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] populate DB table upon creation

2009-02-20 Thread DavidV

I wondering how to populate rows of a DB table upon it's creation.
First, where in the lift code are tables created?  Is it in trait
BaseMapper's dbAddTable method?  I have an Array[String] I would like
to add to the table when it is being created.  Which method can I
override to achieve this and how should I do so?

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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Help on getting Eclipse/Maven/Lift working

2009-02-03 Thread DavidV

Hi Thomas,
I've been having the same troubles and found that these instructions
helped me a bit:

http://liftweb.net/index.php/Using_eclipse_hotdeploy

if you left-click on the RunWebApp application and go to "Debug As"
and don't see an "Open Debug Dialogue" option, just try clicking on
"Scala Application"...that worked for me.

Good luck!
-David

On Feb 2, 2:20 pm, Thomas Sant Ana  wrote:
> I followed the tutorial here on this page:
>
> http://scala-blogs.org/2007/12/dynamic-web-applications-with-lift-and...
>
> And was pleased to see the application come out so quickly. However I have a
> question. As I save the file on Eclipse they don't get picked up by Jetty. I
> need to do a mvn install on the pom.xml of the eclipse project.  And
> clearing the project on eclipse broke mvn install, until I did a mvn clean
> then a mvn install.
>
> The tutorial references to "incremental compiling". I've been working with
> Scala  on Eclipse and got around most troubles myself. But the
> Eclipse+Maven+Jetty+Lift is confusing for me. I have a set of questions:
>
> a) How to get code compile incrementally on eclipse, picked up by jetty?
>
> b) How do I debug the application from eclipse?
>
> c) Is there a way to have it all running under eclipse?
>
> I know these question may seem dumb, but I'm not finding good information on
> google. Is there a "Developing for Lift using Eclipse for Dummies" arround?
> The best I found what this tutorial.
>
> Thomas

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift 0.10 example code

2009-01-29 Thread DavidV

Thanks Tim and David, that's exactly what I was looking for.
-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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Lift 0.10 example code

2009-01-29 Thread DavidV

Is there Lift example code, compatible with the 0.10 version library
that is more robust than the lift-blank and lift-basic archetypes
highlighted here:
http://liftweb.net/index.php/Archetypes

I'm looking for something more like the demo available from liftweb:
http://demo.liftweb.net/

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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Compiling Lift with Scala 2.7.2.RC2 and Eclipse Plugin

2008-09-25 Thread DavidV

I just downloaded version 1.5.6.1 from the same site and this is the
error I got this time:

walk 8e1d2bbba9128fe8ce4b7a355d6fa16fe9d3dd77
walk eb09c00b327ebd51608de4f92f5831fb8e880f0d
walk dbf28f10a12216b813495fced7beace239676d1a
walk 089733ddff4c11a24555dc8afb57e854184544c8
walk d15137a600ce0524607ef77f2e0df0762865608a
walk e7e14b91e774f06726f09d55b186b68538821435
error: Unable to find 6466f0e83a7bdca168ab17d70d77c3d82c325dbc under
http://gith
ub.com/dpp/liftweb.git
Cannot obtain needed tree 6466f0e83a7bdca168ab17d70d77c3d82c325dbc
while processing commit e7e14b91e774f06726f09d55b186b68538821435.
fatal: Fetch failed.

--~--~-~--~~~---~--~~
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: [ANN] Compiling Lift with Scala 2.7.2.RC2 and Eclipse Plugin

2008-09-25 Thread DavidV

I followed the instructions outlined by Jorge exactly and everything
seemed to be working fine, but I got the following error when trying
to create the liftweb git repository as outlined in Step 1:

...walk a4ce14468f18844414e001f3353b93bfb3250b91
walk 9644eaef9b6db11a6b97a3656b841a3cb0ea9ada
walk bb81c1cc281e6b6f2b280349af8a4295b580f1f7
walk d1382b5493ebfe2138ffcba43da60e9b45d17600
walk 9226d239f59ac8da43e720c42d383cfb9ce9d997
walk da7ab51dbe91f4f74e5e2b96ce8a70027c197da8
walk ad2d902c0787e72b681da5765d75d67cd6eeb4f0
walk b2c974cec6ec44797eecf6d28f3188f80bf2ed35
walk dde0458bbe9109bc4d39d073d4df24821fcc11ac
walk 6041d486170de4ed91c8d7f3e379658f55fef6f4
error: Unable to find c1c124c30e4fcf5c4c4371672addf2a666580657 under
http://github.com/dpp/liftweb.git
Cannot obtain needed tree c1c124c30e4fcf5c4c4371672addf2a666580657
while processing commit 6041d486170de4ed91c8d7f3e379658f55fef6f4.
fatal: Fetch failed.

the repository was not fully created as evidenced by the error that
came when I tried to go on to Step 2:

[EMAIL PROTECTED] /c/Source/Lift
$ cd liftweb

[EMAIL PROTECTED] /c/Source/Lift/liftweb
$ git checkout master
fatal: Not a git repository

Any ideas on how I can bypass this problem?  I don't even know where
to start at this point.

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] Re: [ANN] Compiling Lift with Scala 2.7.2.RC2 and Eclipse Plugin

2008-09-25 Thread DavidV

I'm using the latest version - 1.6.0.2 for windows.  I got it from
this website:
http://code.google.com/p/msysgit/downloads/list

I figured it was OK since all the versions are listed as "Beta"...

--~--~-~--~~~---~--~~
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] New Lift plugin for Eclipse

2008-09-23 Thread DavidV

Any news on when the next Lift Eclipse plugin will be available, to go
with the latest Scala 2.7.2 RC2 plugin update?

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