[html-formfu] mutliple selects

Carl Franks fireartist at gmail.com
Wed May 30 11:25:22 GMT 2007

On 30/05/07, Carl Franks <fireartist at gmail.com> wrote:
> On 30/05/07, Thorsten Domsch <tdomsch at gmx.de> wrote:
> >     my $id_day=$self->name."_day";  #<- not working :-( it should ??
> >     my $id_month=$self->name."_month";   #<- not working :-( it should ??
> >     my $id_year=$self->name"_year";  #<- not working :-( it should ??
> Looking at how elements are created, I can see that new() is only
> called with the 'type' and 'parent' arguments, and that all the
> remaining arguments from your config are then passed via populate()
> after new() has returned.
> So, no - this won't work.
> What's maybe needed is a setup method that's called on all elements,
> after new() and populate() have run, but before the element is
> returned?

Okay, I've added a setup() method - but consider it experimental for now.
If you move all the sub-element creation into `sub setup { }` it will
have access to the name() defined in your yaml.


More information about the HTML-FormFu mailing list