[Lift] Re: Length too long for generated XML

2009-05-17 Thread marius d.
Scala's XML support is based in immutable objects meaning that you can not change them but rather generate new structures. Lift is very flexible and allows you to apply your own xhtml transformation right before the response is sent down to client. LiftRules.responseTransformers.append { case

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Timothy Perrett
Johnie, If you have a problem with lift, or are finding something lift-related difficult to understand, by all means raise it on this list and there is a good chance if its a problem with lift we'll do something about it, pronto. However, if you have a problem with the way I construct sentences o

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Derek Chen-Becker
"I can easily make a second copy of the master file and change the format there to match the Sony Reader specifications, but there are many formatted items like tables, figures and forced line breaks that are based on an 8.5 x 11 inch (US Letter) page. Changing the page size without also fixing tho

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Alex Boisvert
Hi Johnie, Like many other words, "funky" has loose and varying meanings. I'm not a native English speaker myself so I asked my wife what "funky" means and she said "interesting", "strange" and "unusual". The American Heritage dictionarysays: "When as

[Lift] Re: [patch] work around for errors running unit tests in IDEA/NetBeans

2009-05-17 Thread Alex Boisvert
Done. On Sat, May 9, 2009 at 6:50 AM, David Pollak wrote: > Folks, > > I think this patch is cool. Can one of the committers integrate it? > > Thanks, > > David > > On Tue, Apr 28, 2009 at 8:49 AM, James Strachan > wrote: > >> >> I was trying out various IDEs to run the unit tests in the lift-w

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Christian
This might not be the baddest thread on this list, but perhaps be funkiest... ;) > I have notices as I lived in several countries where various > languages > were spoken that the two groups of people who misuse language most > are Geeks and lowest class such as druggies and criminals.  The > peop

[Lift] Re: Using ExtJS

2009-05-17 Thread David Pollak
You can mix ExtJS into the project without any work at all. If you want to use ExtJS exclusively, then you'll need to do the adapter thing so Lift knows how to communicate with the server (Ajax, Comet, etc.) On Sun, May 17, 2009 at 4:15 PM, Charles F. Munat wrote: > > Wait. Is that right, guys?

[Lift] Re: your first Lift application on GAE/J

2009-05-17 Thread David Pollak
On Fri, May 15, 2009 at 9:23 PM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > > Hi, > > Thank you for your feedback. > > On Sat, May 16, 2009 at 10:33 AM, Eric Daugherty > wrote: > > > > I think I executed all the steps correctly, but when I deploy it to > > GAE I get a Security Acce

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread johnnie
On May 17, 5:28 pm, Timothy Perrett wrote: > Johnie, > > What on earth are you going on about? You qoute me there from a > convesation on-list with Heiko about OSGi... out of context it makes > no sense of course... > ... Yes, Funky makes no sense if it means "very good" to one person and "very b

[Lift] Length too long for generated XML

2009-05-17 Thread sailormoo...@gmail.com
Hi: I would like to know if there is a way to insert a \n in the generated xml, for some NodeSeq seems too long to make Firefox error. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post

[Lift] Re: Using ExtJS

2009-05-17 Thread Charles F. Munat
Wait. Is that right, guys? Does the LGC need JQuery or YUI? If not, then you only need to use an adapter and one of those if you are going to use the built-in Lift Js helper methods. So I guess it's possible to use ExtJs 3.0 without any adapter if you're not going to use the helper methods. S

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Warren Henning
On Sun, May 17, 2009 at 2:49 PM, johnnie wrote: > But interested innocent people are just very confused. ,.-‘”...``~., .,.-”...“-.,

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread Timothy Perrett
@glenn - download this little tool... it will help you both with executuing different HTTP requests, and perahps help you understand the differences: http://code.google.com/p/rest-client/ I strongly recommend you read up on HTTP and REST resource orientated architecture (ROA) - I believe the err

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Timothy Perrett
Johnie, What on earth are you going on about? You qoute me there from a convesation on-list with Heiko about OSGi... out of context it makes no sense of course... What is your point with this post? It appears to escape me. Im not sure 900+ people wanted to read your comparison of one persons gra

[Lift] Re: Using ExtJS

2009-05-17 Thread Charles F. Munat
You'll need to use an adapter for either JQuery or YUI because the Lift garbage collector depends on that. There are no Lift JS functions specific to ExtJs, but as you'll be using either JQuery or YUI for the GC, you can use Lift's JQuery/YUI helpers for non-ExtJs stuff. For things specific to

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
Tim, If I have a PUT dispatch case like so: case r @ Req("api" :: "company" :: Nil, "", PutRequest)=> () => addCompany(r) and the handler is looking for something in r.xml like this: req.xml match { case Full({parameters @ _*}) => { for(parameter <- parameters){parameter match

[Lift] Re: Using ExtJS

2009-05-17 Thread David Pollak
Jesse, It's pretty simple from a technical standpoint. Just implement the net.liftweb.http.js.JSArtifacts interface for ExtJS. Then, set LiftRules.jsArtifacts to an instance of your class and all will "just work". Thanks, David On Sun, May 17, 2009 at 2:17 PM, Jesse Eichar wrote: > > Hi, > >

[Lift] Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread johnnie
A documentation author for Lift said, Hmmm. I can easily make a second copy of the master file and change the format there, but there are a lot of tables and other things that right now are set for 8.5x11. They would all come out looking pretty funky, I think. So I suppose funky just mean

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
On May 17, 2:16 pm, Timothy Perrett wrote: > > but I haven't figured out how  to PUT documents from > > a non-lift resource into my lift app, since that > > requires that you can somehow access lift's Req object via a URL > > Hmm - im afraid your just plain wrong here... it needs nothing of the

[Lift] Error with tictac example

2009-05-17 Thread Xavi Ramirez
Hello, There seems to be an error in the tictac on the following line: registerCleanupFunc(() => is.foreach(who => LobbyServer ! RemoveLurker(who))) I've changed the code to this: override protected def onShutdown(session: CleanUpParam) { is.foreach(who => LobbyServer ! RemoveLurker(who)) } I

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread David Pollak
On Sun, May 17, 2009 at 11:37 AM, glenn wrote: > > What exactly are you looking for? > Are you looking for way to use lift to communicate with an existing > REST server, so that you can extract documents and display them > in your lift app - using lift as your blog interface? Getting the text o

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread David Pollak
Barry, On Sun, May 17, 2009 at 10:26 AM, Barry Kaplan wrote: > > I'm looking for a bootstrap example of integrating lift into an > existing application that needs to server up XML documents via a REST > api. Ooohhh... this is my favorite way to bookstrap Lift apps. > > > The application is al

[Lift] Re: problems logging

2009-05-17 Thread Timothy Perrett
Can you verify the log4j.xml file is being read? The JPA example here changes the logging environment so perhaps use it as an example to get started :) Grab it here: http://is.gd/AMAW HTH Cheers, Tim On May 17, 9:57 pm, Channing Walton wrote: > Hi, > I am having trouble logging anything in my

[Lift] Re: Logging question

2009-05-17 Thread Timothy Perrett
Checkout: net.liftweb.util.LogBoot.loggerByClass(Class[Object]) => LiftLogger Cheers, Tim On May 17, 5:06 pm, TSP wrote: > Does the lift logging framework support the classed based loggers that > are the normal use pattern: > > Logger  logger = Logger.getLogger("com.foo"); > > and the class is

[Lift] Using ExtJS

2009-05-17 Thread Jesse Eichar
Hi, I was wondering how plausible using ExtJS since Lift adds some Ajax libraries. ExtJS requires adapters to work nicely with others. I am not sure if the adapters need to be ran with the specific version of (say YUI or JQuery) the library that is shipped with Ext or if the adapters are enough

[Lift] Re: Lift and interoperability

2009-05-17 Thread David Pollak
On Sun, May 17, 2009 at 2:33 AM, rintcius wrote: > > Interesting discussion! I think I see a bit where Glenn is coming > from. I'm all for interoperability... I like baseball and apple pie, too. If there is a problem with Lift interoperating with another system or another piece of J(2)EE infra

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread Timothy Perrett
> but I haven't figured out how  to PUT documents from > a non-lift resource into my lift app, since that > requires that you can somehow access lift's Req object via a URL Hmm - im afraid your just plain wrong here... it needs nothing of the sort. I have lift applications that are 100% back-end

[Lift] Re: Lift and interoperability

2009-05-17 Thread Viktor Klang
Hello guys, if you could scribble together a scenario, then I might be able to help you out. Cheers, On Sun, May 17, 2009 at 10:53 PM, johnnie wrote: > > > > On May 17, 4:33 am, rintcius wrote: > > Interesting discussion! I think I see a bit where Glenn is coming > > from. To me it's about *e

[Lift] problems logging

2009-05-17 Thread Channing Walton
Hi, I am having trouble logging anything in my app, no logs are appearing anywhere. I have the following in Boot: DB.addLogFunc((query, len) => Log.error("The query: "+query+" took"+len+" milliseconds")) LiftRules.exceptionHandler.prepend { case (Props.RunModes.Production, Req(path,

[Lift] Re: Lift and interoperability

2009-05-17 Thread johnnie
On May 17, 4:33 am, rintcius wrote: > Interesting discussion! I think I see a bit where Glenn is coming > from. To me it's about *ease* of interoperability. > For enterprise architectures the most important question is: to what > extent is Lift helping me to build a **composable** software syst

[Lift] Re: Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread glenn
What exactly are you looking for? Are you looking for way to use lift to communicate with an existing REST server, so that you can extract documents and display them in your lift app - using lift as your blog interface? If so, I'm trying to do something similar. There are discussions on this site

[Lift] Re: Redirect after login

2009-05-17 Thread glenn
David, I was a little puzzled by the line, in the override of def homePage, of loginReferer.remove(). This actually resets the homePage to "/". Removing the line has the intended result. But, then I need a way to reset the loginReferer session variable. Better still, it would be nice to be able

[Lift] Lift for non UI, xml REST server embedded in existing application?

2009-05-17 Thread Barry Kaplan
I'm looking for a bootstrap example of integrating lift into an existing application that needs to server up XML documents via a REST api. The application is already operational and cannot be reconfigured to live within lift -- I'm looking to lift to add just the http service and infrastructure.

[Lift] Re: lift-webkit broken in 1.1-SNAPSHOT?

2009-05-17 Thread Timothy Perrett
Probably maven had a problem whilst downloading it - just blow away either the net/liftweb folder in your .m2 or the whole .m2 dir and let maven download it again. Cheers, Tim On 17/05/2009 02:53, "Mark Tye" wrote: > > I've been using the 1.1-SNAPSHOT with great success until just now. > Mav

[Lift] Logging question

2009-05-17 Thread TSP
Does the lift logging framework support the classed based loggers that are the normal use pattern: Logger logger = Logger.getLogger("com.foo"); and the class is automatically attached to the message. If so how do you call it - with a direct java import or is there something more lift-esque Tha

[Lift] lift-webkit broken in 1.1-SNAPSHOT?

2009-05-17 Thread Mark Tye
I've been using the 1.1-SNAPSHOT with great success until just now. Maven just updated my lift-code dependencies, and now when I build, I get this error: error: error while loading Loc, class file '/Users/mtye/.m2/repository/ net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT.jar(net/

[Lift] Re: Lift and interoperability

2009-05-17 Thread rintcius
Interesting discussion! I think I see a bit where Glenn is coming from. To me it's about *ease* of interoperability. For enterprise architectures the most important question is: to what extent is Lift helping me to build a **composable** software system. A composable software system will offer gra

[Lift] Re: Another StatefulSnippet question...

2009-05-17 Thread ivan
On May 16, 9:14 pm, "marius d." wrote: > Could you please post the code ... which is most relevant to this > issue ? I managed to fix the problem by changing to . The question that still remains is why is this happening? Summary: Naselja is a StatefulSnippet. -> new instance of Naselja crea