[html-formfu] setup() method

Carl Franks fireartist at gmail.com
Thu Aug 2 16:05:40 GMT 2007


On 11/07/07, Tobias Kremer <list at funkreich.de> wrote:

> I've implemented a custom element which makes use of this setup method to
> build multiple elements. Now the problem is that the block element's setup()
> method does this:
>
> map { $_->setup } @{ $self->_elements };
>
> which makes my element appear twice in the form if placed inside a block
> element (e.g. a simple_table) because my setup method is called once in
> ObjectUtil and a second time from the block element.
>
> Any ideas on how to fix this? Is it really neccessary to have the block
> element call setup again for all the elements it's enclosing?

Just to keep the list updated, a fix was checked-in; block no longer
calls setup() on it's children.

Cheers,
Carl



More information about the HTML-FormFu mailing list