I think it would be great to have the editable in SHtml.
On Nov 1, 1:43 am, Derek Chen-Becker <
dchenbec...@gmail.com> wrote:
> 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/o...
>
> >> Constructive criticism would be appreciated.
>
> >> Derek
>
> > --
> > Lift, the simply functional web frameworkhttp://
liftweb.net
> > Beginning Scalahttp://
www.apress.com/book/view/1430219890