[Lift] json form and checkboxes

2009-12-03 Thread edgarchan
Hi i tried the json form tutorial (HowTo_use_JSON_forms) and everything was ok until i put some checkboxes ... the thing is that no matter how many of them i check only one is being send to the server. example lift:JSONForm.show input type=text name=name /

Re: [Lift] json form and checkboxes

2009-12-03 Thread John Goodsen
Use the SHtml.checkbox to generate your checkboxes: From the ExploringLift book: The checkbox method generates a checkbox form element, taking an initial Boolean value as well as a function ( Boolean) = Any that is called when the checkbox is submitted. If you've done a lot of HTML form

Re: [Lift] json form and checkboxes

2009-12-03 Thread David Pollak
Yeah... this is a bug in the way we serialize the form. Please open a ticket at http://github.com/dpp/liftweb/issues On Thu, Dec 3, 2009 at 1:33 PM, edgarchan edgarchancarri...@gmail.comwrote: Hi i tried the json form tutorial (HowTo_use_JSON_forms) and everything was ok until i put some

[Lift] JSON form with

2009-07-30 Thread James Kearney
I think the current implementation of the JSON form is broken. If you put an in a text field and try to submit it via a JSON form it doesn't get handled correctly. To be precise the formToJSON function in jlift.js doesn't work, and again to be more precise the params method is broken / not fit