[Lift] How do I build reusable modules for lift?

2010-02-14 Thread Jonathan Ferguson
Sorry for a bit of a vague Sunday night question. We now have several lift projects floating round that have common snippets and potentially model objects, which would be nice to reuse without cut paste. Is there documentation on how to do this or best practices? Cheers Jono -- You received

Re: [Lift] Re: How do I build reusable modules for lift?

2010-02-14 Thread Jonathan Ferguson
...@gmail.com wrote: I think you could install your modules into Maven's repository, then use them from projects as dependencies. On Feb 14, 6:32 pm, Jonathan Ferguson j...@spiralarm.com wrote: Sorry for a bit of a vague Sunday night question. We now have several lift projects floating round

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
...@gmail.com writes: It's not overridable? Actually, I think it is :-) You might be able to just override lazy val listPath = Nil /Jeppe - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Jonathan Ferguson j...@spiralarm.com writes: I would like to have

Re: [Lift] Re: Out of Memory Errors Building Lift

2010-02-04 Thread Jonathan Ferguson
I believe it is maven not passing the JVM options through to the forked compile processes. Glad you got it working. Jono On 5 February 2010 10:07, Peter Robinett pe...@bubblefoundry.com wrote: Thanks, Jeppe, that did the trick. I swear, JVM options are such a dark art! Peter On Feb 4,

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
...@gmail.com writes: It's not overridable? Actually, I think it is :-) You might be able to just override lazy val listPath = Nil /Jeppe - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Jonathan Ferguson j...@spiralarm.com writes

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
to just override lazy val listPath = Nil /Jeppe - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Jonathan Ferguson j...@spiralarm.com writes: I would like to have the list view of one of my model objects as my home page. Can

Re: [Lift] Re: lift-Json doesn't appear to be correctly handling attributes.

2010-02-03 Thread Jonathan Ferguson
a look at it. And thanks for the test case! Cheers Joni On Feb 3, 3:41 am, Jonathan Ferguson j...@spiralarm.com wrote: When converting XML to Json attributes are being lost, given the below XML document, we would expect {word:{word:content,self:http://localhost:8080/word/example

Re: [Lift] Out of Memory Errors Building Lift

2010-02-03 Thread Jonathan Ferguson
Try upgrading to the latest version of maven (2.2.1 or later ). I was having a simliar issue. Cheers Jono j...@192-168-1-69:~ $mvn -version Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000) Java version: 1.6.0_17 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

[Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-03 Thread Jonathan Ferguson
I would like to have the list view of one of my model objects as my home page. Can this done with out having the home page redirect to /mymodel/list ? Cheers Jono -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] lift-Json doesn't appear to be correctly handling attributes.

2010-02-02 Thread Jonathan Ferguson
When converting XML to Json attributes are being lost, given the below XML document, we would expect {word:{word:content,self:http://localhost:8080/word/example ,term:example,available:true}} where as we get {word:content} example XML: word term=example self=http://localhost:8080/word/example;

Re: [Lift] Error attempting to build lift source.

2010-01-28 Thread Jonathan Ferguson
/10 12:24 PM, Jonathan Ferguson wrote: Hi all, I get the following error when attempting to build the lift source code. [ERROR] Exception in thread main java.lang.NoClassDefFoundError: -DpackageLinkDefs=file:///Users/jono/Documents/workspace/read only/liftweb/framework/lift-base/lift-common

Re: [Lift] Error attempting to build lift source.

2010-01-28 Thread Jonathan Ferguson
Thats it ! Cheers Jono 2010/1/28 Indrajit Raychaudhuri indraj...@gmail.com Great! Next up move to Maven 2.2.1. Cheers, Indrajit On 28/01/10 2:15 PM, Jonathan Ferguson wrote: Thanks that appears to have most of the build working, it now fails with the below error. However I can build

[Lift] Error attempting to build lift source.

2010-01-27 Thread Jonathan Ferguson
Hi all, I get the following error when attempting to build the lift source code. [ERROR] Exception in thread main java.lang.NoClassDefFoundError: -DpackageLinkDefs=file:///Users/jono/Documents/workspace/read only/liftweb/framework/lift-base/lift-common/target/packageLinkDefs/properties I've

Re: [Lift] intro mvn critique

2010-01-22 Thread Jonathan Ferguson
What about using mvn archetype:generate? It gives a wizard style interface to create new projects. Jono 2010/1/23 Tim Nelson tnell...@gmail.com I've been meaning to do this for awhile: http://dl.dropbox.com/u/1154284/lift-mvn.html Feel free to add this to the main Lift site. Tim On

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-17 Thread Jonathan Ferguson
2009/12/15 David Pollak feeder.of.the.be...@gmail.com 5) Avoid using abbreviations I disagree. When coding with a non-IDE, abbreviations make life much easier. When using abbreviations, could the abbreviation be documented even it if it the most mind numbingly obvious abbreviation as

Re: [Lift] Is there a togglable ajax button in lift?

2009-11-25 Thread Jonathan Ferguson
net.liftweb.http.js._ import JE._ SHtml.ajaxButton(Click me!, () = { doSomethingServerSide(); JsCmds.SetElemById(myButton, Click me again!, innerHtml)}, id - myButton) That's off the top of my head, so let me know if that doesn't work. Derek On Tue, Nov 24, 2009 at 4:23 PM, Jonathan Ferguson j

Re: [Lift] Re: Call it Lift 2.0

2009-11-17 Thread Jonathan Ferguson
2009/11/18 David Pollak feeder.of.the.be...@gmail.com - Jonathan Fergusonj...@spiralarm.com wrote: I was thinking about this earlier, if there is to be a 2.0 I would hope there was a chance to remove deprecated code. Which particular deprecated code

Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread Jonathan Ferguson
I was thinking about this earlier, if there is to be a 2.0 I would hope there was a chance to remove deprecated code. Also consider making breaking changes @dpp hasn't been in favour of making to date. Not to annoy him. As 1.X to 2.X is a big enough change that people who don't want to move can

[Lift] Re: Wizard at BASE

2009-11-10 Thread Jonathan Ferguson
Surely you mean Sydney :) 2009/11/11 Randinn rand...@gmail.com Its sounds like your presentation went well, congrats. now we need to talk you into a Melbourne trip. :) On Nov 11, 5:15 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Nov 10, 2009 at 9:52 AM, Peter Robinett

[Lift] Re: Unit testing a RESTful webservice with Lift

2009-11-09 Thread Jonathan Ferguson
We fire up Jetty populate a temp database and then run a batch of tests. Seems to work well for us. Jono 2009/11/10 Alex Black a...@alexblack.ca Can anyone suggest some good examples or strategies to use to test a webservice written with Lift? I've started down the path of firing up Jetty

[Lift] Re: Latest API Documentation

2009-11-05 Thread Jonathan Ferguson
Is it practical to build the snapshot documentation or is it being built to often? Jono 2009/11/6 David Pollak feeder.of.the.be...@gmail.com On Wed, Nov 4, 2009 at 10:44 PM, aw anth...@whitford.com wrote: When clicking on the API Documentation link, it links to 1.0 documentation... Is

[Lift] Re: Two how-to questions

2009-11-02 Thread Jonathan Ferguson
The answer for two is add an email appender to your log4j configuration. Such as :: appender name=email class=org.apache.log4j.net.SMTPAppender param name=BufferSize value=512 / param name=SMTPHost value=127.0.0.1 / param name=From value=myser...@mydomain.com /

[Lift] Re: Possible bug in xml to json conversion

2009-11-01 Thread Jonathan Ferguson
! Cheers Joni On 28 loka, 09:24, Jonathan Ferguson j...@spiralarm.com wrote: Depending on the structure of the XML, attributes and child elements are being lost. This can be seen in example 4, where the attribute expiry_date and the child element status have been dropped. It would also appear

[Lift] Possible bug in xml to json conversion

2009-10-28 Thread Jonathan Ferguson
Depending on the structure of the XML, attributes and child elements are being lost. This can be seen in example 4, where the attribute expiry_date and the child element status have been dropped. It would also appear when XML is being converted to JSON attributes are being flattened to elements.

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Jonathan Ferguson
You're right, my bad - an old pom was looking at the wrong repo, all happy now. Cheers Jono 2009/10/22 David Pollak feeder.of.the.be...@gmail.com On Wed, Oct 21, 2009 at 10:27 PM, Jonathan Ferguson j...@spiralarm.comwrote: Do we need to update our pom's or should it be code changes only

[Lift] Re: How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-22 Thread Jonathan Ferguson
2009/10/22 David Pollak feeder.of.the.be...@gmail.com On Wed, Oct 21, 2009 at 8:46 PM, Jonathan Ferguson j...@spiralarm.comwrote: I have a StatefulSnippet that uses a CometActor to keep users informed when performing a lengthy task, much like the example on the demo site ( http

[Lift] Re: How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-22 Thread Jonathan Ferguson
2009/10/23 David Pollak feeder.of.the.be...@gmail.com On Wed, Oct 21, 2009 at 10:59 PM, Jonathan Ferguson j...@spiralarm.comwrote: 2009/10/22 David Pollak feeder.of.the.be...@gmail.com On Wed, Oct 21, 2009 at 8:46 PM, Jonathan Ferguson j...@spiralarm.comwrote: I have

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Jonathan Ferguson
If we are using Actors for non Comet based stuff I assume we are free to leave them as is as long as we don't come asking for support ? I am thinking about moving through switching them over, but I'd like to do it at a leisurely pace. Jono 2009/10/23 David Pollak feeder.of.the.be...@gmail.com

[Lift] How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-21 Thread Jonathan Ferguson
I have a StatefulSnippet that uses a CometActor to keep users informed when performing a lengthy task, much like the example on the demo site ( http://demo.liftweb.net/longtime). The only difference being I pass the CometActor an identifier so it knows which job to inform the user about. When

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-21 Thread Jonathan Ferguson
Do we need to update our pom's or should it be code changes only ? Cheers Jono 2009/10/22 David Pollak feeder.of.the.be...@gmail.com Folks, As the title of this email indicates, there are breaking changes in Lift that just got pushed to master. We've migrated from Scala Actors to Lift

[Lift] Re: What is going to be in Lift 1.1

2009-10-15 Thread Jonathan Ferguson
Being able to unit test record/mapper classes and the code that depends on them would be wonderful. Cheers Jono 2009/10/15 David Pollak feeder.of.the.be...@gmail.com On Wed, Oct 14, 2009 at 4:51 PM, Timothy Perrett timo...@getintheloop.euwrote: Agreed on all fronts. Points 1 - 4 are

[Lift] Transactions with Mappers

2009-07-30 Thread Jonathan Ferguson
Is it possible, can someone point me to an example. 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

[Lift] Do 1.1 milestones get announced on the mailing list ?

2009-07-23 Thread Jonathan Ferguson
I was wondering how often they are released? I noticed Milestone 3 is out and was thinking of switching to that rather than the snapshots as if I build without -o using snapshots I seem to download the dependencies about 6 times per module, which is a little annoying. Cheers Jono

[Lift] Re: Error attempting to persist Mapper

2009-06-28 Thread Jonathan Ferguson
Okay, I've raised as an issue on github - http://github.com/dpp/liftweb/issues/#issue/30 Thanks Jono On Jun 27, 2:29 am, Timothy Perrett timo...@getintheloop.eu wrote: Ah sorry I didn't realize. mapper is not really my area so I cant say what's causing that. Please raise an issue on

[Lift] Error attempting to persist Mapper

2009-06-26 Thread Jonathan Ferguson
Hi all, I'm attempting to persist a Mapper used to join two tables. java.lang.NullPointerException: Trying to open an empty Box at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370) at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366) at

[Lift] Is It possible to define a model without a primary key ?

2009-05-28 Thread Jonathan Ferguson
I need a mapper that doesn't require a primary key to get a legacy db model onto lift. I can't change the table as it will break existing code. Cheers Jono --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[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

[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 feeder.of.the.be...@gmail.com 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 j...@spiralarm.comwrote

[Lift] How does one share application logic across multiple lift applications

2009-05-11 Thread Jonathan Ferguson
We want to encapsulate our application logic as an external dependencies ( library ) , so it can be used by multiple lift applications. The sticking point is how one achieves this when the library needs to perform data access and persistence. The library could use structured types, to decouple