If you want a custom formtool for an individual property you can create a
function called "ftEdit[propertyname]" and that function essentially becomes
the formtool for that property.

Copy the edit function from the formtool of your choice as the base and
modify as required.

-- 
-- Matthew Bryant
Product Development Manager
Daemon Internet Consultants
Adobe Solutions Partner
http://www.daemon.com.au/
p. 02 8302 4600
f. 02 9380 4204


On Thu, Nov 19, 2009 at 11:13 AM, modius <[email protected]> wrote:

> On Nov 18, 4:34 pm, AJ Mercer <[email protected]> wrote:
> > In the farcry 5.3 rewrite, are formtools getting overhauled?
>
> Yes.
>
> > I have a case where I wanted a different display for array checkbox, so
> > copied array.cfc to my plugin and tweaked.
> >
> > I have now just discovered the the two versions of array.cfc are
> different -
> > core has been updated.
> >
> > So I was thinking that it would be neat if formtools used webskins too.
> > So you could override those in project/plugin
> > or create new displays
>
> On the surface it seems like a good feature to allow folks to alter
> the way an existing formtool is rendered but there are problems.
>
> Formtool views are special in that they:
> - require very specific naming conventions for elements, ids, etc
> - adhere to a standard that allows them to be stacked and grouped with
> other formtools
> - must marry up exactly with their validation method
> - incorporate code that may make references to private functions
> within the formtool
>
> Allowing people to build their own edit handlers for existing
> formtools makes it very difficult to change the behaviour of a
> formtool and still guarantee that it will work.  For that reason i
> don't think its worth providing formtool views that can be overridden.
>
> Of course, you can create your own, complete formtool components and
> add that to a plugin or project.
>
> A case in point is the current overhaul of formtools in 5.3 to
> standardise everything on uni-form and jQuery/jQueryUI. You will be
> able to upgrade without any changes but all the views have changed
> dramatically.  Moving forward, formtool developers should have a very
> well defined set of standards for creating new formtools.
>
> -- geoff
> http://www.daemon.com.au/
>
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to