[Catalyst] trouble with Catalyst::Controller::FormBuilder:
form does not render correctly (no fields)
Jon Schutz
jon+catalyst at youramigo.com
Sun Apr 6 13:34:20 BST 2008
On Sat, 2008-04-05 at 16:31 +0200, Markus Holzer wrote:
> Fellow nerds,
>
> I've got a problem with Catalyst::Controller::FormBuilder. I'm doing
> exactly as advertised in the pod but the form refuses to render, or
> better said is its fields.
> The submit button is rendered with the correct caption (which is
> different from "submit"), hence the .fb file is found and loaded. And
> when i peek into $self->formbuilder->{fields} turns out the array is
> there, but empty.
> So the formbilder object is not correctly initialized, but I have no
> idea why. I've tried some variations, like "Form(explicit/path) and
> different line endings (cr, lf, crlf) of the .fb file. no avail.
>
Have you carefully checked that all the whitespace in the .fb file are
spaces, not tabs? The perldoc in CGI::FormBuilder::Source::File says
"The configuration format steals from Python (ack!) which is sensitive
to indentation ..." and in my experience, they weren't kidding!
--
Jon
More information about the Catalyst
mailing list