[Lift] Re: Another StatefulSnippet question...
On May 16, 9:14 pm, marius d. marius.dan...@gmail.com wrote: Could you please post the code ... which is most relevant to this issue ? I managed to fix the problem by changing lift:Naselja.list to lift:naselja.list. The question that still remains is why is this happening? Summary: Naselja is a StatefulSnippet. lift:Naselja.list - new instance of Naselja created each time list is rendered lift:naselja.list - only one Naselja instance created Why? Is it a bug? Is it by design and if it is where is it documented/ explained? Thanks! :) --~--~-~--~~~---~--~~ 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 and interoperability
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 gradual change from one architecture to another and it will make this migration easy. So suppose I am having a Spring based architecture with Hibernate and struts and want to migrate this to Lift. I think it would be a good exercise to check how such an architecture can be gradually migrated to a lift based architecture. So what to do if I just want to replace struts or hibernate. Or what if I want to start with migrating my POJO's to POSO's. My guess is that this is all possible in Lift but I haven't seen anything in the code or docs that facilitates this. Maybe I have overlooked something but what I have seen so far is based on an all or nothing approach (also nothing wrong with that, e.g. Grails doesn't facilitate this either and this is a very productive framework as well). Regards, Rintcius --~--~-~--~~~---~--~~ 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-webkit broken in 1.1-SNAPSHOT?
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/ liftweb/sitemap/Loc.class)' is broken (bad constant pool tag 116 at byte 2819) one error found I see a new lift-webkit jar was installed in the repository at 17:30. Is it possible the jar's corrupted? Is anyone else having this problem? --~--~-~--~~~---~--~~ 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] Logging question
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 Thanks --~--~-~--~~~---~--~~ 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-webkit broken in 1.1-SNAPSHOT?
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 mark...@gmail.com wrote: 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/ liftweb/sitemap/Loc.class)' is broken (bad constant pool tag 116 at byte 2819) one error found I see a new lift-webkit jar was installed in the repository at 17:30. Is it possible the jar's corrupted? Is anyone else having this problem? --~--~-~--~~~---~--~~ 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 for non UI, xml REST server embedded in existing application?
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. Does such a beast exist? (BTW, I have the lift book, but it seems only to discuss adding an api to UI based lift application.) thanks! -barry --~--~-~--~~~---~--~~ 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: Redirect after login
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 to create additional stateful parameter maps, something like Seam's conversation state, which would make creation of wizards a breeze. This brings up another point. The only way I trust to trace the code to determine what's going on is the old-fashioned way, of putting in a bunch of println statements in my code. With lift's flow back-and- forth between templates, which are really client-side, and snippets, which are on the server, normal java debugging tools just doesn't work. This makes developing a slow process and can even offset the gains lift brings to coding efficiency. What do you, and other's use for debugging that might help. Thanks in advance for your assistance. Glenn... On May 15, 3:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote: In your User object, do the following: object loginReferer extends SessionVar(/) override def homePage = { var ret = loginReferer loginReferer.remove() ret } override def login = { for (r - S.referer if loginReferer.is == /) loginReferer.set(r) super.login } So, we're setting up a session variable the keeps track of the referer to the login page. We define the homePage method to return this page, but reset after use. And we override the login method to record the referer. On Fri, May 15, 2009 at 3:11 PM, glenn gl...@exmbly.com wrote: I'm using ProtoUser. But even so, I thought that I might have to create a bunch of separate login pages, each using the loginXhtml form so that action={S.uri} would generate the links to match with the cases. In that way I could do the redirection. But that seems convoluted, to me. This goes back to using EarlyAccess on a menu item, redirecting to the appropriate login page, and then once the user logs in, he is immediately taken to a new page rather than back to /index. Really, what I'm trying to do is create a wizard widget or sorts, to perform a sequence of tasks with a finish button on the last page. Glenn... On May 15, 2:43 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On your login page, you can capture the referer and then redirect to the refering page on successful login. Are you using ProtoUser or are you rolling your own login page? On Fri, May 15, 2009 at 1:27 PM, glenn gl...@exmbly.com wrote: If I wanted to redirect the user to a different page, depending on what page they were on when they initiated a login, does anyone know of a good solution? I'm thinking I need to use a DispatchLocSnippets and define different dispatch case functions. But I'm not clear how best to go about it? Would I need different login pages for each case, or is there a cleaner way in which I can use a single login page for job? Glenn... -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift for non UI, xml REST server embedded in existing application?
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 from a lot of folks who say they are integrating lift with Jersey and other similar systems, but I haven't seen any code that directly gives lift templates and snippets direct access. You are correct, in that you can pretty easily create a REST server in your lift application and GET xml documents from it, 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 Glenn... On May 17, 10:26 am, Barry Kaplan meme...@gmail.com 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. 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. Does such a beast exist? (BTW, I have the lift book, but it seems only to discuss adding an api to UI based lift application.) thanks! -barry --~--~-~--~~~---~--~~ 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 and interoperability
On May 17, 4:33 am, rintcius rintc...@gmail.com 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 system. ... My guess is that this is all possible in Lift but I haven't seen anything in the code or docs that facilitates this. Maybe I have overlooked something but what I have seen so far is based on an all or nothing approach Is it just a matter of documentation? If so, I might be able to help with that. When I am really interested in something, people praise me very highly for being explicit, easy to understand, and forceful. I have the same feelings as Glen and Rintcius although I have great faith in everything else that has been said. If you gurus want to expand your influence to the great unwashed masses, please see if you can determine a time when you are willing to explain everything to me at your location. I am a genius, a Ph.D. and many other good things although I have a learning disability, ADD, and other gifts which hold me closely to the masses. I can't see this interoperability. But if you will take the time to explain it to me as soon as I can come to visit you in person, I will write it up so that others can understand it better/differently than your current documentation. Sincerely, Johnnie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] problems logging
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, , GetRequest), exception) = { Log.error(MELT DOWN!!, exception) RedirectResponse(/) } } and a default.log4j.xml log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender name=console class=org.apache.log4j.ConsoleAppender param name=Target value=System.out/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-5p %c{1} - %m%n/ /layout /appender root priority value =debug / appender-ref ref=console / /root /log4j:configuration what am I missing? --~--~-~--~~~---~--~~ 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 and interoperability
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 jsm2p...@googlemail.com wrote: On May 17, 4:33 am, rintcius rintc...@gmail.com 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 system. ... My guess is that this is all possible in Lift but I haven't seen anything in the code or docs that facilitates this. Maybe I have overlooked something but what I have seen so far is based on an all or nothing approach Is it just a matter of documentation? If so, I might be able to help with that. When I am really interested in something, people praise me very highly for being explicit, easy to understand, and forceful. I have the same feelings as Glen and Rintcius although I have great faith in everything else that has been said. If you gurus want to expand your influence to the great unwashed masses, please see if you can determine a time when you are willing to explain everything to me at your location. I am a genius, a Ph.D. and many other good things although I have a learning disability, ADD, and other gifts which hold me closely to the masses. I can't see this interoperability. But if you will take the time to explain it to me as soon as I can come to visit you in person, I will write it up so that others can understand it better/differently than your current documentation. Sincerely, Johnnie -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ 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 and interoperability
On Sun, May 17, 2009 at 2:33 AM, rintcius rintc...@gmail.com 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 infrastructure, be specific about it and we'll work on. To date, Glenn has complained a lot and made very little sense and has not been specific. He's complained that you can't create a form to be submitted to an external server that won't somehow magically execute functions defined on your server. He's complained that Lift doesn't have its own implementation of some JavaScript functions which are available in existing JavaScript libraries. To date, Glenn has demonstrated little in terms of understanding if code is executing on the server, in the browser or on some other server. This makes it very difficult to have a coherent conversation... and every time we've asked him for specifics, he's ignored us or give examples that are very far off the mark. 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 gradual change from one architecture to another and it will make this migration easy. So suppose I am having a Spring based architecture with Hibernate and struts and want to migrate this to Lift. Okay... so there's a ton of documentation on the use of JPA within Lift-based apps. Derek has written a lot of this and does a lot of support on this list of people using JPA within Lift and Scala. Further, if you've already got Java/JPA code, *IT JUST WORKS* inside Lift and Scala. There's nothing to document beyond just use it. I think it would be a good exercise to check how such an architecture can be gradually migrated to a lift based architecture. So what to do if I just want to replace struts or hibernate. I personally recommend starting with building your REST APIs with Lift. It's an easy way to get your hands dirty with Lift, you get to preserve your existing models and it's very easy to do REST and XML/JSON within Lift and Scala. Or what if I want to start with migrating my POJO's to POSO's. Lift is not primarily focused on persistence. Lift is primarily focused on the servicing of HTTP requests. We will help people on this list with JPA-related stuff, but it's not the primary focus of Lift as a web framework. My guess is that this is all possible in Lift but I haven't seen anything in the code or docs that facilitates this. That's because it's not a Lift thing, it's a persistence thing. Please look at Exploring Lift, there are a ton of JPA-related examples. Maybe I have overlooked something but what I have seen so far is based on an all or nothing approach (also nothing wrong with that, e.g. Grails doesn't facilitate this either and this is a very productive framework as well). I disagree with this. Glenn was complaining that Lift didn't do everything for him and that's how he seems to define interoperability. Lift in fact interoperates with all things in JVM-land. If there's something you want to do on the JVM and Lift is getting in your way, please let us know. We'll work on it. Lift is simply a ServletFilter and can intercept as many or as few HTTP requests as defined by your web.xml file. If you simply want to use Lift to service a single URL, you put that in your web.xml file and away you go. If you want Lift service all the URLs in your app, that's the define web.xml file. If you want to use Lift's mapper for RDBMS related stuff, cool, but if you want to use JPA, existing home grown classes, whatever, you're welcome to. If you want to talk to PayPal, Lift has APIs for that... but you can use your own. At the end of the day, Lift can be as big or as small a part of your application as you want. If you have a specific requirement, please let us know and we'll help you through it. Thanks, David Regards, Rintcius -- 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] Using ExtJS
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 by then selves. But really my question is: Is it possible to use advanced ExtJS in Lift? And what would the recommended way be? Thanks, Jesse --~--~-~--~~~---~--~~ 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: Logging question
Checkout: net.liftweb.util.LogBoot.loggerByClass(Class[Object]) = LiftLogger Cheers, Tim On May 17, 5:06 pm, TSP tim.pig...@optrak.co.uk 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 automatically attached to the message. If so how do you call it - with a direct java import or is there something more lift-esque Thanks --~--~-~--~~~---~--~~ 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: problems logging
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 channingwal...@mac.com wrote: 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, , GetRequest), exception) = { Log.error(MELT DOWN!!, exception) RedirectResponse(/) } } and a default.log4j.xml log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender name=console class=org.apache.log4j.ConsoleAppender param name=Target value=System.out/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-5p %c{1} - %m%n/ /layout /appender root priority value =debug / appender-ref ref=console / /root /log4j:configuration what am I missing? --~--~-~--~~~---~--~~ 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 for non UI, xml REST server embedded in existing application?
On Sun, May 17, 2009 at 11:37 AM, glenn gl...@exmbly.com 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 of an ATOM feed... in 5 lines of Scala: scala for { atom - XML.load(http://twitter.com/statuses/public_timeline.atom;) entry - atom \ entry content - entry \ content } yield content.text If so, I'm trying to do something similar. There are discussions on this site from a lot of folks who say they are integrating lift with Jersey and other similar systems, but I haven't seen any code that directly gives lift templates and snippets direct access. Putting the ATOM feed into a page via a Snippet: def feed: Seq[String] = // see above code to load a feed def mySnippet(toBind: NodeSeq): NodeSeq = feed.flatMap(i = bind(b, toBind, place - i)) You are correct, in that you can pretty easily create a REST server in your lift application and GET xml documents from it, 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 Or... it requires that you change: case Req(api :: place :: Nil, _, GetRequest) = to case Req(api :: place :: Nil, _, PutRequest) = Three whole letters to service a PUT instead of a GET. Glenn -- I'm happy to help you with specific questions. I can even tolerate you complaining that the Lift doesn't interoperate with anything (dead wrong) Lift team has a bad case of NIH, despite that you can't back up these claims with facts. But, please don't waste the time of the whole list with answering other people's questions when you don't have a clue about the subject matter. David Glenn... On May 17, 10:26 am, Barry Kaplan meme...@gmail.com 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. 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. Does such a beast exist? (BTW, I have the lift book, but it seems only to discuss adding an api to UI based lift application.) thanks! -barry -- 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] Error with tictac example
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'm not sure if this is correct, but it seemed to get rid of the error. Just wanted to let you-all know. Thanks, Xavi --~--~-~--~~~---~--~~ 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 for non UI, xml REST server embedded in existing application?
On May 17, 2:16 pm, Timothy Perrett timo...@getintheloop.eu 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 sort. I have lift applications that are 100% back-end process, and have no UI, or rather, the UI is an objective-c cocoa desktop application. No magic included. Lift is extreamly good at building REST services as it has a very flexible HTTP handling mechanism. I do wonder though, if you already have a GET dispatch, what you cannot figure out how to do PUT? (look at net.liftweb.http.PutRequest and how its used in Req pattern match) @barry: You can do what you want without any issues. Lift is implemented as a filter so can co-habbit with other servlets etc. Lets assume that you implement the lift element under /badger - configure your web.xml correctly then only /badger/* requests get passed to lift. Technically speaking there is no difference in serving XHTML and XML... its all XML at the end of the day; its just that your browser can make sense of the micro-format ;-) Whatever you have your persistance teir configured with, you can just layer lift on top for a REST service - it really is that easy. Cheers, Tim --~--~-~--~~~---~--~~ 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] Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?
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 means very bad. But a Lift programmer said, Oh man, this is going to be nice - loving your work Heiko feels like this is the first brick in the road to something extremely funky. So I suppose funky just means very good. But interested innocent people are just very confused. Johnnie --~--~-~--~~~---~--~~ 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: Using ExtJS
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 jesse.eic...@gmail.comwrote: 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 by then selves. But really my question is: Is it possible to use advanced ExtJS in Lift? And what would the recommended way be? Thanks, Jesse -- 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: Lift for non UI, xml REST server embedded in existing application?
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(company{parameters @ _*}/company) = { for(parameter - parameters){parameter match{ case companyName{name}/companyName = company.name (name.text) case line1{line1}/line1 = company.line1(line1.text) case line2{line2}/line2 = company.line1(line2.text) case city{city}/city = company.city(city.text) case state{state}/state = company.state(state.text) case postalCode{postalCode}/postalCode = company.postalCode(postalCode.text) case _ = } } what would my PUT URL actually look like? The lift book shows http://www.pocketchangeapp.com/api/expense - PUT - addEntry(request) + XML Body as an example, but I don't really understand that in the context of third-party app sending the request. On May 17, 2:16 pm, Timothy Perrett timo...@getintheloop.eu 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 sort. I have lift applications that are 100% back-end process, and have no UI, or rather, the UI is an objective-c cocoa desktop application. No magic included. Lift is extreamly good at building REST services as it has a very flexible HTTP handling mechanism. I do wonder though, if you already have a GET dispatch, what you cannot figure out how to do PUT? (look at net.liftweb.http.PutRequest and how its used in Req pattern match) @barry: You can do what you want without any issues. Lift is implemented as a filter so can co-habbit with other servlets etc. Lets assume that you implement the lift element under /badger - configure your web.xml correctly then only /badger/* requests get passed to lift. Technically speaking there is no difference in serving XHTML and XML... its all XML at the end of the day; its just that your browser can make sense of the micro-format ;-) Whatever you have your persistance teir configured with, you can just layer lift on top for a REST service - it really is that easy. Cheers, Tim --~--~-~--~~~---~--~~ 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: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?
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 grammatical style vs another; if you have issue with mine, or other peoples use of the english language, or my intended interpretation of correspondence, please bring it up with me off-list. This is a public forum where-by people from all manner of countries, cultures and so-forth communicate - im very confused why you cannot take such english slang in-context of the conversation, like any other normal person. Regards Tim On May 17, 10:49 pm, johnnie jsm2p...@googlemail.com wrote: 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 means very bad. But a Lift programmer said, Oh man, this is going to be nice - loving your work Heiko feels like this is the first brick in the road to something extremely funky. So I suppose funky just means very good. But interested innocent people are just very confused. Johnnie --~--~-~--~~~---~--~~ 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 for non UI, xml REST server embedded in existing application?
@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 error here is in your understanding. Cheers, Tim On May 17, 11:02 pm, glenn gl...@exmbly.com wrote: 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(company{parameters @ _*}/company) = { for(parameter - parameters){parameter match{ case companyName{name}/companyName = company.name (name.text) case line1{line1}/line1 = company.line1(line1.text) case line2{line2}/line2 = company.line1(line2.text) case city{city}/city = company.city(city.text) case state{state}/state = company.state(state.text) case postalCode{postalCode}/postalCode = company.postalCode(postalCode.text) case _ = } } what would my PUT URL actually look like? The lift book shows http://www.pocketchangeapp.com/api/expense- PUT - addEntry(request) + XML Body as an example, but I don't really understand that in the context of third-party app sending the request. On May 17, 2:16 pm, Timothy Perrett timo...@getintheloop.eu 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 sort. I have lift applications that are 100% back-end process, and have no UI, or rather, the UI is an objective-c cocoa desktop application. No magic included. Lift is extreamly good at building REST services as it has a very flexible HTTP handling mechanism. I do wonder though, if you already have a GET dispatch, what you cannot figure out how to do PUT? (look at net.liftweb.http.PutRequest and how its used in Req pattern match) @barry: You can do what you want without any issues. Lift is implemented as a filter so can co-habbit with other servlets etc. Lets assume that you implement the lift element under /badger - configure your web.xml correctly then only /badger/* requests get passed to lift. Technically speaking there is no difference in serving XHTML and XML... its all XML at the end of the day; its just that your browser can make sense of the micro-format ;-) Whatever you have your persistance teir configured with, you can just layer lift on top for a REST service - it really is that easy. Cheers, Tim --~--~-~--~~~---~--~~ 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: Using ExtJS
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. Sorry if I'm just confusing the issue. I am using ExtJs on a Lift site with no problems (other than that ExtJs is a PITA). Chas. Charles F. Munat wrote: 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 ExtJs, you'll have to build your own helpers, but you can probably just copy, paste, and modify the others to get what you want. ExtJs probably can't be built into Lift because of licensing issues, so you'll have to do some work for yourself. Chas. Jesse Eichar wrote: 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 by then selves. But really my question is: Is it possible to use advanced ExtJS in Lift? And what would the recommended way be? Thanks, Jesse --~--~-~--~~~---~--~~ 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] Length too long for generated XML
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 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: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?
On May 17, 5:28 pm, Timothy Perrett timo...@getintheloop.eu 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 bad to another person. So why not just say very good or very bad if that is what you mean? I see no reason for Geeks to make things more confusing by using local slang instead of simple language. 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 people of ancient Ashdod were condemned for making Babel even worse. Only twice since then has the world enjoyed a near lingua franka. I would hate to see simple English die like koine Greek because certain classes want to communicate in ways that are confusing. A group of linguists were eating together at the University of Michigan years ago. I started a conversation by inviting everyone to proclaim why their language should be adopted by the rest of us. One person proposed that Arabic should be preferred because it was one of the most difficult. My vote went for koine Greek because the affixes make it so easy to understand. In fact it is still so easy that most new pharmacituals are a combination of Greek roots because the meaning of new words can be ascertained the combination of simple roots. So why would anybody who wants other people with other native languages and cultures use words which mean very good in one context and very bad in another context? Do you want to play the difficult game of writing a computer program which explains context? I believe I can write that program for a lot of koine Greek. I do not believe you or anyone else can write it for the class of modern English which includes funky. Johnnie --~--~-~--~~~---~--~~ 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: your first Lift application on GAE/J
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 edaughe...@gmail.com wrote: I think I executed all the steps correctly, but when I deploy it to GAE I get a Security Access Control Exception because the Actor class is trying to create a thread I think. It seems the recent commit[1] has caused that exception. I have pushed the fix to the github repository. Thank you very much for cleaning up after me! May I ask you to try it again? [1] http://github.com/dpp/liftweb/commit/9e39859be9b8f6f4fd7c17cf503b5bcfcd5e861a#diff-2 Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ -- 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: Using ExtJS
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 c...@munat.com wrote: 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. Sorry if I'm just confusing the issue. I am using ExtJs on a Lift site with no problems (other than that ExtJs is a PITA). Chas. Charles F. Munat wrote: 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 ExtJs, you'll have to build your own helpers, but you can probably just copy, paste, and modify the others to get what you want. ExtJs probably can't be built into Lift because of licensing issues, so you'll have to do some work for yourself. Chas. Jesse Eichar wrote: 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 by then selves. But really my question is: Is it possible to use advanced ExtJS in Lift? And what would the recommended way be? Thanks, Jesse -- 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: [patch] work around for errors running unit tests in IDEA/NetBeans
Done. On Sat, May 9, 2009 at 6:50 AM, David Pollak feeder.of.the.be...@gmail.comwrote: 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 james.strac...@gmail.comwrote: I was trying out various IDEs to run the unit tests in the lift-webkit module and was getting errors. I guess due to recent changes in scala language version? Here's the trivial patch that fixes it - it seems reflection on the continuation stuff was no longer working http://github.com/jstrachan/liftweb/commit/2ca3b683733969bd8689e36dad99a990711b4071 -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- 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: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?
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 dictionaryhttp://www.bartleby.com/61/63/F0366300.htmlsays: When asked which words in the English language are the most difficult to define precisely, a lexicographer would surely mention *funky.* Yes, we could all go and use simple English but that would be a shame because language can be so colorful. alex On Sun, May 17, 2009 at 2:49 PM, johnnie jsm2p...@googlemail.com wrote: 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 means very bad. But a Lift programmer said, Oh man, this is going to be nice - loving your work Heiko feels like this is the first brick in the road to something extremely funky. So I suppose funky just means very good. But interested innocent people are just very confused. Johnnie --~--~-~--~~~---~--~~ 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: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?
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 those manual formatting items would probably make those items run off of the right edge of the page, or may make them disappear entirely from the output. Fixed. On Sun, May 17, 2009 at 3:49 PM, johnnie jsm2p...@googlemail.com wrote: 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 means very bad. But a Lift programmer said, Oh man, this is going to be nice - loving your work Heiko feels like this is the first brick in the road to something extremely funky. So I suppose funky just means very good. But interested innocent people are just very confused. Johnnie --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---