On 30/05/07, Carl Franks <[EMAIL PROTECTED]> wrote:
On 30/05/07, Thorsten Domsch <[EMAIL PROTECTED]> 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.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to