Discovered something about FormHandler's form_generator.pl...
The auto-generated FormHandler code (via *form_generator.pl*) creates submit
buttons like this:
has_field 'submit' = ( *widget* = '*submit*' );
but that leads to the original error
undef error - Unable to do maketext on: at
Perl is case sensitive.
Also you should not have any non Catalyst::Controller subclasses in the
Controller namespace of your app.
Move you forms to My::App::Form for example.
--
Best regards, Alex
On Mon, 2010-11-22 at 18:25 +0100, will trillich wrote:
Ooh, very nice! Thanks so much, that's
Not sure what your case sensitive remark refers to -- and if it's looking
for something to be defined XXX that's defined xxx instead, that particular
error message is really out of left field.
Do you mean something like
has_field 'submit' = ( widget = 'submit' )
should instead be
will trilich, are you using widget type submit ? try to replace with type =
'Submit'
Hernan Lopes
On Mon, Nov 22, 2010 at 1:38 AM, John Anderson geneh...@genehack.orgwrote:
On Nov 21, 2010, at 10:26 PM, will trillich wrote:
Pooh. Still no luck. When we try a more more Moose-y approach, we
From %ENV there are only two LANG* keys:
'LANG' = 'en_US'
'LANGUAGE' = 'en_US:en_GB:en'
Looking at the docs for HTML::FormHandler::TraitFor::I18N it sure looks
flexible for moving toward a multi-language webapp, but when we just want a
quick proof-of-concept, we'd hope that there are some
Our form-class includes
has_field 'submit' = ( widget = 'submit' )
Do you mean type='submit' instead of widget='submit'?
Interesting that you'd think of this as a suspect. What's the rationale?
On Mon, Nov 22, 2010 at 9:16 AM, Hernan Lopes hernanlo...@gmail.com wrote:
will trilich,
will trillich,
that error happens when i use has_field 'submit' = ( widget = 'submit' )
can you test your form with this instead:
has_field 'submit' = (type = 'Submit', label = 'Submit', value='Submit',
required = 0, )
i bet your error will go away
On Mon, Nov 22, 2010 at 12:19 PM, will
Ooh, very nice! Thanks so much, that's lots better now. Woo hoo!
Yes indeed, the undef error - Unable to do maketext on: at
/usr/local/share/perl/5.10.0/HTML/FormHandler/I18N.pm line 15. error has
gone away thanks to tweaks to the SUBMIT button on the FormHandler
definition.
Was there something
Pooh. Still no luck. When we try a more more Moose-y approach, we do get
updated database records (stuffing the URL with arguments to affect a
form-submit) but still can't render, with the same error as before:
undef error - Unable to do maketext on: at
On Nov 21, 2010, at 10:26 PM, will trillich wrote:
Pooh. Still no luck. When we try a more more Moose-y approach, we do get
updated database records (stuffing the URL with arguments to affect a
form-submit) but still can't render, with the same error as before:
Have you looked at the docs
10 matches
Mail list logo