html-formhandler
html-formhandler copied to clipboard
H::F::M::Cookbook mentions `widget_name_space` should be `field_name_space`
In the Cookbook's section Split up your forms into reusable pieces it is mentioned, that the namespace to the custom fields should be registered using
has '+widget_name_space' => ( default => sub {['Form::Field']} );
Unfortunately, this doesn't work. Looking into HTML::FormHandler::BuildFields the attribute field_name_space is used instead; widget_name_space is ignored completely.
So either the documentation is wrong, or BuildFields should take widget_name_space into account as well. Which one is to prefer?