[html-formfu] Problem with form generation/rendering
Will Hawes
wdhawes at gmail.com
Thu Oct 4 17:23:02 GMT 2007
On 04/10/2007, Carl Franks <fireartist at gmail.com> wrote:
>
> On 04/10/2007, Will Hawes <wdhawes at gmail.com> wrote:
> > I'm using the 0.1005 release from CPAN.
> >
> > This script:
> >
> > #!/usr/bin/perl -w
> > use strict;
> > use HTML::FormFu;
> > my $form =3D HTML::FormFu->new;
> > $form->element( 'Text', { name =3D> 'test' } );
>
> That should be either:
> $form->element('Text')->name('test');
> or:
> $form->element({ type =3D> 'Text', name =3D> 'text' });
Ah, thanks. Should really have guessed the first one as a HTML::Widget user
:-/
I'm not sure if I want to investigate why the heck you got such a
> strange output though...
It actually behaves itself once I use the correct syntax for ->element.
Given that the code in SVN didn't display the same behaviour I'd guess it's
no longer a problem anyway.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20071004/4b=
dc14ca/attachment.htm
More information about the HTML-FormFu
mailing list