[Lift] Re: Impossible to use Mapper on GAE?

2009-12-04 Thread Mark Tye
I wrote a GAE module for Lift a few months ago, similar to Mapper/
Record, but not directly related to either. There were no driver
issues, and it worked pretty well. You can see an working example
here: http://mtyetest.appspot.com/

The main obstacle to proceeding further was the lack of Maven support
for App Engine. GAE is currently at version 1.2.8, but the latest
version in the Google Maven repository is 1.2.1. It's been submitted
as an issue to Google (http://code.google.com/p/googleappengine/issues/
detail?id=1296) more than six months ago, and 76 developers have
starred it, but ironically, the issue status is still "New".

Without official Maven support, setting up an App Engine/Lift project
is a very hacky process that involves manually installing the App
Engine jars into your Maven repository. It's OK for standalone
development, but would be very awkward for a team, and makes a lift-
google-app-engine archetype downright impossible.

If there's some interest in what I've done, I can throw it up on
GitHub.

(One other problem: the GAE dev server is not nearly as hot-deploy
friendly as the Jetty/JRebel setup most Lift developers are accustomed
to.)

On Nov 26, 2:51 pm, jlist9  wrote:
> Hi, I read from the list that Mapper is not supported on Google App Engine
> (I see people use JPA instead.) I wonder if this is a matter of non-existent
> drivers, or there are some fundamental issues that make it impossible?
>
> Thanks,
> Jack

--

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: Button tag for submit

2009-12-04 Thread Timothy Perrett
Absolutely nothing stopping you doing that. See my previous post on
this matter:

http://groups.google.com/group/liftweb/browse_thread/thread/72cb7312ca87795f

Cheers, Tim

On Dec 5, 12:52 am, Tim Nelson  wrote:
> Is there a way to use a button tag for submitting forms?
>
> It would be nice to be able to use the blueprint buttons plugin which
> requires the following:
>
> 
>    Save
> 
>
> Thanks,
> Tim

--

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] Button tag for submit

2009-12-04 Thread Tim Nelson
Is there a way to use a button tag for submitting forms?

It would be nice to be able to use the blueprint buttons plugin which
requires the following:


   Save


Thanks,
Tim

--

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: Field validation

2009-12-04 Thread Alex Siman
Checkout my code, especially parts with "cssClass".

import net.liftweb.http.S._
import net.liftweb.http.SHtml._

// input can be SHtml.text
def formField(label: String, input: Elem): NodeSeq = {
val fixedLabel = label match {
case "" => ""
case s: String => s + ":"
}

val id = (input \ "@id").toString
val messageList = messagesById(id)(errors)
val hasMessages = messageList.size > 0
val cssClass = if (hasMessages) "ErrorField" else ""
val messages = messageList match {
case list: List[NodeSeq] if hasMessages => {
{messageList.map(m => {m})}
}
case _ => Nil
}




{fixedLabel} 


{input}{messages}



}

On 4 дек, 23:22, wstrange  wrote:
> I have searched the archives, but the answer is not immediately clear
> to me...
>
> How does one provide field validation feedback on a form (e.g. turn
> the phone number field red if an error is made in data entry)? The
> S.error approach of collecting all the errors into one big message
> seems unwieldy, and does not give the user very good feedback.   I am
> using JPA if that makes any difference.
>
> Any tips would be appreciated

--

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.




Re: [Lift] XSLT?

2009-12-04 Thread Ross Mellgren
I don't know of any example code, but if you want I can probably whip  
up a quick example tonight or tomorrow to get you along.

-Ross

On Dec 4, 2009, at 12:19 PM, Jim Wise wrote:

> Had asked this earlier on the scala-users list.  It's not (quite) a  
> Lift
> question, but maybe someone has done something similar?
>
> I'm in the process of moving an application currently implemented in
> Java using Apache Cocoon to Scala and Liftweb.  I've had a relatively
> easy time moving the `plumbing' of the app over -- sessions, users,
> dynamic content and so on -- but a lot of the app's presentation is,  
> in
> true cocoon style, implemented as XSLT pipelines on static or  
> generated
> XML content.
>
> In the long term, I see the benefits of moving these to Lift  
> templates,
> but in a 0.9 version (as it were), it makes a fair amount of sense to
> use the existing templates, with a lift snippet or view (or even a
> wrapper function or hook) performing a final XSLT transform on the
> generated XML.
>
> I can see how to hook such a step into Lift's processing, but I also  
> see
> that Lift has no native support for this (no surprise, as Lift has a
> full templating system of its own).  Before I set about doing this by
> calling into Xerces and Xalan from Scala (should be easy enough), is
> there any sample code or Scala API for XSLT transformations already  
> out
> there?
>
> Thanks,
>
> -- 
>   Jim Wise
>   jw...@draga.com

--

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: XSLT?

2009-12-04 Thread glenn
Jim,

I've used a lot of XSLT in the past but have recently taken to Scala's
use of XML literals and extraction methods coupled with case matching
in place of XSL templates - no need to call into Xerces, Xalan or any
other
third-party libraries to do this.

Glenn

On Dec 4, 9:19 am, Jim Wise  wrote:
> Had asked this earlier on the scala-users list.  It's not (quite) a Lift
> question, but maybe someone has done something similar?
>
> I'm in the process of moving an application currently implemented in
> Java using Apache Cocoon to Scala and Liftweb.  I've had a relatively
> easy time moving the `plumbing' of the app over -- sessions, users,
> dynamic content and so on -- but a lot of the app's presentation is, in
> true cocoon style, implemented as XSLT pipelines on static or generated
> XML content.
>
> In the long term, I see the benefits of moving these to Lift templates,
> but in a 0.9 version (as it were), it makes a fair amount of sense to
> use the existing templates, with a lift snippet or view (or even a
> wrapper function or hook) performing a final XSLT transform on the
> generated XML.
>
> I can see how to hook such a step into Lift's processing, but I also see
> that Lift has no native support for this (no surprise, as Lift has a
> full templating system of its own).  Before I set about doing this by
> calling into Xerces and Xalan from Scala (should be easy enough), is
> there any sample code or Scala API for XSLT transformations already out
> there?
>
> Thanks,
>
> --
>                                 Jim Wise
>                                 jw...@draga.com
>
>  application_pgp-signature_part
> < 1KViewDownload

--

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] Field validation

2009-12-04 Thread wstrange

I have searched the archives, but the answer is not immediately clear
to me...

How does one provide field validation feedback on a form (e.g. turn
the phone number field red if an error is made in data entry)? The
S.error approach of collecting all the errors into one big message
seems unwieldy, and does not give the user very good feedback.   I am
using JPA if that makes any difference.


Any tips would be appreciated


--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread Indrajit Raychaudhuri


On 04/12/09 11:43 PM, David Pollak wrote:
>
>
> On Fri, Dec 4, 2009 at 10:06 AM, jlist9  > wrote:
>
> I'm just curious why is smack required. Does Lift use XMPP? Or is it
> there
> in case someone uses XMPP in an application?
>
>
> The 1.0 archetype references lift-core.  lift-core is the umbrella for
> all the Lift modules including XMPP, AMQP, Facebook, PayPal as well as
> WebKit, Mapper, etc.
>
> It was my vision that Lift should contain all the pieces to connect your
> application to many forms of real time data, events, external services, etc.
>
> The vision narrowed post 1.0 release.
>
> If you remove the lift-core reference in the pom.xml and insert
> references to lift-webkit, lift-util, and lift-mapper you app will run
> fine and not try to download XMPP or AMQP support.

In fact a dependency on lift-mapper should suffice (lift-webkit, 
lift-util, lift-common etc. would be pulled up automatically).

For most standard data-driven Lift applications, just setting up the 
dependency on a persistence component of your choice (lift-jpa, 
lift-mapper or lift-record) should be good enough for a start. And then 
you can go along and add the other spices from lift-modules depending on 
your app requirement.

>
>
> On Fri, Dec 4, 2009 at 7:23 AM, David Biesack  > wrote:
>  > While helloworld works (mvn jetty:run) from
>  > http://liftweb.net/docs/getting_started/mod_master.html,
>  > after installing the 'todo' app and try to build/run it
>  >
>  >  cd todo
>  >  mvn jetty:run
>  >
>  > I get an error trying to resolve smack.jar
>
> --
>
> 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, the simply functional web framework http://liftweb.net
> Beginning Scala http://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 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.

--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread jlist9
I see. Thanks David. It's good to know that lift has interfaces for all
those interesting libraries, although it sort of makes lift-core sound
more like lift-libs :)

On Fri, Dec 4, 2009 at 10:13 AM, David Pollak
 wrote:
>
>
> On Fri, Dec 4, 2009 at 10:06 AM, jlist9  wrote:
>>
>> I'm just curious why is smack required. Does Lift use XMPP? Or is it there
>> in case someone uses XMPP in an application?
>
> The 1.0 archetype references lift-core.  lift-core is the umbrella for all
> the Lift modules including XMPP, AMQP, Facebook, PayPal as well as WebKit,
> Mapper, etc.
> It was my vision that Lift should contain all the pieces to connect your
> application to many forms of real time data, events, external services, etc.
> The vision narrowed post 1.0 release.
> If you remove the lift-core reference in the pom.xml and insert references
> to lift-webkit, lift-util, and lift-mapper you app will run fine and not try
> to download XMPP or AMQP support.
>
>>
>> On Fri, Dec 4, 2009 at 7:23 AM, David Biesack 
>> wrote:
>> > While helloworld works (mvn jetty:run) from
>> > http://liftweb.net/docs/getting_started/mod_master.html,
>> > after installing the 'todo' app and try to build/run it
>> >
>> >  cd todo
>> >  mvn jetty:run
>> >
>> > I get an error trying to resolve smack.jar
>>
>> --
>>
>> 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, the simply functional web framework http://liftweb.net
> Beginning Scala http://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 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.
>

--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread David Pollak
On Fri, Dec 4, 2009 at 10:06 AM, jlist9  wrote:

> I'm just curious why is smack required. Does Lift use XMPP? Or is it there
> in case someone uses XMPP in an application?
>

The 1.0 archetype references lift-core.  lift-core is the umbrella for all
the Lift modules including XMPP, AMQP, Facebook, PayPal as well as WebKit,
Mapper, etc.

It was my vision that Lift should contain all the pieces to connect your
application to many forms of real time data, events, external services, etc.

The vision narrowed post 1.0 release.

If you remove the lift-core reference in the pom.xml and insert references
to lift-webkit, lift-util, and lift-mapper you app will run fine and not try
to download XMPP or AMQP support.


>
> On Fri, Dec 4, 2009 at 7:23 AM, David Biesack 
> wrote:
> > While helloworld works (mvn jetty:run) from
> > http://liftweb.net/docs/getting_started/mod_master.html,
> > after installing the 'todo' app and try to build/run it
> >
> >  cd todo
> >  mvn jetty:run
> >
> > I get an error trying to resolve smack.jar
>
> --
>
> 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, the simply functional web framework http://liftweb.net
Beginning Scala http://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 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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread jlist9
I'm just curious why is smack required. Does Lift use XMPP? Or is it there
in case someone uses XMPP in an application?

On Fri, Dec 4, 2009 at 7:23 AM, David Biesack  wrote:
> While helloworld works (mvn jetty:run) from
> http://liftweb.net/docs/getting_started/mod_master.html,
> after installing the 'todo' app and try to build/run it
>
>  cd todo
>  mvn jetty:run
>
> I get an error trying to resolve smack.jar

--

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] XSLT?

2009-12-04 Thread Jim Wise
Had asked this earlier on the scala-users list.  It's not (quite) a Lift
question, but maybe someone has done something similar?

I'm in the process of moving an application currently implemented in
Java using Apache Cocoon to Scala and Liftweb.  I've had a relatively
easy time moving the `plumbing' of the app over -- sessions, users,
dynamic content and so on -- but a lot of the app's presentation is, in
true cocoon style, implemented as XSLT pipelines on static or generated
XML content.

In the long term, I see the benefits of moving these to Lift templates,
but in a 0.9 version (as it were), it makes a fair amount of sense to
use the existing templates, with a lift snippet or view (or even a
wrapper function or hook) performing a final XSLT transform on the
generated XML.

I can see how to hook such a step into Lift's processing, but I also see
that Lift has no native support for this (no surprise, as Lift has a
full templating system of its own).  Before I set about doing this by
calling into Xerces and Xalan from Scala (should be easy enough), is
there any sample code or Scala API for XSLT transformations already out
there?

Thanks,

-- 
Jim Wise
jw...@draga.com


pgpqGhcChiM1x.pgp
Description: PGP signature


Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread Indrajit Raychaudhuri

The Maven repository http://maven.reucon.com/public/ had turned out to 
be unreliable on a previous occasion. We have discontinued referring to 
that repository now.

You might consider using the 1.1-SNAPSHOT archetype. (using 
-DarchetypeVersion=1.1-SNAPSHOT and 
-DremoteRepositories=http://scala-tools.org/repo-snapshots).

So the full command would be:

mvn archetype:generate -U \
   -DarchetypeGroupId=net.liftweb \
   -DarchetypeArtifactId=lift-archetype-basic \
   -DarchetypeVersion=1.1-SNAPSHOT \
   -DarchetypeRepository=http://scala-tools.org/repo-snapshots \
   -DremoteRepositories=http://scala-tools.org/repo-snapshots \
   -DgroupId=com.liftworkshop \
   -DartifactId=todo \
   -Dversion=0.1-SNAPSHOT

BTW, do you have some additional repositories set up in settings.xml?

Cheers, Indrajit

On 04/12/09 8:53 PM, David Biesack wrote:
> While helloworld works (mvn jetty:run) from
> http://liftweb.net/docs/getting_started/mod_master.html,
> after installing the 'todo' app and try to build/run it
>
>   cd todo
>   mvn jetty:run
>
> I get an error trying to resolve smack.jar
>
> I was able to resolve this by downloading smack and installing
> smack.jar and smackx.jar into my maven repo.
> However, it would be nice if this was not necessary (i.e. by putting
> it in the scala repo?), or at a minimum adding
> warnings/instructions in the GettingStarted
>
> (note: I've configured my maven repos as per
> http://wiki.github.com/dpp/liftweb/about-maven-mini-guide )
>
> Here's the first error:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jetty'.
> [INFO] org.apache.maven.plugins: checking for updates from scala-
> tools.org
> repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: scala-tools.org due to an error: Error
> transferring file
> [INFO] Repository 'scala-tools.org' will be blacklisted
> [INFO]
> 
> [INFO] Building todo
> [INFO]task-segment: [jetty:run]
> [INFO]
> 
> [INFO] Preparing jetty:run
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [yuicompressor:compress {execution: default}]
> [INFO] nb warnings: 0, nb errors: 0
> Downloading: 
> http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
> Downloading: 
> http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
> Downloading: 
> http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
> Downloading: 
> http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
> Downloading: 
> http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
> Downloading: 
> http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
> [INFO] artifact org.mortbay.jetty:jetty: checking for updates from
> scala-tools.org
> repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
> be retrieved from repository: scala-tools.org due to an error: Error
> transferring file
> [INFO] Repository 'scala-tools.org' will be blacklisted
> [INFO] artifact org.mortbay.jetty:jetty: checking for updates from
> scala-tools.org.snapshots
> repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
> be retrieved from repository: scala-tools.org.snapshots due to an
> error: Error transferring file
> [INFO] Repository 'scala-tools.org.snapshots' will be blacklisted
> Downloading: 
> http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
> Downloading: 
> http://maven.reucon.com/public/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
> Downloading: 
> http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
> Downloading: 
> http://maven.reucon.com/public/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> [snip]
>
> --
>
> 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.
>
>

--

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

[Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread David Biesack
While helloworld works (mvn jetty:run) from
http://liftweb.net/docs/getting_started/mod_master.html,
after installing the 'todo' app and try to build/run it

 cd todo
 mvn jetty:run

I get an error trying to resolve smack.jar

I was able to resolve this by downloading smack and installing
smack.jar and smackx.jar into my maven repo.
However, it would be nice if this was not necessary (i.e. by putting
it in the scala repo?), or at a minimum adding
warnings/instructions in the GettingStarted

(note: I've configured my maven repos as per
http://wiki.github.com/dpp/liftweb/about-maven-mini-guide )

Here's the first error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from scala-
tools.org
repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: scala-tools.org due to an error: Error
transferring file
[INFO] Repository 'scala-tools.org' will be blacklisted
[INFO]

[INFO] Building todo
[INFO]task-segment: [jetty:run]
[INFO]

[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [yuicompressor:compress {execution: default}]
[INFO] nb warnings: 0, nb errors: 0
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from
scala-tools.org
repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
be retrieved from repository: scala-tools.org due to an error: Error
transferring file
[INFO] Repository 'scala-tools.org' will be blacklisted
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from
scala-tools.org.snapshots
repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
be retrieved from repository: scala-tools.org.snapshots due to an
error: Error transferring file
[INFO] Repository 'scala-tools.org.snapshots' will be blacklisted
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
Downloading: 
http://maven.reucon.com/public/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
Downloading: 
http://maven.reucon.com/public/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

[snip]

--

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.




Re: [Lift] Schemify has SQL Exception, IDENIFY instead of IDENTIFY is in the SQL query

2009-12-04 Thread Alex Boisvert
No need to open a ticket, I've fixed the typo directly in master.

commit 090aff91793a8b9cc67f55ff77e7407c46c2545b
Author: Alex Boisvert 
Date:   Fri Dec 4 07:05:06 2009 -0800

Fixed typo in DerbyDriver.integerIndexColumnType: IDENITY -> IDENTITY

(Change recorded in changes.xml)

alex


On Fri, Dec 4, 2009 at 12:27 AM, David Brooks wrote:

>  Hi,
>
> I've searched the 1-1-SNAPSHOT sources and found:
>
>
> lift-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/Driver.scala:
>   def integerIndexColumnType = "INTEGER NOT NULL GENERATED BY DEFAULT AS
> IDENITY"
>
> so it looks as if someone's made a typo.
>
> I suggest you open a ticket at http://github.com/dpp/liftweb/issues
>
> Regards,
> Dave
>
>
> On 4/12/09 5:24 PM, James Black wrote:
>
> I had used LIFT 1.0 to build my framework, and I am curious what I
> need to do to get beyond this error.
>
> I tried to use
> mvn -U clean install compile jetty:run
>
> I had set my dependency in pom.xml to point to LIFT 1.0, 1.0.2 and
> 1.1, but none of these made any difference, so I am not certain it
> made any change.
>
> INFO - CREATE TABLE educationinfo (key_c VARCHAR(100) , school VARCHAR
> (100) , de
> gree VARCHAR(100) , startyear INTEGER NOT NULL GENERATED ALWAYS AS
> IDENITY , end
> year INTEGER NOT NULL GENERATED ALWAYS AS IDENITY , resume BIGINT , id
> BIGINT NO
> T NULL GENERATED ALWAYS AS IDENTITY)
> ERROR - Failed to Boot
>
>
>
>
>   --
> 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.
>

--

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.




Re: [Lift] Error reading archetype catalog http://scala-tools.org

2009-12-04 Thread Timothy Perrett
David,

Im not sure what the problem with your command was, it should work fine... the 
archetype catalog is in place (I just checked) so perhaps its something at your 
end causing the problem (proxies or such?)

Cheers, Tim

On 4 Dec 2009, at 14:40, David Biesack wrote:

> On Windows XP with Maven already installed, I tried the instructions
> on http://wiki.github.com/dpp/liftweb , namely
> 
>   mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/
> 
> This started (downloaded several maven plugins successfully) but
> failed with
> 
> [INFO] Generating project in Batch mode
> Error reading archetype catalog http://scala-tools.org
> java.lang.NullPointerException
>   at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
>   at sun.net.www.protocol.http.HttpURLConnection.plainConnect
> (HttpURLConnection.java:787)
>   at sun.net.www.protocol.http.HttpURLConnection.connect
> (HttpURLConnection.java:718)
>   at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> (HttpURLConnection.java:1041)
>
> 
> Thoughts on getting past this?
> 
> BTW, http://liftweb.net/download.html does not provide actual
> instructions to download/install Lift -- only for installing Maven. To
> newcomers, this is confusing - there is no indication that lift does
> not really require a download/install. Perhaps someone can update that
> page to point to the wiki page or getting started page for actually
> "installing"/using Lift, or add a correct mvn archetype command to use
> once Maven is installed? As it stands, it is very confusing because it
> implies the installers for Win and Mac are Lift installers, whereas
> the Win installer merely installs Maven. Especially since a newcomer
> coming to the lift site sees four big buttons - Source, Issue Tracker,
> Download Installers, and Quotes, one is immediately drawn to an
> Installer that does not install Lift... (Yes, the Getting Started link
> is also on the home page, but much less prominent)
> 
> I was able to use
> 
> mvn archetype:generate -U \
>  -DarchetypeGroupId=net.liftweb \
>  -DarchetypeArtifactId=lift-archetype-blank \
>  -DarchetypeVersion=1.0 \
>  -DremoteRepositories=http://scala-tools.org/repo-releases \
>  -DgroupId=demo.helloworld \
>  -DartifactId=helloworld \
>  -Dversion=1.0-SNAPSHOT
> 
> from http://liftweb.net/docs/getting_started/mod_master.html to get
> helloworld running, but as a new user, I had to dig around to find
> that.
> 
> Also, the message jetty issued was
> 
> 2009-12-04 09:03:21.535:INFO::Started
> selectchannelconnec...@0.0.0.0:8080
> 
> and not
> 
> [INFO] Starting scanner at interval of 5 seconds.
> 
> as stated on that page
> 
> --
> 
> 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.
> 
> 
> 

--

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] copy/paste errors on Getting Started

2009-12-04 Thread David Biesack
The commands in the Getting Started page ( 
http://liftweb.net/docs/getting_started/mod_master.html
)
for creating the todo project does not work when copied and pasted
into a shell.

The long command is split over multiple lines and end with \ but there
is a space after the backslash
which I did not notice until I pasted them into a cygwin bash shell
and got errors.

For example:

Listing 1:  Create a new project

mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=1.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=com.liftworkshop \
-DartifactId=todo \
-Dversion=0.1-SNAPSHOT

Hope someone can fix that. thanks.

--

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] Error reading archetype catalog http://scala-tools.org

2009-12-04 Thread David Biesack
On Windows XP with Maven already installed, I tried the instructions
on http://wiki.github.com/dpp/liftweb , namely

   mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/

This started (downloaded several maven plugins successfully) but
failed with

[INFO] Generating project in Batch mode
Error reading archetype catalog http://scala-tools.org
java.lang.NullPointerException
at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(HttpURLConnection.java:787)
at sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:718)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1041)


Thoughts on getting past this?

BTW, http://liftweb.net/download.html does not provide actual
instructions to download/install Lift -- only for installing Maven. To
newcomers, this is confusing - there is no indication that lift does
not really require a download/install. Perhaps someone can update that
page to point to the wiki page or getting started page for actually
"installing"/using Lift, or add a correct mvn archetype command to use
once Maven is installed? As it stands, it is very confusing because it
implies the installers for Win and Mac are Lift installers, whereas
the Win installer merely installs Maven. Especially since a newcomer
coming to the lift site sees four big buttons - Source, Issue Tracker,
Download Installers, and Quotes, one is immediately drawn to an
Installer that does not install Lift... (Yes, the Getting Started link
is also on the home page, but much less prominent)

I was able to use

mvn archetype:generate -U \
  -DarchetypeGroupId=net.liftweb \
  -DarchetypeArtifactId=lift-archetype-blank \
  -DarchetypeVersion=1.0 \
  -DremoteRepositories=http://scala-tools.org/repo-releases \
  -DgroupId=demo.helloworld \
  -DartifactId=helloworld \
  -Dversion=1.0-SNAPSHOT

from http://liftweb.net/docs/getting_started/mod_master.html to get
helloworld running, but as a new user, I had to dig around to find
that.

Also, the message jetty issued was

2009-12-04 09:03:21.535:INFO::Started
selectchannelconnec...@0.0.0.0:8080

and not

[INFO] Starting scanner at interval of 5 seconds.

as stated on that page

--

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: Newbie question on the Scala Todo sample application.

2009-12-04 Thread itsjar
Great!
Thanks a lot on the input guys.

Itsjar

On Dec 4, 1:11 am, David Pollak  wrote:
> On Thu, Dec 3, 2009 at 3:47 PM, itsjar  wrote:
> > Hi,
>
> > when I was working on the tutorial I got to the point where it tells
> > you to run it and go to localhost:8080.
> > I was surprised to see a complete login/signup application which I
> > didn't code.
> > So when I set up the program by using the command:
> >   mvn archetype:generate -U \
> >    -DarchetypeGroupId=net.liftweb \
> >    -DarchetypeArtifactId=lift-archetype-basic \
> >    -DarchetypeVersion=1.0 \
> >    -DremoteRepositories=http://scala-tools.org/repo-releases\
> >    -DgroupId=com.liftworkshop \
> >    -DartifactId=todo \
> >    -Dversion=0.1-SNAPSHOT
>
> > there is some command in it which generates a standard application for
> > me?
>
> The above command creates a new application based on a template (or
> archetype in Maven terms)  The "lift-archetype-basic" application contains
> the template with is run against the parameters.
>
> > I've been looking for the code of this application but it seems to be
> > in .class files which (when I open them) don't really make sense to
> > me.
>
> The complete source code for the application can be found the in
> subdirectories of the src directory.  If you do a "find . -name *.scala"
> you'll get a list of all the Scala source files.
>
> > Could someone explain me what is going on behind my back since I want
> > to be in complete control of the application. Also I would like to
> > write the login application from scratch to learn lift/scala and it
> > might be useful to have access to the code. Is that possible?
>
> Most of the code for the login part is supplied by the MegaProtoUser class
> in Lift.  
> Seehttp://scala-tools.org/mvnsites/liftweb-1.0/lift-mapper/scaladocs/net...
>
>
>
> > These are probably dumb questions. Sorry if that's the case.
>
> Thanks for making the effort to learn Lift.
>
> David
>
>
>
> > Thanks,
> > itsjar
>
> > --
>
> > 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, 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 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.




Re: [Lift] Re: S.render function was removed

2009-12-04 Thread Paul Sandoz

On Dec 3, 2009, at 6:47 PM, David Pollak wrote:

> Yeah I'm not sure why this code was removed.  Please open a  
> ticket and I'll put it back.
>

Thanks:

   http://github.com/dpp/liftweb/issues/#issue/219

I included a patch as a comment, but it got all mangled and i am  
unsure if there is some special markup to avoid that.

Paul.


> On Thu, Dec 3, 2009 at 3:04 AM, Paul Sandoz   
> wrote:
>
> On Dec 3, 2009, at 11:33 AM, Marius wrote:
>
> > I think Dave commented it out and I remove it after it was commented
> > out. I'm don't like very much code commented out.
> >
> > Personally I really don't think such API should exist. You already
> > have a LiftSession#runTemplate that would process surrounds,  
> snippets
> > etc.Why would this not suffice?
> >
>
> The thread i linked to [1] provides the context as to why this was
> requested and implemented at the time. I do not know if anything has
> changed in the interim to "render" S.render redundant.
>
> Paul.
>
> [1] 
> http://groups.google.com/group/liftweb/browse_thread/thread/dba9a11251aa5067?fwc=2
>
> > Br's,
> > Marius
> >
> > On Dec 3, 12:19 pm, Paul Sandoz  wrote:
> >> Hi,
> >>
> >> Any reason why the S.render function was first commented out:
> >>
> >>http://github.com/dpp/liftweb/commit/b2b6bb4979e6e8d7d700c079432ded11
> >> ...
> >>
> >> and then removed:
> >>
> >>http://github.com/dpp/liftweb/commit/523e97751833ac03b522a224b31020fb
> >> ...
> >>
> >> ?
> >>
> >> See the following discussion for some context as to why it was
> >> introduced:
> >>
> >>http://groups.google.com/group/liftweb/browse_thread/thread/dba9a1125
> >> ...
> >>
> >> Paul.
> >
> > --
> >
> > 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
> > .
> >
> >
>
> --
>
> 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, the simply functional web framework http://liftweb.net
> Beginning Scala http://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 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 
> .

--

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: JSON Reponses

2009-12-04 Thread deadfolk
Wow - thanks for the reponses, guys!  Plenty to look at here.

Doesn't look like I should be concerned about support for Lift.  If
only some of the commercial support contracts we have were as helpful.



On Dec 3, 7:17 pm, Ross Mellgren  wrote:
> Views are for providing template XML, I believe, and so are still  
> using NodeSeq and wouldn't address the problem.
>
> Looking at the type of LiftRules.viewDispatch seems to imply that, at  
> least.
>
> -Ross
>
> On Dec 3, 2009, at 1:59 PM, Daniel Nelson wrote:
>
> > Hi Matt,
>
> > I'm pretty new/novice myself, but I believe you do this through View
> > instead of Snippet.
>
> > Don't forget to add the specific View page to Sitemap otherwise it
> > won't be accessible when you call it.
>
> > Hope this is accurate / helpful.
>
> > Dan
>
> > On Dec 3, 11:06 am, deadfolk  wrote:
> >> Hi all,
>
> >> I'm still at the evaluation stage of Lift, so please forgive my
> >> ignorance, but I cannot figure out how to render any non-XML  
> >> reponses.
>
> >> I'm looking to create a simple web service which can send reponses
> >> back in either XML or JSON.  I have the XML side covered, but I can't
> >> figure out how to send a JSON response back.  Snippets take a NodeSeq
> >> and return a NodeSeq, so unless I'm missing something here, they are
> >> only good for XML.
>
> >> I've found various posts on JSON, but they all seem to relate to  
> >> forms
> >> and AJAX, whereas all I really want to be able to do is render JSON
> >> instead of XML.
>
> >> Any pointers greatly appreciated,
>
> >> Matt
>
> > --
>
> > 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.




Re: [Lift] Schemify has SQL Exception, IDENIFY instead of IDENTIFY is in the SQL query

2009-12-04 Thread David Brooks
Hi,

I've searched the 1-1-SNAPSHOT sources and found:

lift-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/Driver.scala:
   def integerIndexColumnType = "INTEGER NOT NULL GENERATED BY DEFAULT 
AS IDENITY"

so it looks as if someone's made a typo.

I suggest you open a ticket at http://github.com/dpp/liftweb/issues

Regards,
Dave


On 4/12/09 5:24 PM, James Black wrote:
> I had used LIFT 1.0 to build my framework, and I am curious what I
> need to do to get beyond this error.
>
> I tried to use
> mvn -U clean install compile jetty:run
>
> I had set my dependency in pom.xml to point to LIFT 1.0, 1.0.2 and
> 1.1, but none of these made any difference, so I am not certain it
> made any change.
>
> INFO - CREATE TABLE educationinfo (key_c VARCHAR(100) , school VARCHAR
> (100) , de
> gree VARCHAR(100) , startyear INTEGER NOT NULL GENERATED ALWAYS AS
> IDENITY , end
> year INTEGER NOT NULL GENERATED ALWAYS AS IDENITY , resume BIGINT , id
> BIGINT NO
> T NULL GENERATED ALWAYS AS IDENTITY)
> ERROR - Failed to Boot
>
>
>

--

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.