[Lift] Re: Cron style job support?

2009-05-21 Thread marius d.

Or use Scala actors + ActorPing from lift.

Marius

On May 21, 12:54 am, Timothy Perrett  wrote:
> Checkout the lift-machine module... should do what you want. Right now  
> it's tied to mapper, so if your not using that you'll have to look  
> elsewhere in normal JEE land :-)
>
> Cheers, Tim
>
> Sent from my iPhone
>
> On 20 May 2009, at 21:16, Ewan  wrote:
>
>
>
> > Apologies for the cross-post with the Lift-book group but this is the
> > more appropriate group...
>
> > While this does not necessarily have anything to do with a webapp does
> > anyone have suggestions for the means to create/register and run a
> > cron style job?  Specifically I would like to extract data from the DB
> > and send to a Solr instance for searching and as I am happily using
> > Mapper I'd like to continue using it for ORM.  In J2EE land we used
> > Quartz so worst case I guess I could have a servlet that on
> > initialisation starts up Quartz and then code a job to that hits the
> > DB with JDBC and then post to a Solr instance.
>
> > -- Ewan
--~--~-~--~~~---~--~~
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: how to serve html fragments

2009-05-21 Thread fatu

Right, didn't think about that alternative.

Thanks and best compliments to you and all the active Lift community
for this superb Scala framework! I really think (and hope) it's going
to have a big impact and a tremendous popularity rise in the next
months, especially with more forthcoming books and articles spreading
the word.

On 21 Mag, 06:42, David Pollak  wrote:
> On Wed, May 20, 2009 at 8:38 PM, fatu  wrote:
>
> > Hi David,
>
> > yes it will do, thank you so much for such a lightning-fast
> > development in reply!
>
> > I'm only thinking about a case that is probably much more of an
> > exception than a rule, i.e. when the snippet dynamically decides if it
> > needs to generate a full page or a fragment (which is not a very good
> > design anyway IMHO), for example based on some info passed. But even
> > in that case the snippet will know that and will be able to set
> > S.skipDocType = true accordingly, so it should be perfectly fine. Plus
> > it won't be difficult at all to make the processing diverge in the 2
> > cases by using URL rewrites, redirecting it to a different template /
> > snippet depending on parameters or URL structure, which is probably a
> > better design too.
>
> You could also pass a header flag from your AJAX call.  If the header's set,
> you don't do the boilerplate surround that'll include all the , 
> and  tags.
>
> Anyway, enjoy and thanks for the use case.
>
> Party on.
>
>
>
>
>
> > Again many thanks everyone and David especially!
>
> > On May 20, 4:05 pm, David Pollak 
> > wrote:
> > > I'm about to commit S.skipDocType = true | false.  If you set it to true,
> > > the  will be omitted from the response page.  This will
> > allow
> > > your AJAX fragements to pull parts of pages from the server.  Note that
> > > someplace in your snippets, you'll have to set S.skipDocType = true.
>
> > > Does this address your issue?
>
> > > On Wed, May 20, 2009 at 5:13 AM, fatu  wrote:
>
> > > > Hi Marius,
>
> > > > as I understand them, Jx classes help in generating JS that can itself
> > > > generate DOM at the client.  Am I wrong? I'd really like to serve back
> > > > an HTML fragment built by using the normal Lift template pipeline (so
> > > > including surround & bind). Is that possible?
>
> > > > Thanks
>
> > > > On 20 Mag, 13:16, "marius d."  wrote:
> > > > > As I understood you want to make an Ajax request and serve back a
> > > > > Document Fragment. If so please also take a look at Jx stuff. We
> > > > > discuss Jx classes in a fairly amount of details in the lift book.
>
> > > > > Br's,
> > > > > Marius
>
> > > > > On May 20, 9:32 am, fatu  wrote:
>
> > > > > > Timothy,
>
> > > > > > thanks for the links, I found them useful and I find your blog in
> > > > > > general very interesting. Came across scala-blogs.org and it looks
> > > > > > quite promising as well.
>
> > > > > > I knew "bind" already from the "Exploring Lift" book which I pull
> > from
> > > > > > git, build with Lyx and keep at hand regularly. In the doctype
> > post,
> > > > > > though, I couldn't find a way to specify "no doctype"  which I
> > think
> > > > > > is necessary to serve a fragment; plus I couldn't find any other
> > easy
> > > > > > "out-of-the-box" way to do it. Shouldn't this use case (serving
> > > > > > fragments), which I think is quite common, be better / more easily
> > > > > > supported by the framework? Can someone post an example of how to
> > do
> > > > > > it with raw response handling in the meanwhile?
>
> > > > > > Thanks anybody.
>
> > > > > > Fabio
>
> > > > > > On 26 Apr, 21:49, Timothy Perrett  wrote:
>
> > > > > > > George,
>
> > > > > > > To tell lift what doctype you want to use see my blog post here:
> > > >http://is.gd/uJ4L
>
> > > > > > > Also, you'll want to read another one of my posts in which I
> > discuss
> > > > > > > the bind(...) method and how you can stop putting markup into
> > your
> > > > > > > snippets:http://is.gd/sfyT
>
> > > > > > > Cheers, Tim
>
> > > > > > > On Apr 26, 1:02 pm, george  wrote:
>
> > > > > > > > hello all,
>
> > > > > > > > hopefully someone can help me out here.
>
> > > > > > > > i am trying to port some simple ajax stuff over to lift from a
> > > > rails
> > > > > > > > app. basically it just loads anhtmlfragmentand puts it into the
> > dom
> > > > > > > > using prototype.
>
> > > > > > > > i have set up a template which contains thefragmentat src/main/
> > > > > > > > webapp/fragment.html
>
> > > > > > > > item
>
> > > > > > > > then i made the page available using the SiteMap and all seems
> > > > good,
> > > > > > > > but here comes the problem
>
> > > > > > > > the lift response adds the xml declaration and doctype, one of
> > > > which
> > > > > > > > seems to cause prototype some problems
>
> > > > > > > > 
> > > > > > > >  > > >http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > > > > > > item
>
> > > > > > > > so the question is, how can i make lift send back the
> > > > rawhtmlwithout
> > > > > > > > meddling with i

[Lift] Re: how to serve html fragments

2009-05-21 Thread george

Thanks guys for following up on this.

It's a great help here too.

George

On May 21, 5:42 am, David Pollak 
wrote:
> On Wed, May 20, 2009 at 8:38 PM, fatu  wrote:
>
> > Hi David,
>
> > yes it will do, thank you so much for such a lightning-fast
> > development in reply!
>
> > I'm only thinking about a case that is probably much more of an
> > exception than a rule, i.e. when the snippet dynamically decides if it
> > needs to generate a full page or a fragment (which is not a very good
> > design anyway IMHO), for example based on some info passed. But even
> > in that case the snippet will know that and will be able to set
> > S.skipDocType = true accordingly, so it should be perfectly fine. Plus
> > it won't be difficult at all to make the processing diverge in the 2
> > cases by using URL rewrites, redirecting it to a different template /
> > snippet depending on parameters or URL structure, which is probably a
> > better design too.
>
> You could also pass a header flag from your AJAX call.  If the header's set,
> you don't do the boilerplate surround that'll include all the , 
> and  tags.
>
> Anyway, enjoy and thanks for the use case.
>
> Party on.
>
>
>
>
>
>
>
> > Again many thanks everyone and David especially!
>
> > On May 20, 4:05 pm, David Pollak 
> > wrote:
> > > I'm about to commit S.skipDocType = true | false.  If you set it to true,
> > > the  will be omitted from the response page.  This will
> > allow
> > > your AJAX fragements to pull parts of pages from the server.  Note that
> > > someplace in your snippets, you'll have to set S.skipDocType = true.
>
> > > Does this address your issue?
>
> > > On Wed, May 20, 2009 at 5:13 AM, fatu  wrote:
>
> > > > Hi Marius,
>
> > > > as I understand them, Jx classes help in generating JS that can itself
> > > > generate DOM at the client.  Am I wrong? I'd really like to serve back
> > > > an HTML fragment built by using the normal Lift template pipeline (so
> > > > including surround & bind). Is that possible?
>
> > > > Thanks
>
> > > > On 20 Mag, 13:16, "marius d."  wrote:
> > > > > As I understood you want to make an Ajax request and serve back a
> > > > > Document Fragment. If so please also take a look at Jx stuff. We
> > > > > discuss Jx classes in a fairly amount of details in the lift book.
>
> > > > > Br's,
> > > > > Marius
>
> > > > > On May 20, 9:32 am, fatu  wrote:
>
> > > > > > Timothy,
>
> > > > > > thanks for the links, I found them useful and I find your blog in
> > > > > > general very interesting. Came across scala-blogs.org and it looks
> > > > > > quite promising as well.
>
> > > > > > I knew "bind" already from the "Exploring Lift" book which I pull
> > from
> > > > > > git, build with Lyx and keep at hand regularly. In the doctype
> > post,
> > > > > > though, I couldn't find a way to specify "no doctype"  which I
> > think
> > > > > > is necessary to serve a fragment; plus I couldn't find any other
> > easy
> > > > > > "out-of-the-box" way to do it. Shouldn't this use case (serving
> > > > > > fragments), which I think is quite common, be better / more easily
> > > > > > supported by the framework? Can someone post an example of how to
> > do
> > > > > > it with raw response handling in the meanwhile?
>
> > > > > > Thanks anybody.
>
> > > > > > Fabio
>
> > > > > > On 26 Apr, 21:49, Timothy Perrett  wrote:
>
> > > > > > > George,
>
> > > > > > > To tell lift what doctype you want to use see my blog post here:
> > > >http://is.gd/uJ4L
>
> > > > > > > Also, you'll want to read another one of my posts in which I
> > discuss
> > > > > > > the bind(...) method and how you can stop putting markup into
> > your
> > > > > > > snippets:http://is.gd/sfyT
>
> > > > > > > Cheers, Tim
>
> > > > > > > On Apr 26, 1:02 pm, george  wrote:
>
> > > > > > > > hello all,
>
> > > > > > > > hopefully someone can help me out here.
>
> > > > > > > > i am trying to port some simple ajax stuff over to lift from a
> > > > rails
> > > > > > > > app. basically it just loads anhtmlfragmentand puts it into the
> > dom
> > > > > > > > using prototype.
>
> > > > > > > > i have set up a template which contains thefragmentat src/main/
> > > > > > > > webapp/fragment.html
>
> > > > > > > > item
>
> > > > > > > > then i made the page available using the SiteMap and all seems
> > > > good,
> > > > > > > > but here comes the problem
>
> > > > > > > > the lift response adds the xml declaration and doctype, one of
> > > > which
> > > > > > > > seems to cause prototype some problems
>
> > > > > > > > 
> > > > > > > >  > > >http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > > > > > > item
>
> > > > > > > > so the question is, how can i make lift send back the
> > > > rawhtmlwithout
> > > > > > > > meddling with it?
>
> > > > > > > > i have tried out using ResourceServer to serve it statically
> > which
> > > > > > > > works, but this wouldn't allow me to generate thefragment
> > > > > > > > dynamically.
>
> > > > > > > > i would also prefer to have a separa

[Lift] UK Postcode validation for MappedPostalCode

2009-05-21 Thread Ewan

Hi

I have a "patch" for UK post code validation that a committer might
care to include into MappedPostalCode.validations().  The regex has
been lifted directly from the wikipedia entry
http://en.wikipedia.org/wiki/Postal_codes_in_the_United_Kingdom#Validation.

---8<-
case Countries.C184 =>  valRegex
(_root_.java.util.regex.Pattern.compile("[A-Z]{1,2}[0-9R][0-9A-Z]?
[0-9][ABD-HJLNP-UW-Z]{2}"), S.??("invalid.postal.code")) _ ::
super.validations

---8<-

It might also be appropriate to add the UK as a field:

  val UK = C184

rgds

-- Ewan

--~--~-~--~~~---~--~~
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: JPA or JDO best for us on Google App Engine?

2009-05-21 Thread Channing Walton

Has anything more been done with JDO support in Lift? I need to use
JDO so it would help if there was some work being done on this.

Channing

--~--~-~--~~~---~--~~
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: how to serve html fragments

2009-05-21 Thread David Pollak
On Thu, May 21, 2009 at 12:27 AM, fatu  wrote:

>
> Right, didn't think about that alternative.
>
> Thanks and best compliments to you and all the active Lift community
> for this superb Scala framework! I really think (and hope) it's going
> to have a big impact and a tremendous popularity rise in the next
> months, especially with more forthcoming books and articles spreading
> the word.


We ask two things: build cool apps in Lift and be part of this community,
asking and answering questions.

Thanks!


>
>
> On 21 Mag, 06:42, David Pollak  wrote:
> > On Wed, May 20, 2009 at 8:38 PM, fatu  wrote:
> >
> > > Hi David,
> >
> > > yes it will do, thank you so much for such a lightning-fast
> > > development in reply!
> >
> > > I'm only thinking about a case that is probably much more of an
> > > exception than a rule, i.e. when the snippet dynamically decides if it
> > > needs to generate a full page or a fragment (which is not a very good
> > > design anyway IMHO), for example based on some info passed. But even
> > > in that case the snippet will know that and will be able to set
> > > S.skipDocType = true accordingly, so it should be perfectly fine. Plus
> > > it won't be difficult at all to make the processing diverge in the 2
> > > cases by using URL rewrites, redirecting it to a different template /
> > > snippet depending on parameters or URL structure, which is probably a
> > > better design too.
> >
> > You could also pass a header flag from your AJAX call.  If the header's
> set,
> > you don't do the boilerplate surround that'll include all the ,
> 
> > and  tags.
> >
> > Anyway, enjoy and thanks for the use case.
> >
> > Party on.
> >
> >
> >
> >
> >
> > > Again many thanks everyone and David especially!
> >
> > > On May 20, 4:05 pm, David Pollak 
> > > wrote:
> > > > I'm about to commit S.skipDocType = true | false.  If you set it to
> true,
> > > > the  will be omitted from the response page.  This
> will
> > > allow
> > > > your AJAX fragements to pull parts of pages from the server.  Note
> that
> > > > someplace in your snippets, you'll have to set S.skipDocType = true.
> >
> > > > Does this address your issue?
> >
> > > > On Wed, May 20, 2009 at 5:13 AM, fatu  wrote:
> >
> > > > > Hi Marius,
> >
> > > > > as I understand them, Jx classes help in generating JS that can
> itself
> > > > > generate DOM at the client.  Am I wrong? I'd really like to serve
> back
> > > > > an HTML fragment built by using the normal Lift template pipeline
> (so
> > > > > including surround & bind). Is that possible?
> >
> > > > > Thanks
> >
> > > > > On 20 Mag, 13:16, "marius d."  wrote:
> > > > > > As I understood you want to make an Ajax request and serve back a
> > > > > > Document Fragment. If so please also take a look at Jx stuff. We
> > > > > > discuss Jx classes in a fairly amount of details in the lift
> book.
> >
> > > > > > Br's,
> > > > > > Marius
> >
> > > > > > On May 20, 9:32 am, fatu  wrote:
> >
> > > > > > > Timothy,
> >
> > > > > > > thanks for the links, I found them useful and I find your blog
> in
> > > > > > > general very interesting. Came across scala-blogs.org and it
> looks
> > > > > > > quite promising as well.
> >
> > > > > > > I knew "bind" already from the "Exploring Lift" book which I
> pull
> > > from
> > > > > > > git, build with Lyx and keep at hand regularly. In the doctype
> > > post,
> > > > > > > though, I couldn't find a way to specify "no doctype"  which I
> > > think
> > > > > > > is necessary to serve a fragment; plus I couldn't find any
> other
> > > easy
> > > > > > > "out-of-the-box" way to do it. Shouldn't this use case (serving
> > > > > > > fragments), which I think is quite common, be better / more
> easily
> > > > > > > supported by the framework? Can someone post an example of how
> to
> > > do
> > > > > > > it with raw response handling in the meanwhile?
> >
> > > > > > > Thanks anybody.
> >
> > > > > > > Fabio
> >
> > > > > > > On 26 Apr, 21:49, Timothy Perrett 
> wrote:
> >
> > > > > > > > George,
> >
> > > > > > > > To tell lift what doctype you want to use see my blog post
> here:
> > > > >http://is.gd/uJ4L
> >
> > > > > > > > Also, you'll want to read another one of my posts in which I
> > > discuss
> > > > > > > > the bind(...) method and how you can stop putting markup into
> > > your
> > > > > > > > snippets:http://is.gd/sfyT
> >
> > > > > > > > Cheers, Tim
> >
> > > > > > > > On Apr 26, 1:02 pm, george  wrote:
> >
> > > > > > > > > hello all,
> >
> > > > > > > > > hopefully someone can help me out here.
> >
> > > > > > > > > i am trying to port some simple ajax stuff over to lift
> from a
> > > > > rails
> > > > > > > > > app. basically it just loads anhtmlfragmentand puts it into
> the
> > > dom
> > > > > > > > > using prototype.
> >
> > > > > > > > > i have set up a template which contains thefragmentat
> src/main/
> > > > > > > > > webapp/fragment.html
> >
> > > > > > > > > item
> >
> > > > > > > > > then i made the page available using the SiteMap an

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-05-21 Thread Derek Chen-Becker
I don't have much experience with JDO, but I'm positive that if you run into
issues you can find some help on the list. JDO is one area where we would
appreciate notes from people who are working with it. If we get enough info,
I could add another chapter to the book on JDO, similar to what we've done
already for JPA.

Derek

On Thu, May 21, 2009 at 4:32 AM, Channing Walton wrote:

>
> Has anything more been done with JDO support in Lift? I need to use
> JDO so it would help if there was some work being done on this.
>
> Channing
>
> >
>

--~--~-~--~~~---~--~~
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: JPA or JDO best for us on Google App Engine?

2009-05-21 Thread David Pollak
On Thu, May 21, 2009 at 9:13 AM, Derek Chen-Becker wrote:

> I don't have much experience with JDO, but I'm positive that if you run
> into issues you can find some help on the list. JDO is one area where we
> would appreciate notes from people who are working with it. If we get enough
> info, I could add another chapter to the book on JDO, similar to what we've
> done already for JPA.


Lift should be cool with JDO objects as long as JDO works in Scala.  If Lift
gives you problems, please file a bug.


>
>
> Derek
>
>
> On Thu, May 21, 2009 at 4:32 AM, Channing Walton 
> wrote:
>
>>
>> Has anything more been done with JDO support in Lift? I need to use
>> JDO so it would help if there was some work being done on this.
>>
>> Channing
>>
>>
>>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://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] Small commit

2009-05-21 Thread Derek Chen-Becker
I just added some more documentation to the S object. I also added a
getHeader method that can be used to get a single HTTP response header as a
Box, since it seemed like a natural adjunct to the existing getHeaders
method.

Derek

--~--~-~--~~~---~--~~
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: UK Postcode validation for MappedPostalCode

2009-05-21 Thread David Pollak
Thanks.  Patched.

On Thu, May 21, 2009 at 3:29 AM, Ewan  wrote:

>
> Hi
>
> I have a "patch" for UK post code validation that a committer might
> care to include into MappedPostalCode.validations().  The regex has
> been lifted directly from the wikipedia entry
> http://en.wikipedia.org/wiki/Postal_codes_in_the_United_Kingdom#Validation
> .
>
> ---8<-
>case Countries.C184 =>  valRegex
> (_root_.java.util.regex.Pattern.compile("[A-Z]{1,2}[0-9R][0-9A-Z]?
> [0-9][ABD-HJLNP-UW-Z]{2}"), S.??("invalid.postal.code")) _ ::
> super.validations
>
> ---8<-
>
> It might also be appropriate to add the UK as a field:
>
>  val UK = C184
>
> rgds
>
> -- Ewan
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://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: [scala] GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread Miles Sabin

On Tue, Apr 14, 2009 at 5:25 PM, Atsuhiko Yamanaka
 wrote:
> On Tue, Apr 14, 2009 at 4:44 AM, toivo  wrote:
>> DataNucleus Enhancer (version 1.1.0) : Enhancement of classes
>>
>> Apr 13, 2009 10:22:31 PM org.datanucleus.metadata.MetaDataManager
>> loadClasses
>> SEVERE: Class "gbook.Autu" was not found in the CLASSPATH. Please check your
>> specification and your CLASSPATH.
>> org.datanucleus.exceptions.ClassNotResolvedException: Class "gbook.Autu" was
>> not found in the CLASSPATH. Please check your specification and your
>> CLASSPATH.
>
> If you add scala-library.jar to the CLASSPATH for the enhance command,
> that error will be disappeared.

Is anyone willing to write this up for the Scala Trac Wiki? A
walkthrough of getting a Scala GAE project up and running in Eclipse
would be extremely helpful.

While we're about it, the current Wiki entry for using the Scala IDE
for Eclipse for Lift development consists of exactly one line. While
I'd be delighted if things really were as simple, straightforward and
reliable as that implies, I fear that in fact the picture isn't so
rosy.

It'd be fantastic if someone could also contribute a walkthough of
setting up a Lift project in Eclipse. And for bonus points a
walkthrough of getting a Scala Lift GAE project up and running in
Eclipse would be Just Awesome.

Cheers,


Miles

-- 
Miles Sabin
tel: +44 (0)7813 944 528
skype:  milessabin
http://twitter.com/milessabin

--~--~-~--~~~---~--~~
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: set currentUser as owner

2009-05-21 Thread Tobias Daub
Hi Dave,

The thing with

User.currentUserId openOr 0L

didn't worked as well.

I attached the source file that contains the trait that I mix into my 
class .

> Can you post a code sample and the error?

Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] 

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

[INFO] Preparing jetty:run
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [yuicompressor:compress {execution: default}]
[INFO] nb warnings: 0, nb errors: 0
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Checking for multiple versions of scala
[INFO] Compiling 1 source files to /home/tobs/virtualMarket/target/classes
[WARNING] Exception in thread "main" java.lang.RuntimeException: 
malformed Scala signature of User at 13749; reference type _1 of  
refers to nonexisting symbol.
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.errorBadSignature(UnPickler.scala:762)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:172)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef(UnPickler.scala:714)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:254)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$3.apply(UnPickler.scala:255)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$3.apply(UnPickler.scala:255)
[WARNING] at 
scala.tools.nsc.symtab.classfile.PickleBuffer.until(PickleBuffer.scala:127)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:255)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:286)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
[WARNING] at 
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$3.apply(UnPi

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn

I'd be happy to write up a step-by-step of getting a Lift project
running in Eclipse,
from installing Eclipse to installing the scala and maven plugins and
setting them up and creating
a new maven project using the lift archetypes.

Glenn...

On May 21, 10:59 am, Miles Sabin  wrote:
> On Tue, Apr 14, 2009 at 5:25 PM, Atsuhiko Yamanaka
>
>  wrote:
> > On Tue, Apr 14, 2009 at 4:44 AM, toivo  wrote:
> >> DataNucleus Enhancer (version 1.1.0) : Enhancement of classes
>
> >> Apr 13, 2009 10:22:31 PM org.datanucleus.metadata.MetaDataManager
> >> loadClasses
> >> SEVERE: Class "gbook.Autu" was not found in the CLASSPATH. Please check 
> >> your
> >> specification and your CLASSPATH.
> >> org.datanucleus.exceptions.ClassNotResolvedException: Class "gbook.Autu" 
> >> was
> >> not found in the CLASSPATH. Please check your specification and your
> >> CLASSPATH.
>
> > If you add scala-library.jar to the CLASSPATH for the enhance command,
> > that error will be disappeared.
>
> Is anyone willing to write this up for the Scala Trac Wiki? A
> walkthrough of getting a Scala GAE project up and running in Eclipse
> would be extremely helpful.
>
> While we're about it, the current Wiki entry for using the Scala IDE
> for Eclipse for Lift development consists of exactly one line. While
> I'd be delighted if things really were as simple, straightforward and
> reliable as that implies, I fear that in fact the picture isn't so
> rosy.
>
> It'd be fantastic if someone could also contribute a walkthough of
> setting up a Lift project in Eclipse. And for bonus points a
> walkthrough of getting a Scala Lift GAE project up and running in
> Eclipse would be Just Awesome.
>
> Cheers,
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)7813 944 528
> skype:  milessabinhttp://twitter.com/milessabin

--~--~-~--~~~---~--~~
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: set currentUser as owner

2009-05-21 Thread David Pollak

This is our old friend, Scala defect 715... closed for 2.8.0:
https://lampsvn.epfl.ch/trac/scala/ticket/715

Please do a "mvn clean jetty:run" and all should be good.

On May 21, 7:08 am, Tobias Daub  wrote:
> Hi Dave,
>
> The thing with
>
> User.currentUserId openOr 0L
>
> didn't worked as well.
>
> I attached the source file that contains the trait that I mix into my
> class .
>
> > Can you post a code sample and the error?
>
> Warning: JAVA_HOME environment variable is not set.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jetty'.
> [INFO]
> 
> [INFO] Building virtualMarket
> [INFO]    task-segment: [jetty:run]
> [INFO]
> 
> [INFO] Preparing jetty:run
> [INFO] [resources:resources]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] [yuicompressor:compress {execution: default}]
> [INFO] nb warnings: 0, nb errors: 0
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [scala:compile {execution: default}]
> [INFO] Checking for multiple versions of scala
> [INFO] Compiling 1 source files to /home/tobs/virtualMarket/target/classes
> [WARNING] Exception in thread "main" java.lang.RuntimeException:
> malformed Scala signature of User at 13749; reference type _1 of 
> refers to nonexisting symbol.
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.errorBadSignature(UnPickler.scala:762)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:172)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef(UnPickler.scala:714)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:254)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$3.apply(UnPickler.scala:255)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$3.apply(UnPickler.scala:255)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.PickleBuffer.until(PickleBuffer.scala:127)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:255)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:286)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
> [WARNING]     at
> scala.tools.nsc.symtab.classfile.UnP

[Lift] Re: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread Miles Sabin

On Thu, May 21, 2009 at 8:25 PM, glenn  wrote:
> I'd be happy to write up a step-by-step of getting a Lift project
> running in Eclipse,
> from installing Eclipse to installing the scala and maven plugins and
> setting them up and creating
> a new maven project using the lift archetypes.

Fantastic! Assuming you have a Scala Trac login you should be able to
directly edit this page,

  http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift

Thanks!

Cheers,


Miles

-- 
Miles Sabin
tel: +44 (0)7813 944 528
skype:  milessabin
http://twitter.com/milessabin

--~--~-~--~~~---~--~~
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: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn


Miles,

I did a basic instruction page in the wiki for you to review. Note
that the
repository locations in the archetype catalog point to the release,
not
the SNAPSHOT versions. I'll change that, but just wanted to get the
basic
concepts out there first.

Glenn..


On May 21, 12:17 pm, Miles Sabin  wrote:
> On Thu, May 21, 2009 at 8:25 PM, glenn  wrote:
> > I'd be happy to write up a step-by-step of getting a Lift project
> > running in Eclipse,
> > from installing Eclipse to installing the scala and maven plugins and
> > setting them up and creating
> > a new maven project using the lift archetypes.
>
> Fantastic! Assuming you have a Scala Trac login you should be able to
> directly edit this page,
>
>  http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift
>
> Thanks!
>
> Cheers,
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)7813 944 528
> skype:  milessabinhttp://twitter.com/milessabin

--~--~-~--~~~---~--~~
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: GAE, Google Plugin for Eclipse, Scala and DataNucleus problems.

2009-05-21 Thread glenn

Miles,

Ignore my last note about the released vs. snapshot, I just made the
changes to point to the 1.1 snapshot versions, and removed the
need to change the jetty version.

Glenn..

On May 21, 12:17 pm, Miles Sabin  wrote:
> On Thu, May 21, 2009 at 8:25 PM, glenn  wrote:
> > I'd be happy to write up a step-by-step of getting a Lift project
> > running in Eclipse,
> > from installing Eclipse to installing the scala and maven plugins and
> > setting them up and creating
> > a new maven project using the lift archetypes.
>
> Fantastic! Assuming you have a Scala Trac login you should be able to
> directly edit this page,
>
>  http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift
>
> Thanks!
>
> Cheers,
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)7813 944 528
> skype:  milessabinhttp://twitter.com/milessabin

--~--~-~--~~~---~--~~
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] project stockholm

2009-05-21 Thread Meredith Gregory
All,

i've been working in earnest on a little open source project for DSL
generation  that
my wife suggested i call stockholm (whom am i to argue). At this point it's
just about syntax, not execution. From a BNF file you generate

   - a web-hosted parser/repl
   - the abstract syntax class of the parser support visitor pattern
   traversal
   - a set of subclasses that map the abstract syntax to store
  - right now i've got SQL via a JPA layer
  - shortly i will also have an XML persistence layer via DBXML

Slightly burdensome dependencies

   - i use BNFC which means you need Haskell + Happy + Alex installed on
   your system. (On a mac this is port install Haskell, port install Happy,
   port install Alex.)
   - When the XML persistence comes on line there will be a dependency on
   DBXML.
   - Neither of these dependencies play nicely with maven. i've got some
   strategies for workin around this for the parser generator, but not for the
   XML persistence layer.

In a not too distant release i will add some support for specifying and
generating operational semantics via techniques borrowed from Peter Sewell's
Ott.

Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

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



[Lift] Re: project stockholm

2009-05-21 Thread Charles F. Munat

Because of Stockholm Syndrome?

Meredith Gregory wrote:
> All,
> 
> i've been working in earnest on a little open source project for DSL 
> generation  
> that my wife suggested i call stockholm (whom am i to argue). At this 
> point it's just about syntax, not execution. From a BNF file you generate
> 
> * a web-hosted parser/repl
> * the abstract syntax class of the parser support visitor pattern
>   traversal
> * a set of subclasses that map the abstract syntax to store
>   o right now i've got SQL via a JPA layer
>   o shortly i will also have an XML persistence layer via DBXML
> 
> Slightly burdensome dependencies
> 
> * i use BNFC which means you need Haskell + Happy + Alex installed
>   on your system. (On a mac this is port install Haskell, port
>   install Happy, port install Alex.)
> * When the XML persistence comes on line there will be a dependency
>   on DBXML.
> * Neither of these dependencies play nicely with maven. i've got
>   some strategies for workin around this for the parser generator,
>   but not for the XML persistence layer.
> 
> In a not too distant release i will add some support for specifying and 
> generating operational semantics via techniques borrowed from Peter 
> Sewell's Ott.
> 
> Best wishes,
> 
> --greg
> 
> -- 
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 1219 NW 83rd St
> Seattle, WA 98117
> 
> +1 206.650.3740
> 
> http://biosimilarity.blogspot.com
> 
> > 

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



[Lift] Lift 1.0 and maven archetype?

2009-05-21 Thread Todd Cook

I was hoping to be able to use the maven archetype. I pulled it down
and tried to upgrade it to lift 1.0 and scala 2.74.final, but it blew
up.

Any plans for updating the archetype? Or any hints on getting it to
work?

Todd


stack traces:
[INFO] Compiling 3 source files to /Users/todd/IdeaProjects/lifttest/
target/classes
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
model/User.scala:9: error: wrong number of type arguments for
net.liftweb.mapper.MetaMegaProtoUser, should be 1
[WARNING] object User extends User with MetaMegaProtoUser[User, User
with KeyedMetaMapper[Long, User]] {
[WARNING]   ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
model/User.scala:26: error: type mismatch;
[WARNING]  found   : lifttest.model.User.type (with underlying type
object lifttest.model.User)
[WARNING]  required: net.liftweb.mapper.KeyedMetaMapper
[Long,lifttest.model.User]
[WARNING]   def getSingleton = User // what's the "meta" server
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:21: error: overloaded method value schemify with
alternatives (Boolean,(=> AnyRef) =>
Unit,net.liftweb.mapper.ConnectionIdentifier,net.liftweb.mapper.BaseMetaMapper*)
List[String]  (Boolean,(=> AnyRef) =>
Unit,net.liftweb.mapper.BaseMetaMapper*)List[String] cannot be applied
to (Boolean,(=> AnyRef) => Unit,lifttest.model.User.type)
[WARNING] Schemifier.schemify(true, Log.infoF _, User)
[WARNING]^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:23: error: value addTemplateBefore is not a member
of object net.liftweb.http.LiftRules
[WARNING] LiftRules.addTemplateBefore(User.templates)
[WARNING]   ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:26: error: type mismatch;
[WARNING]  found   : java.lang.String("/")
[WARNING]  required: net.liftweb.sitemap.Loc.Link
[net.liftweb.sitemap.NullLocParams]
[WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
User.sitemap
[WARNING]^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:26: error: value sitemap is not a member of object
lifttest.model.User
[WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
User.sitemap
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:28: error: value requestLoans is not a member of
object lifttest.model.User
[WARNING] S.addAround(User.requestLoans)
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:34: error: not found: type Can
[WARNING]   def newConnection(name: ConnectionIdentifier): Can
[Connection] = {
[WARNING]  ^
[WARNING] 8 errors found
[INFO] ---

--~--~-~--~~~---~--~~
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 1.0 and maven archetype?

2009-05-21 Thread Todd Cook

I was hoping to be able to use the maven archetype. I pulled it down
and tried to upgrade it to lift 1.0 and scala 2.74.final, but it blew
up.

Any plans for updating the archetype? Or any hints on getting it to
work?

Todd


stack traces:
[INFO] Compiling 3 source files to /Users/todd/IdeaProjects/lifttest/
target/classes
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
model/User.scala:9: error: wrong number of type arguments for
net.liftweb.mapper.MetaMegaProtoUser, should be 1
[WARNING] object User extends User with MetaMegaProtoUser[User, User
with KeyedMetaMapper[Long, User]] {
[WARNING]   ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
model/User.scala:26: error: type mismatch;
[WARNING]  found   : lifttest.model.User.type (with underlying type
object lifttest.model.User)
[WARNING]  required: net.liftweb.mapper.KeyedMetaMapper
[Long,lifttest.model.User]
[WARNING]   def getSingleton = User // what's the "meta" server
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:21: error: overloaded method value schemify with
alternatives (Boolean,(=> AnyRef) =>
Unit,net.liftweb.mapper.ConnectionIdentifier,net.liftweb.mapper.BaseMetaMapper*)
List[String]  (Boolean,(=> AnyRef) =>
Unit,net.liftweb.mapper.BaseMetaMapper*)List[String] cannot be applied
to (Boolean,(=> AnyRef) => Unit,lifttest.model.User.type)
[WARNING] Schemifier.schemify(true, Log.infoF _, User)
[WARNING]^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:23: error: value addTemplateBefore is not a member
of object net.liftweb.http.LiftRules
[WARNING] LiftRules.addTemplateBefore(User.templates)
[WARNING]   ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:26: error: type mismatch;
[WARNING]  found   : java.lang.String("/")
[WARNING]  required: net.liftweb.sitemap.Loc.Link
[net.liftweb.sitemap.NullLocParams]
[WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
User.sitemap
[WARNING]^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:26: error: value sitemap is not a member of object
lifttest.model.User
[WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
User.sitemap
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:28: error: value requestLoans is not a member of
object lifttest.model.User
[WARNING] S.addAround(User.requestLoans)
[WARNING]  ^
[WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
liftweb/Boot.scala:34: error: not found: type Can
[WARNING]   def newConnection(name: ConnectionIdentifier): Can
[Connection] = {
[WARNING]  ^
[WARNING] 8 errors found
[INFO] ---

--~--~-~--~~~---~--~~
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] How do I set the property 'mode' ?

2009-05-21 Thread Jonathan Ferguson

Is it part of the maven build or can I set it per environment ?

This is so I can use the correct log file at run time, see

http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/util/LogBoot$object.html

Cheers

Jono

--~--~-~--~~~---~--~~
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: How do I set the property 'mode' ?

2009-05-21 Thread David Pollak
You set it on the command line:

export MAVEN_OPTS="-Drun.mode=production"
mvn jetty:run

Thanks,

David

On Thu, May 21, 2009 at 9:35 PM, Jonathan Ferguson wrote:

>
> Is it part of the maven build or can I set it per environment ?
>
> This is so I can use the correct log file at run time, see
>
>
> http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/util/LogBoot$object.html
>
> Cheers
>
> Jono
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://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] Welcome Alexander Kiok, you're the 1,000th member of the Lift community

2009-05-21 Thread David Pollak
Folks,

It's been a very good week in Lift and Scala-land:

   - The Lift community has grown to 1,000 members.  That's a huge milestone
   and an indication that Lift and Scala have achieved an important level of
   popularity.
   - *Beginning Scala* and *The Definitive Guide to Lift* shipped this
   week.  Congrats to Derek, Marius, and Tyler on their book (my copy is on its
   way to Romania for an autograph).
   - Innovation Games Online (a Scala and Lift powered serious gaming site)
   went into final beta this week at http://dev.buyafeature.com
   - ESME (an SAP ecosystem project based on Scala and Lift) is getting back
   into the development swing (thanks Vassil)
   - And on a personal note, I got to have lunch with Adriaan Moors today.
   Adrian was awarded his PhD last week and rumor has it that he'll be in
   Laussanne in the fall.

So, Alexander and the rest of the members of the Lift and Scala communities,
let's all look at our virtual neighbors, smile, and keep growing the
community and the great software that the community is creating.

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://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: How do I set the property 'mode' ?

2009-05-21 Thread Jonathan Ferguson

Thanks very much !

Jono


On May 22, 2:38 pm, David Pollak 
wrote:
> You set it on the command line:
>
> export MAVEN_OPTS="-Drun.mode=production"
> mvn jetty:run
>
> Thanks,
>
> David
>
> On Thu, May 21, 2009 at 9:35 PM, Jonathan Ferguson wrote:
>
>
>
> > Is it part of the maven build or can I set it per environment ?
>
> > This is so I can use the correct log file at run time, see
>
> >http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/util/LogBoot...
>
> > Cheers
>
> > Jono
>
> --
> 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: project stockholm

2009-05-21 Thread Meredith Gregory
Charles,

Stockholm's feature set competes with Microsoft's Oslo; but Stockholm is
where you receive the Nobel Prize.

Best wishes,

--greg

On Thu, May 21, 2009 at 8:02 PM, Charles F. Munat  wrote:

>
> Because of Stockholm Syndrome?
>
> Meredith Gregory wrote:
> > All,
> >
> > i've been working in earnest on a little open source project for DSL
> > generation 
> > that my wife suggested i call stockholm (whom am i to argue). At this
> > point it's just about syntax, not execution. From a BNF file you generate
> >
> > * a web-hosted parser/repl
> > * the abstract syntax class of the parser support visitor pattern
> >   traversal
> > * a set of subclasses that map the abstract syntax to store
> >   o right now i've got SQL via a JPA layer
> >   o shortly i will also have an XML persistence layer via DBXML
> >
> > Slightly burdensome dependencies
> >
> > * i use BNFC which means you need Haskell + Happy + Alex installed
> >   on your system. (On a mac this is port install Haskell, port
> >   install Happy, port install Alex.)
> > * When the XML persistence comes on line there will be a dependency
> >   on DBXML.
> > * Neither of these dependencies play nicely with maven. i've got
> >   some strategies for workin around this for the parser generator,
> >   but not for the XML persistence layer.
> >
> > In a not too distant release i will add some support for specifying and
> > generating operational semantics via techniques borrowed from Peter
> > Sewell's Ott.
> >
> > Best wishes,
> >
> > --greg
> >
> > --
> > L.G. Meredith
> > Managing Partner
> > Biosimilarity LLC
> > 1219 NW 83rd St
> > Seattle, WA 98117
> >
> > +1 206.650.3740
> >
> > http://biosimilarity.blogspot.com
> >
> > >
>
> >
>


-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

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



[Lift] Re: Lift 1.0 and maven archetype?

2009-05-21 Thread Meredith Gregory
Todd,

Thanks for the note. The code in github works with lift 1.0 and scala 2.7.3
-- not lift 1.1, nor scala 2.7.4. i can do an upgrade, but looking at your
trace, none of this is in my code. It's all in lift boilerplate. Can you
give a more detailed description of your platform: OS, mvn version, etc.

Best wishes,

--greg

On Thu, May 21, 2009 at 9:14 PM, Todd Cook  wrote:

>
> I was hoping to be able to use the maven archetype. I pulled it down
> and tried to upgrade it to lift 1.0 and scala 2.74.final, but it blew
> up.
>
> Any plans for updating the archetype? Or any hints on getting it to
> work?
>
> Todd
>
>
> stack traces:
> [INFO] Compiling 3 source files to /Users/todd/IdeaProjects/lifttest/
> target/classes
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
> model/User.scala:9: error: wrong number of type arguments for
> net.liftweb.mapper.MetaMegaProtoUser, should be 1
> [WARNING] object User extends User with MetaMegaProtoUser[User, User
> with KeyedMetaMapper[Long, User]] {
> [WARNING]   ^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/lifttest/
> model/User.scala:26: error: type mismatch;
> [WARNING]  found   : lifttest.model.User.type (with underlying type
> object lifttest.model.User)
> [WARNING]  required: net.liftweb.mapper.KeyedMetaMapper
> [Long,lifttest.model.User]
> [WARNING]   def getSingleton = User // what's the "meta" server
> [WARNING]  ^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:21: error: overloaded method value schemify with
> alternatives (Boolean,(=> AnyRef) =>
>
> Unit,net.liftweb.mapper.ConnectionIdentifier,net.liftweb.mapper.BaseMetaMapper*)
> List[String]  (Boolean,(=> AnyRef) =>
> Unit,net.liftweb.mapper.BaseMetaMapper*)List[String] cannot be applied
> to (Boolean,(=> AnyRef) => Unit,lifttest.model.User.type)
> [WARNING] Schemifier.schemify(true, Log.infoF _, User)
> [WARNING]^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:23: error: value addTemplateBefore is not a member
> of object net.liftweb.http.LiftRules
> [WARNING] LiftRules.addTemplateBefore(User.templates)
> [WARNING]   ^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:26: error: type mismatch;
> [WARNING]  found   : java.lang.String("/")
> [WARNING]  required: net.liftweb.sitemap.Loc.Link
> [net.liftweb.sitemap.NullLocParams]
> [WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
> User.sitemap
> [WARNING]^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:26: error: value sitemap is not a member of object
> lifttest.model.User
> [WARNING] val entries = Menu(Loc("Home", "/", "Home")) ::
> User.sitemap
> [WARNING]  ^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:28: error: value requestLoans is not a member of
> object lifttest.model.User
> [WARNING] S.addAround(User.requestLoans)
> [WARNING]  ^
> [WARNING] /Users/todd/IdeaProjects/lifttest/src/main/scala/bootstrap/
> liftweb/Boot.scala:34: error: not found: type Can
> [WARNING]   def newConnection(name: ConnectionIdentifier): Can
> [Connection] = {
> [WARNING]  ^
> [WARNING] 8 errors found
> [INFO] ---
>
> >
>


-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

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