[Lift] Re: Dynamically adding fields to a form

2008-10-27 Thread David Pollak
I think using the JSON handler is the best approach. You can add arbitrary client fields and as long as there's a server-side JSON handler for the given field, you're golden. On Mon, Oct 27, 2008 at 2:48 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I was also wondering if you could use a JSON

[Lift] Re: Dynamically adding fields to a form

2008-10-27 Thread Derek Chen-Becker
Right. The JSONHandler essentially presents a map of the fields it receives in your processing method. There's an example on the Wiki here: http://liftweb.net/index.php/HowTo_use_JSON_forms On Mon, Oct 27, 2008 at 4:42 PM, David Pollak [EMAIL PROTECTED] wrote: I think using the JSON handler

[Lift] Re: Dynamically adding fields to a form

2008-10-26 Thread Marius
Hi Charles, Well if you add new input fields from JS obviously Lift has no idea about them and obviously there will be no function associated with them on server side.I guess what you can do is : 1. When pressing the add field button you do an ajax request, register your function n server side

[Lift] Re: Dynamically adding fields to a form

2008-10-26 Thread Charles F. Munat
Hmm. My first idea was #3, but that's such a hack. Lift should be better than that. My second thought was #1, and I'm still thinking about that, although #2 (which also occurred to me) looks like a good fallback. I'll think more about this, but it seems to me like something Lift should do

[Lift] Re: Dynamically adding fields to a form

2008-10-26 Thread Tim Perrett
Hey Chas, You might be interested in this thread too: http://groups.google.com/group/liftweb/browse_thread/thread/5110730076293dbf Long term, this is probally what you want :-) (see dpp's comments) Cheers, Tim --~--~-~--~~~---~--~~ You received this message