[Lift] Re: OpenID defect and fix

2009-03-16 Thread marius d.
It's done. On Mar 16, 3:05 am, David Pollak feeder.of.the.be...@gmail.com wrote: Marius, Go ahead and make the change.  I think I'm the only one using the OpenID stuff and I'm happy to fix it. The following maven packages are heavily used and I consider it a serious negative to break APIs:

[Lift] Re: Change default port 8080

2009-03-16 Thread Tobias Daub
A google search didnt't helpedthanks anyway! mvn -Djetty.port= jetty:run A google search would tell you this as well. On Mar 15, 2:37 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hi Folks, Does anybody know how I can change the default port 8080? thanks!

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
I agree - it does seem like we should really be doing this by default. Even chinese, hebrew and double byte languages will be good using UTF-8 right? Is there a reason someone might want to set it to another encoding / collation other than UTF-8? I cant think of one right now... @chas - from

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread maku
Hi, the latest links to the builds return: Error CodeAccessDenied/Code MessageAccess Denied/Message RequestIdC87ED4585A9C1779/RequestId - HostId x0HS/frEu0GSF1QKQJDV0LpKWWhpp7azNbX3V3fYLLWLsMM9yGHAnqocYvh7YBCx /HostId /Error Could you fix this, please TIA Martin Derek Chen-Becker wrote:

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Charles F. Munat
Just Jetty on the server. Maven/Jetty while developing. (I'm not that dumb.) :-) Chas. Timothy Perrett wrote: I agree - it does seem like we should really be doing this by default. Even chinese, hebrew and double byte languages will be good using UTF-8 right? Is there a reason someone

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Phew :) Out of interest, why do you want to use glashfish rather than jetty? Tim On 16/03/2009 10:08, Charles F. Munat c...@munat.com wrote: Just Jetty on the server. Maven/Jetty while developing. (I'm not that dumb.) :-) Chas. --~--~-~--~~~---~--~~

[Lift] Re: Custom Boot Class

2009-03-16 Thread Sergey Andreev
Jorge, I am using a custom Boot class and it works just fine. I believe that if you create a Brat.scala and put your class there, it will solve the problem Regards, Sergey On Mon, Mar 16, 2009 at 1:31 PM, Jorge Ortiz jorge.or...@gmail.com wrote: Folks, I'm trying to specify a custom Boot

[Lift] XML unescaping

2009-03-16 Thread Jeremy Mawson
Hi, I've been mucking around with lift and having a great time. I have cooked up a page that retrieves XML from a datasource and renders it. However some of the text elements I extract are HTML encoded. When rendered in the browser it looks like HTML code, rather than rendered HTML. I looked for

[Lift] Re: Objections to merging jpa archetype?

2009-03-16 Thread Silvestre Zabala
Isn't the templates-hidden directory still missing from http://github.com/dpp/liftweb/tree/master/lift-archetype-jpa-basic/src/main/resources/archetype-resources/web/src/main/webapp ? Best regards, Silvestre On 16 Mrz., 05:37, Derek Chen-Becker dchenbec...@gmail.com wrote: Darnit. I had this

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
I get the same error, unfortunately. --j On Mon, Mar 16, 2009 at 4:48 AM, Sergey Andreev andser...@gmail.com wrote: Jorge, I am using a custom Boot class and it works just fine. I believe that if you create a Brat.scala and put your class there, it will solve the problem Regards, Sergey

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Im hosting several sites on a single jetty install - its working perfectly right now. Are you not familiar with the virtual hosting options in jetty? Its pretty well documented on their wiki and will let you host from the root context. Someone can correct me if im wrong, but until servlet 3.0

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread Derek Chen-Becker
I don't know what's wrong with GitHub, but I've put the latest PDF up on the Google groups web page under Files. Derek On Mon, Mar 16, 2009 at 3:37 AM, maku martin.kuhn...@gmail.com wrote: Hi, the latest links to the builds return: Error CodeAccessDenied/Code MessageAccess

[Lift] Re: XML unescaping

2009-03-16 Thread Derek Chen-Becker
Well, it may be that the XML output portion of Scala is escaping your ampersands a second time. For instance, check out this session in the interpreter: scala val title = Catsby amp; Twisp title: java.lang.String = Catsby amp; Twisp scala val escaped = span{title}/span escaped: scala.xml.Elem =

[Lift] Re: Objections to merging jpa archetype?

2009-03-16 Thread Derek Chen-Becker
Argh. It is now. I was building local and so it picked it up. For some reason, Git didn't add this file when I committed, and didn't show the file as missing (no .gitignore, either). Sorry about that. Derek On Mon, Mar 16, 2009 at 6:15 AM, Silvestre Zabala silves...@zabala.namewrote: Isn't

[Lift] Re: Custom Boot Class

2009-03-16 Thread Derek Chen-Becker
I wonder if this is something that broke when we moved to a Filter... Derek On Mon, Mar 16, 2009 at 7:02 AM, Jorge Ortiz jorge.or...@gmail.com wrote: I get the same error, unfortunately. --j On Mon, Mar 16, 2009 at 4:48 AM, Sergey Andreev andser...@gmail.comwrote: Jorge, I am using a

[Lift] Re: Starting with Lift on the wiki

2009-03-16 Thread Xavi Ramirez
Thanks. The link on liftweb.net under the Jump right in! section should probably be updated. On Mon, Mar 16, 2009 at 12:39 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Maybe, but in any case that's the old link. The newest version is at http://liftweb.net/docs/getting_started.html In

[Lift] Re: why is the lift web framework scalable?

2009-03-16 Thread Derek Chen-Becker
Depending on what your workload and goals are, Lift can scale quite nicely by just adding more boxes as long as you have session affinity (and a load balancer). Derek On Sun, Mar 15, 2009 at 7:34 PM, parag978978 parag978...@gmail.com wrote: I want to know the technical reasons why the lift

[Lift] Re: Starting with Lift on the wiki

2009-03-16 Thread Derek Chen-Becker
Doh. Fixed, but give it a minute to push out to the site. Thanks, Derek On Mon, Mar 16, 2009 at 7:06 AM, Xavi Ramirez xavi@gmail.com wrote: Thanks. The link on liftweb.net under the Jump right in! section should probably be updated. On Mon, Mar 16, 2009 at 12:39 AM, Derek

[Lift] Re: Change default port 8080

2009-03-16 Thread David Pollak
On Sun, Mar 15, 2009 at 11:48 PM, Tobias Daub hannes.flo...@gmx.li wrote: A google search didnt't helpedthanks anyway! Please feel encouraged to post questions like this to this group. We're here to help and the knowledge base grows. You're only obligation is to help out

[Lift] Re: Custom Boot Class

2009-03-16 Thread Viktor Klang
No, it was working when we switched to the filter. :/ On Mon, Mar 16, 2009 at 2:58 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I wonder if this is something that broke when we moved to a Filter... Derek On Mon, Mar 16, 2009 at 7:02 AM, Jorge Ortiz jorge.or...@gmail.comwrote: I get

[Lift] Re: Custom Boot Class

2009-03-16 Thread Derek Chen-Becker
I think we might have an error in the book. The example you give uses context-param, but I think it needs to be an init-param within the filter portion of the web.xml. Derek On Mon, Mar 16, 2009 at 9:04 AM, Viktor Klang viktor.kl...@gmail.comwrote: No, it was working when we switched to the

[Lift] Re: Custom Boot Class

2009-03-16 Thread Derek Chen-Becker
Just confirmed. Changing you web.xml to: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app filter filter-nameLiftFilter/filter-name display-nameLift Filter/display-name

[Lift] Re: why is the lift web framework scalable?

2009-03-16 Thread David Pollak
On Sun, Mar 15, 2009 at 6:34 PM, parag978978 parag978...@gmail.com wrote: I want to know the technical reasons why the lift webframework has high performance and scalability? The JVM and not getting in its way. :-) The JVM is the best way to deploy high performance software. HotSpot does a

[Lift] Error in Msgs

2009-03-16 Thread Charles F. Munat
Line 54 in net.liftweb.builtin.snippet.Msgs.scala reads: (styles \\ error_msg \\ @class)), 1), It should read: (styles \\ warning_msg \\ @class)), 1), Chas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
You're right. Can you fix and commit it ? On Mar 16, 8:20 pm, Charles F. Munat c...@munat.com wrote: Line 54 in net.liftweb.builtin.snippet.Msgs.scala reads:    (styles \\ error_msg \\ @class)), 1), It should read:    (styles \\ warning_msg \\ @class)), 1), Chas.

[Lift] Re: Error in Msgs

2009-03-16 Thread David Pollak
On Mon, Mar 16, 2009 at 11:49 AM, marius d. marius.dan...@gmail.com wrote: You're right. Can you fix and commit it ? Charles is not on the committer list. We need to fix this in 1.1 and the 1.0 branch. On Mar 16, 8:20 pm, Charles F. Munat c...@munat.com wrote: Line 54 in

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread David Pollak
On Mon, Mar 16, 2009 at 6:39 AM, Timothy Perrett timo...@getintheloop.euwrote: Im hosting several sites on a single jetty install - its working perfectly right now. Are you not familiar with the virtual hosting options in jetty? Its pretty well documented on their wiki and will let you host

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Sorry! My bad ­ we¹ve had so many convo¹s about this and I had become muddled :-) I was talking about continuations as you say, not the the comet support! Sorry again! Doh! Cheers, Tim On 16/03/2009 19:15, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 16, 2009 at 6:39

[Lift] Re: Error in Msgs

2009-03-16 Thread Charles F. Munat
Heh, heh. You don't want me sticking my nose in there... Chas. marius d. wrote: You're right. Can you fix and commit it ? On Mar 16, 8:20 pm, Charles F. Munat c...@munat.com wrote: Line 54 in net.liftweb.builtin.snippet.Msgs.scala reads: (styles \\ error_msg \\ @class)), 1), It

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Charles F. Munat
That's good to know. But now that Tim has made me aware of the possibilities of Jetty, I might be persuaded to stick with it. Need to figure out how to host multiple sites in one instance, and discover where this context deployer is hidden. If I can get that running, I write a brief tutorial

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Charles F. Munat
Where's Lassie when you need her? Timothy Perrett wrote: Sorry! My bad – we’ve had so many convo’s about this and I had become muddled :-) I was talking about continuations as you say, not the the comet support! Sorry again! Doh! Cheers, Tim On 16/03/2009 19:15, David Pollak

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Lol! Lassie?! What?! Haha. Check out this in my jetty.xml: New class=org.mortbay.jetty.webapp.WebAppContext ArgRef id=Contexts//Arg ArgSystemProperty name=jetty.home//webapps/myapplication.war/Arg Arg//Arg Set name=defaultsDescriptorSystemProperty name=jetty.home

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Charles F. Munat
So will this do the virtual hosting? (At first glance, I'm not seeing how.) Right now I use Apache to forward to the port and I run each Jetty on a different port. And if I need to reboot one application, do I have to reboot them all? (You do remember Lassie, right? Always getting Timmy out

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
Wow I could have swear that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me sticking my nose in there... Chas. marius d. wrote: You're right. Can you fix and commit it ? On Mar 16, 8:20

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
So will this do the virtual hosting? (At first glance, I'm not seeing how.) Correct :-) Its all on the jetty wiki - http://docs.codehaus.org/display/JETTY/Virtual+hosts And if I need to reboot one application, do I have to reboot them all? Hmm good question - right now im not 100% sure

[Lift] Default NodeSeq for message box

2009-03-16 Thread Charles F. Munat
Don't know if this will be useful to anyone else, but I wanted my error/warning/notice messages to replace a default bit of text (a tagline). After some fiddling, I came up with this, which works quite nicely. (Feel free to suggest improvements.) (Note: I removed some other code I didn't need

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
committed in both master anf 1.0 On Mar 16, 10:00 pm, marius d. marius.dan...@gmail.com wrote: Wow I could have swear  that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me sticking my nose in

[Lift] !...@#$% Hibernate!

2009-03-16 Thread Charles F. Munat
I am trying to permit upload of a profile photo to go with a member. My edit method is below. (I'm using id numbers in the URL, which explains the first part of the code. Sue me.) The problem is that no matter where I move the damn Model.merge() call, I get one of two outcomes on persisting a

[Lift] Re: Error in Msgs

2009-03-16 Thread Charles F. Munat
list verbosity != committer status (but you can be forgiven for thinking otherwise) Chas. marius d. wrote: Wow I could have swear that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me

[Lift] Re: Error in Msgs

2009-03-16 Thread Charles F. Munat
P.S. If I'm not on board, does that mean I'm overboard? marius d. wrote: Wow I could have swear that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me sticking my nose in there... Chas.

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
Thanks Derek! --j On Mon, Mar 16, 2009 at 8:33 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Just confirmed. Changing you web.xml to: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread David Pollak
Erik, What would you like to learn next? Perhaps we can continue to enhance the Lift mind-bending if we know which direction to bend it in. Thanks, David On Sun, Mar 15, 2009 at 5:29 AM, erik.fris...@googlemail.com erik.fris...@googlemail.com wrote: Hi guys, I finally managed to work my

[Lift] Re: !...@#$% Hibernate!

2009-03-16 Thread Derek Chen-Becker
At first glance, you're not operating on the merged object. Merge takes an instance as an argument and returns a *new* copy of that instance that is attached. Model.merge(member) is essentially a NOOP in your code because you're not using the returned, attached instance. In other words, your

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread Charles F. Munat
I like the Programming in Scala book quite a bit. The index isn't as good as I'd like it to be, and I wish it had a bit more on Scala Swing (I'm building a Scala desktop app), but having the PDF version makes searching easy, and the dead trees version is a permanent fixture in my bathroom

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread erik.fris...@googlemail.com
Thanks for the links, guys. I really appreciate it. To be totally honest, I just by luck found out that Lift even existed; John Resig did a Tweet that involved a Chat Application using Lift and Web Sockets. So I searched for Lift and found the framework. And since I make it a habit to learn

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread Charles F. Munat
PHP is a language that's easy to learn thus easy to get started with. But down the road, that ease comes with a steep price unless you are very disciplined about establishing protocols for coding and sticking to them. It is very easy to end up with unmaintainable spaghetti code. I speak from

[Lift] Re: why is the lift web framework scalable?

2009-03-16 Thread parag978978
Hi David, Thanks for the feedback. The goal I am trying to accomplish to create a web service framework written in scala that uses a rest api to communicate to the outside world. This web services framework would be the deployer for pojos/scala applications. It only reason for being is to

[Lift] Re: XML unescaping

2009-03-16 Thread Jeremy Mawson
Thanks Derek. Familiarity with the APIs is one of the tricks when moving to a new language I guess. This worked for me, but I have a follow-on issue. Just as a background I am rendering search results which are provided as XML. Here's my binding code: result = bind(entry,

[Lift] Re: XML unescaping

2009-03-16 Thread Marc Boschma
On 17/03/2009, at 12:36 PM, Jeremy Mawson wrote: If I change the line to description - span{Unparsed(result.description)}/span, it compiles but I have an unwanted span tag and worse ... if result.description is not well formed XML my page will fail to render! Firefox complains of an

[Lift] Re: XML unescaping

2009-03-16 Thread Jeremy Mawson
Thanks Marc. xml:group works nicely. For this exercise this is hypothetical, but it matches very closely a project I have enabled in the past using struts and JIBX... Say the data was sourced from an external party's service and there was a contractual agreement to not alter the data in any

[Lift] Re: XML unescaping

2009-03-16 Thread David Pollak
On Mon, Mar 16, 2009 at 8:51 PM, Jeremy Mawson jeremy.mawson.w...@gmail.com wrote: Thanks Marc. xml:group works nicely. For this exercise this is hypothetical, but it matches very closely a project I have enabled in the past using struts and JIBX... Say the data was sourced from an

[Lift] Re: why is the lift web framework scalable?

2009-03-16 Thread shineonucrazydiamond
a few observations, since i've built such systems in the past for life-sciences: 1) rest is for performing crud ops on resources, not service invocations. 2) long running computational calculations may require you submit jobs asynchronously and obtain a job/transaction id. otherwise, you lose

[Lift] Re: XML unescaping

2009-03-16 Thread Marc Boschma
To quote David from a previous thread on the mailing list: I've enhanced LiftRules as follows: /** * A partial function that determines content type based on an incoming * RequestState and Accept header */ var determineContentType: PartialFunction[(Can[RequestState],

[Lift] Re: Where to continue after Getting Started?

2009-03-16 Thread Derek Chen-Becker
Over the years I've written a fair amount of PHP code for in-house applications (enterprise ticket tracking system, network equipment management, etc) and the experience has generally not been great. I think PHP functions very well for compact, well-defined apps, but the lack of structure in the