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
> 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._
> import net.liftweb.util._
> import net.liftweb.util.Can._
> import net.liftweb.http.js._
> // import net.liftweb.http.js.jquery.JqJsCmds._
> import JsCmds._
>
> class JSONForm {
>
>   def show(html: Group): NodeSeq = {
>     jsonForm(json, html)
>   }
>
>   object json extends JsonHandler {
>     def apply(in: Any): JsCmd =
>       SetHtml("json_result", in match {
>         case [EMAIL PROTECTED]("processForm", _, p: Map[String, _], _) => {
>           println("Cars = " + p("cars"))
>           println("Name = " + p("name"))
>           <b>{p}</b>
>         }
>         case x => <b>Problem... didn't handle JSON message {x}</b>
>       })
>   }
>
>   def head = <head>{Script(json.jsCmd)}</head>
>
> }
>
> Also are you packages set up correctly? What Scala version are you
> using? Can you try mvn clean first ?
>
> Br's,
> Marius
>
> On Sep 1, 6:23 pm, Acciaio <[EMAIL PROTECTED]> wrote:
>
> > 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: Group): NodeSeq = {
> >     jsonForm(json, html)      //Both way in this form or in the
> > complete one posted before...
> >   }
>
> >   import JsCmds._
> >   object json extends JsonHandler {
> >     def apply(in: Any): JsCmd =
> >       SetHtml("json_result", in match {
> >         case [EMAIL PROTECTED]("processForm", _, p: Map[String, _], _) => {
> >           println("Cars = " + p("cars"))
> >           <b>{p}</b>
> >         }
> >         case x => <b>Problem... didn't handle JSON message {x}</b>
> >       })
> >   }
>
> >   def head = <head>{Script(json.jsCmd)}</head>
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to