[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-19 Thread Ali
Thanks for your reply. Actually I was trying to build an exception I am receiving in our product. case class X(yy:Y) case class Y(ss:String) def from(in:String):X={ implicit val formats = net.liftweb.json.DefaultFormats import net.liftweb.json.JsonAST._ import net.liftweb.json.Extra

[Lift] Potential breaking changes - lift-record's support for JSON

2010-02-19 Thread Ross Mellgren
Hi all, I'm wondering how many people are using lift-record's support for JSON: Record.fromJSON Record.asJSON MetaRecord.createRecord(json) MetaRecord.fromJSON MetaRecord.asJSON Field.asJs The reason I'm wondering is that the JSON support should really use lift-json, and I'd like to

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-19 Thread Joni Freeman
Is X perhaps an inner class? Inner class has an implicit reference to outer instance. Serializing those is not supported. If so, please move definition of X outside of class. Cheers Joni On Feb 20, 12:16 am, Ali wrote: > Hi, >  I am wondering, could you please let me know what is wrong in the >

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-19 Thread Joni Freeman
Hi, Can't reproduce that. Those lines should work just fine. From which line do you get that exception (please attach full stack trace too)? Cheers Joni On Feb 20, 12:16 am, Ali wrote: > Hi, >  I am wondering, could you please let me know what is wrong in the > following code: > > case class X(

[Lift] Re: translate doc to Russian

2010-02-19 Thread DChenBecker
I say yes. Adel, if you need something more concrete I've written up a signed statement for you. Derek On Feb 18, 1:26 pm, David Pollak wrote: > On Thu, Feb 18, 2010 at 11:55 AM, TylerWeir wrote: > > I grant permission for the Russian translation. > > > I'm not sure how "legal" a reply in a thr

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-19 Thread Ali
Hi, I am wondering, could you please let me know what is wrong in the following code: case class X(vv:String) val sample = new X("A") implicit val formats = net.liftweb.json.DefaultFormats import net.liftweb.json.JsonAST._ import net.liftweb.json.Extraction._ import net.l

Re: [Lift] Documenting the source code / supplementing the API docs

2010-02-19 Thread Timothy Perrett
This could work - although, some parts of lift are very non-trivial and require good knowledge of lift internals. Do you have such knowledge or are you just hoping to contribute where you can with helpful information? Both are good, just trying to establish what you had in mind. Lift-util proba

Re: [Lift] Documenting the source code / supplementing the API docs

2010-02-19 Thread Ross Mellgren
If you can get an established standard on what the content and format should be, I can work with you reviewing the patches and applying them. But, need to get a concordance from the list on the content first. -Ross On Feb 19, 2010, at 10:53 AM, Stuart Roebuck wrote: > I've had a bit of a break

[Lift] Documenting the source code / supplementing the API docs

2010-02-19 Thread Stuart Roebuck
I've had a bit of a break from Lift and coming back I find myself annoyed that I didn't write some notes last time and am having to go back to searching through the various bits of documentation to figure things out. Anyway, after much thought I decided that the best way to write my notes would be

Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread Indrajit Raychaudhuri
Trond, From cursory glance it appears that some old form of archetype (pre Lift 2.0) had been used to generate the project. What command line option did you use in "mvn archetype:generate" to create the project? This is just a request for qualification. Cheers, Indrajit On 19/02/10 8:22 PM,

[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread tbje
Thank you for rapid replies and a great framework. I opened ticket #357 for this issue. Best regards Trond On 19 Feb, 15:22, Marius wrote: > Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > Br's, > Marius > > On Feb 19, 3:52 pm, tbje wrote: > > > > > Hi Marius, > > I d

[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread Marius
Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. Br's, Marius On Feb 19, 3:52 pm, tbje wrote: > Hi Marius, > I discovered the issue while porting a working application from 2.7.7 > to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > In the example application I provided i

Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread David Pollak
Please open a ticket at https://liftweb.assembla.com/spaces/liftweb/tickets(you have to be an Assembla registered user and a watcher of the project to create tickets). Please mark it as a defect and assign it to me (Marius or others can steal it at will). Next week is a Lift ticket closing week f

[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread tbje
Hi Marius, I discovered the issue while porting a working application from 2.7.7 to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. In the example application I provided it's possible to change the pom.xml by replacing 2.8.0.Beta1 2.0-scala280-SNAPSHOT with 2.7.7 2.0-SNAPSHOT and the app

[Lift] Re: redirectTo in (Stateful)Snippets

2010-02-19 Thread Nico Tromp
Hannes, sorry for the strange :) sentence. It should read: did you register the page in the Boot class? If you want to know more about the SiteMap have a look at chapter 5 from the lift book. At the bottom of the page (http:// groups.google.com/group/the-lift-book) there is a link to the PDF vers

[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread Marius
Can you also try with Scala 2.7.7 ? On Feb 19, 2:26 pm, tbje wrote: > Hi, > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > found a issue with Comet actor, setHtml and ajaxInvoke. > > When trying to invoke the following partial update nothing seems to > happen: > partialUp

[Lift] Re: redirectTo in (Stateful)Snippets

2010-02-19 Thread Nico Tromp
Hannes, did you register your page in the site menu? See below for an example. class Boot { def boot { // where to search snippet // LiftRules.addToPackages("") // Build SiteMap val entries = Menu(Loc("Home", List("index"), "Home")) :: Menu(Loc("Search", List("search"), "

[Lift] Re: redirectTo in (Stateful)Snippets

2010-02-19 Thread Nico Tromp
Hannes, did you registered the page in the in the Boot class? Below is a small example. === class Boot { def boot { // where to search snippet // LiftRules.addToPackages("") // Build SiteMap val entries = Menu(Loc("Home", List("index"), "Home")) ::

[Lift] Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread tbje
Hi, I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and found a issue with Comet actor, setHtml and ajaxInvoke. When trying to invoke the following partial update nothing seems to happen: partialUpdate(SetHtml("field", JsRaw("alert('hi')"))._2} value="Say hi" / >)) This works a

[Lift] redirectTo in (Stateful)Snippets

2010-02-19 Thread Restel, Hannes
Hi, I am new to Lift (and Scala) and need help with dispatching/redirecting to a page after processing a form. My problem: I get a "The Requested URL /search was not found on this server" error message although the page "search.html" does exist. When adding the page "search.html" to the LiftRu

[Lift] Re: Another convert

2010-02-19 Thread Luke Nezda
shameless plug :) On Feb 18, 11:34 am, David Pollak wrote: > On Thu, Feb 18, 2010 at 5:25 AM, czerwonka wrote: > > Just an fyi for the group... > > >http://www.andyczerwonka.com/platform > > > Another convert added to the list... > > Welcome! > > > > > -- > > You received this message because yo