[html-formfu] get_element method
Moritz Onken
onken at houseofdesign.de
Tue Sep 16 11:50:39 BST 2008
Am 16.09.2008 um 12:44 schrieb Dermot:
> Hi,
>
> I cannot get the get_element method to work on my installation.
>
> Catalyst::Controller::HTML::FormFu
>
> my $select = $form->get_element({type => 'Select'}); # There
> is only one select element in my yml form
> $c->log->debug("Select=",$select);
> $select->options(\@roles);
>
> Produces this:
>
> [debug] Select=
> [error] Caught exception in Motion::Controller::Users->add "Can't call
> method "options" on an undefined value at
> /var/www/MyApp/script/../lib/MyApp/Controller/Users.pm line 79."
>
>
Could you please provide us with the corresponding yaml file?
Are you sure you want $form->get_element? If the select is nested you
might
want to try $form->get_all_element(),
More information about the HTML-FormFu
mailing list