[Catalyst] Re: Trying out FormHandler, running into "maketext" error

will trillich will.trillich at serensoft.com
Mon Nov 22 17:25:27 GMT 2010


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 in the Catalyst/FormHanlder intro that we missed?


On Mon, Nov 22, 2010 at 5:16 PM, Hernan Lopes <hernanlopes at gmail.com> wrote:

> will trillich,
> that error happens when i use  has_field 'submit'  =3D> ( widget =3D> 'su=
bmit'
> )
>
> can you test your form with this instead:
> has_field 'submit' =3D> (type =3D> 'Submit', label =3D> 'Submit',
> value=3D>'Submit', required =3D> 0, )
>
> i bet your error will go away
>
>
>
>
>
> On Mon, Nov 22, 2010 at 12:19 PM, will trillich <
> will.trillich at serensoft.com> wrote:
>
>> Our form-class includes
>>          has_field 'submit'  =3D> ( widget =3D> 'submit' )
>>
>> Do you mean type=3D>'submit' instead of widget=3D>'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 <hernanlopes at gmail.com>wro=
te:
>>
>>> will trilich, are you using widget type submit ? try to replace with ty=
pe
>>> =3D> 'Submit'
>>>
>>>
>>> Hernan Lopes
>>>
>>>
>>> On Mon, Nov 22, 2010 at 1:38 AM, John Anderson <genehack at genehack.org>w=
rote:
>>>
>>>>
>>>> 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 affec=
t a
>>>> form-submit) but still can't render, with the same error as before:
>>>>
>>>> Have you looked at the docs for HTML::FormHandler::TraitFor::I18N? Bas=
ed
>>>> on that, you may want to see if you have something in $ENV{LANGUAGE_HA=
NDLE}
>>>> or try passing in a language handle to your form constructor -- or may=
 try
>>>> push_errors instead of add_errors, as that documentation suggests.
>>>>
>>>>
>>>> j.
>>>>
>>>>
>>>> _______________________________________________
>>>> List: Catalyst at lists.scsys.co.uk
>>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>>>> Searchable archive:
>>>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>>>> Dev site: http://dev.catalyst.perl.org/
>>>>
>>>
>>>
>>> _______________________________________________
>>> List: Catalyst at lists.scsys.co.uk
>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>>> Searchable archive:
>>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>>> Dev site: http://dev.catalyst.perl.org/
>>>
>>>
>>
>>
>> --
>> Failure is not important. How you overcome it, is.
>> -- Nick Vujicic
>>
>> _______________________________________________
>> List: Catalyst at lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive:
>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>
>>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>


-- =

Failure is not important. How you overcome it, is.
-- Nick Vujicic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101122/cd4ba=
345/attachment.htm


More information about the Catalyst mailing list