I have at least two different pieces of functionality here. The main workhorse is the AjaxUtils.editable method that actually generates the dynamic div. I was thinking that this might be good to put in SHtml (albeit with a different name). I also have the AjaxEditableField trait which mixes into a MappedField to provide a specialized asHtml, but I was thinking that maybe I should provide a trait that you could add to a Mapper that defines a list of fields that will be AJAXified, so that you can control which ones are editable via asHtml. I think I also need to add a boolean function parameter that lets you control whether the field becomes editable or not, so that you could easily tie it to a Loc.If or some other access control mechanism. Thoughts?
Derek On Sat, Oct 31, 2009 at 8:08 AM, David Pollak <feeder.of.the.be...@gmail.com > wrote: > Very cool! > > > > > On Fri, Oct 30, 2009 at 4:44 PM, Derek Chen-Becker > <dchenbec...@gmail.com>wrote: > >> I just committed some code for AJAX-editable fields that I think might be >> useful as a part of LiftWeb. Basically, if you've seen how ReviewBoard >> handles field editing, this is the same thing. It's a trait that can be >> mixed into any MappedField and as soon as M7 is release and I can merge the >> new ajaxForm postSubmit code into master, I'll have a demo that will work >> out of the box. If you're interested, take a look at it in GitHub: >> >> >> http://github.com/dchenbecker/LiftTicket/blob/master/src/main/scala/org/liftticket/liftticket/model/AjaxEditableField.scala >> >> Constructive criticism would be appreciated. >> >> Derek >> >> >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Surf the harmonics > > > > --~--~---------~--~----~------------~-------~--~----~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---