On 11/07/07, Tobias Kremer <[EMAIL PROTECTED]> wrote:
Hi Carl,
Some revisions ago you added a setup() method which is called on every
element. See this thread:
http://lists.scsys.co.uk/pipermail/html-formfu/2007-May/000039.html
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?
I'm in holiday mode - so my mind's already going fuzzy - hope there's
still enough of it left to help...
Where abouts in ObjectUtil is it being called?
Why's the setup being called twice?
What does your custom element subclass? And what elements does it contain?
Is the problem that your custom element's setup method is still
calling SUPER::setup() (extending) when you should be overriding
setup() ?
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu