[Lift] Re: json form

2008-09-02 Thread David Pollak
The changes to matching requests has been well documented on this list. There are examples of code like this in sites/example. While I agree that in general, Lift needs much better documentation, in this case, as we've been making breaking changes to the APIs as part of the clean-up, we have been

[Lift] Re: json form

2008-09-02 Thread Acciaio
I'm a bit in trouble again... I'm trying to port my RequestMatcher from 0.9 to 0.10.. In Boot.scala I had in 0.9: LiftRules.addDispatchBefore { case RequestMatcher(RequestState(page, _), _) if (User.notLoggedIn_? && !(page.exists(_ ==("user_mgt" => ignore => Full(Redi

[Lift] Re: json form

2008-09-02 Thread David Pollak
On Tue, Sep 2, 2008 at 6:50 AM, Acciaio <[EMAIL PROTECTED]> wrote: > > Founded sorry... Cool. Please remember to post things you find to the list so others can benefit from your finds. > > > Andrea > > On 2 Set, 15:34, Acciaio <[EMAIL PROTECTED]> wrote: > > Thanx again, > > done find the erro

[Lift] Re: json form

2008-09-02 Thread Acciaio
Founded sorry... Andrea On 2 Set, 15:34, Acciaio <[EMAIL PROTECTED]> wrote: > Thanx again, > done find the errors rebuild a new app from archetype in the snapshot > and all is working now! > > Can I ask for an up-to-date and easy to find lift API scaladocs link > (I hope in liftweb homepage) > >

[Lift] Re: json form

2008-09-02 Thread Acciaio
Thanx again, done find the errors rebuild a new app from archetype in the snapshot and all is working now! Can I ask for an up-to-date and easy to find lift API scaladocs link (I hope in liftweb homepage) Andrea On 2 Set, 15:11, "David Pollak" <[EMAIL PROTECTED]> wrote: > In the tag in your po

[Lift] Re: json form

2008-09-02 Thread David Pollak
In the tag in your pom.xml file include: scala-tools.org.snapshots Scala Tools Maven2 Repository http://scala-tools.org/repo-snapshots Then change your 0.9 references to Lift to 0.10-SNAPSHOT That'll move your project to the 0.10-SNAPSHOT code. You'll likely have a b

[Lift] Re: json form

2008-09-02 Thread Marius
Hi, You have to use 0.10 snapshot. 1. You can get the latest code from master branch running git clone git://github.com/dpp/liftweb.git, and then do a mvn install (my preferred way) 2. http://www.scala-tools.org/hudson/job/lift/ or http://www.scala-tools.org/repo-snapshots/net/liftweb/lift-webki

[Lift] Re: json form

2008-09-02 Thread Acciaio
Thanx a lot Marius for your fatst and usefull help! I copy and past your code instead of mine and it compile, after I comment your code and get back to mine andsurprising...it compile!!! I cannot figure out why... Anyhow I'm using scala 2.7.1 and now I have upgraded lift to 0.10. Thanx a lo

[Lift] Re: json form

2008-09-02 Thread Acciaio
Thanx a lot for the fast answare! How can I use 0.10 version of lift? in repo-releases I cannot find it... Andrea On 1 Set, 19:15, Marius <[EMAIL PROTECTED]> wrote: > I also hope you're using lift v0.10 and not 0.9. > > Br's, > Marius > > On Sep 1, 8:13 pm, Marius <[EMAIL PROTECTED]> wrote: >

[Lift] Re: json form

2008-09-01 Thread Marius
I also hope you're using lift v0.10 and not 0.9. Br's, Marius On Sep 1, 8:13 pm, Marius <[EMAIL PROTECTED]> wrote: > I also copy pasted your code and it compiles and works fine for me. > But if you're using Scala 2.7.2 it might cause problems. Can you try > with 2.7.1? > > Br's, > Marius > > On

[Lift] Re: json form

2008-09-01 Thread Marius
I also copy pasted your code and it compiles and works fine for me. But if you're using Scala 2.7.2 it might cause problems. Can you try with 2.7.1? Br's, Marius On Sep 1, 8:04 pm, Marius <[EMAIL PROTECTED]> wrote: > Hi, > > I have pretty much the same code working just fine but the imports are

[Lift] Re: json form

2008-09-01 Thread Marius
Hi, I have pretty much the same code working just fine but the imports are slightly different package lifttest.snippet import scala.xml._ import net.liftweb.http._ import net.liftweb.http.S._ import net.liftweb.http.SHtml._ import net.liftweb.http.{RequestVar} import net.liftweb.util.Helpers._

[Lift] Re: json form

2008-09-01 Thread Acciaio
import scala.xml._ import net.liftweb.http._ import net.liftweb.http.S._ import net.liftweb.http.SHtml._ import net.liftweb.http.{RequestVar} import net.liftweb.util.Helpers._ import net.liftweb.util._ import net.liftweb.util.Can._ import net.liftweb.http.js._ class JSONForm { def show(html:

[Lift] Re: json form

2008-09-01 Thread Marius
Hi, Well jsonForm is for sure in SHtml def jsonForm(jsonHandler: JsonHandler, body : => NodeSeq): NodeSeq Can you please post your exact code ? Br's, Marius On Sep 1, 5:39 pm, Acciaio <[EMAIL PROTECTED]> wrote: > Hi all, > I'm a kind of newby of both scala and lift and I'm trying to learn > f