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
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
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
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
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