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


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to