[Lift] Re: Removing xmlns:lift=http://liftweb.net/ in rendered page

2009-03-02 Thread Amit Kumar Verma
Hi David. HTML validator throws one error because of this line ?xml version=1.0 encoding=UTF-8? . In this way our application will never pass W3C html validation. thanks Amit Kumar Verma On Feb 28, 4:20 am, David Pollak feeder.of.the.be...@gmail.com wrote: Marc, It's possible that an Ajax

[Lift] Re: Removing xmlns:lift=http://liftweb.net/ in rendered page

2009-03-02 Thread Charles F. Munat
My pages validate just fine (I'm on Lift 1.0). Chas. Tim Perrett wrote: Amit, I would be amazed if that were the issue, as that is tottaly valid. XHTML is a valid microformat of XML so having the decleration line is valid. In one of my live applications I have: ?xml version=1.0

[Lift] Re: Locale and languages

2009-03-02 Thread Tim Perrett
Hi Jon, I have a working implementation of this now :-) To give you some background, we have a locale calculator in lift and its default behavior looks at the incoming request headers to asses what locale should be set. Whilst in normal operation this has no affect on your application, it

[Lift] Re: Testing Help for Oracle?

2009-03-02 Thread Viktor Klang
Doesn't Oracle use Sequences? On Mon, Mar 2, 2009 at 6:42 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: This sounds like a bug. I'm guessing that you mean the object's primary key field isn't updated after save, correct? According to the docs:

[Lift] Re: Testing Help for Oracle?

2009-03-02 Thread Derek Chen-Becker
It does, but according the their JDBC compatibility page (link below), the JDBC driver should support getGeneratedKeys. Derek On Mon, Mar 2, 2009 at 11:41 AM, Viktor Klang viktor.kl...@gmail.comwrote: Doesn't Oracle use Sequences? On Mon, Mar 2, 2009 at 6:42 PM, Derek Chen-Becker

[Lift] Re: Testing Help for Oracle?

2009-03-02 Thread Derek Chen-Becker
I downloaded Oracle XE 10 this weekend and set up a VM to run it on. If I can get some work on the book done I'm going to try to get it set up and then I can do some more direct troubleshooting to verify that the Mapper support for Oracle is all functional. Derek On Mon, Mar 2, 2009 at 12:03 PM,

[Lift] Re: chaining servlets

2009-03-02 Thread Viktor Klang
On Mon, Mar 2, 2009 at 8:51 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Lifted, scalads and lasses, Does anybody have a working sample of chaining the lift servlet with a 3rd party servlet? i'm interested in doing this with the Jersey servlet to get some of their request/response

[Lift] Re: We need a wiki gardener

2009-03-02 Thread Jon Hancock
David, I've created a wiki user jhancock. Could you create a page for ruby/rails/merb to lift and give me rights? I will start off by adding notes for environment and setup issues. The getting current docs are great for those already using Java but could use some extra info for those not

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
PPS The reason i want Jersey on the outbound path is that it has pretty nifty support for rendering to XML and other formats. A single Produces annotation at the class level, for example, suffices to cause all the web methods to render according to format specified in the annotation. Oh, and

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
David, Please find below the web.xml i'm currently experimenting with. Best wishes, --greg ?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

[Lift] really stupid maven question

2009-03-02 Thread Meredith Gregory
Lifted, i've got all the classes i generate making a class to a Model object derived from the nice work that Derek did on the JPA demo. Now, here's the rub. For some reason it's compiling the generated classes before tackling the compilation of the model object. So... the compilation craps out.

[Lift] Re: chaining servlets

2009-03-02 Thread Charles F. Munat
Greg, I'm very interested in how this works out. I've been looking at Jersey and I really like the annotations, but I have been way too swamped to really play with it with Lift (I've only tried their Hello World app). If you get this working, I'd love to see it. Chas. Meredith Gregory

[Lift] Re: We need a wiki gardener

2009-03-02 Thread Charles F. Munat
Jon, Can you post a link to this page when you have it set up? Thanks, Chas. Jon Hancock wrote: David, I've created a wiki user jhancock. Could you create a page for ruby/rails/merb to lift and give me rights? I will start off by adding notes for environment and setup issues. The

[Lift] Re: We need a wiki gardener

2009-03-02 Thread Jon Hancock
will do. first need someone, David?, to set it up for me as I don't have page create rights (at least I can't see that my new account does). Jon On Mar 2, 5:50 pm, Charles F. Munat c...@munat.com wrote: Jon, Can you post a link to this page when you have it set up? Thanks, Chas. Jon

[Lift] Re: We need a wiki gardener

2009-03-02 Thread David Pollak
On Mon, Mar 2, 2009 at 3:10 PM, Jon Hancock shellsha...@gmail.com wrote: David, I've created a wiki user jhancock. Could you create a page for ruby/rails/merb to lift and give me rights? You've got the same rights I do... so... go wild. I will start off by adding notes for environment

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Alex Boisvert
My guess would be that you have duplicate servlet-api-2.x.jar in your classloading hierarchy... can you check and remove any servlet.jar under your webapp WEB-INF/lib directory? alex On Mon, Mar 2, 2009 at 4:45 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Alex, Thanks for the

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Alex Boisvert
Greg, Something must be messed up in your configuration Here's what I get: Welcome to Scala version 2.7.3.final (Java HotSpot(TM) Server VM, Java 1.6.0_10). Type in expressions to have them evaluated. Type :help for more information. scala new

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Meredith Gregory
Alex, Thanks for all your help. i switched versions in the pom.xml (to 1.0.2 which is the most recent on the sun repo that is not labeled SNAPSHOT) and i get the right values from reflecting (BTW -- has anybody written a little lift browser app that hooks into reflection so that one can

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Meredith Gregory
Lifted, Well, at least i've got jetty launching and running with both filters. See the web.xml that worked below. Best wishes, --greg ?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;

[Lift] Building new pages in Lift

2009-03-02 Thread Ikai Lan
I think I've figured out how to add new pages to Lift: 1. Create a new HTML file under src/main/webapp/something.html 2. To add this to the sitemap, go to Boot.scala and add this: val entries = Menu(Loc(Home, List(index), Home)) :: Menu(Loc(Test, List(test), Test)) :: User.sitemap My

[Lift] Re: Building new pages in Lift

2009-03-02 Thread Ikai Lan
Yes, this'll work! Is this documented anywhere? --~--~-~--~~~---~--~~ 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

[Lift] Re: Building new pages in Lift

2009-03-02 Thread David Pollak
On Mon, Mar 2, 2009 at 8:30 PM, Ikai Lan ikai@gmail.com wrote: Yes, this'll work! Is this documented anywhere? http://scala-tools.org/mvnsites/liftweb/lift-webkit/scaladocs/net/liftweb/sitemap/Loc$object.html -- Lift, the simply functional web framework http://liftweb.net

[Lift] Re: really stupid maven question

2009-03-02 Thread Derek Chen-Becker
FYI, I've split out the ScalaEntityManager stuff into its own project: http://scala-tools.org/mvnsites-snapshots/scalajpa/ Snapshot version right now mostly because I haven't had time to really test it and I haven't heard of anyone using it yet. Hopefully this will further simplify things for