[html-formfu] position element not found

Carl Franks fireartist at gmail.com
Tue Jan 10 08:38:02 GMT 2012


Hi,
Can you provide the config / code which sets-up the form,  and the rest of
your code which looks like it's cut off mid-line?
Cheers,
Carl
On Jan 9, 2012 6:20 PM, "Gabor HALASZ" <halasz.g at freemail.hu> wrote:

> Hi!
>
> I tried to add elements to my form (new elements into a fieldset element),
> but I got exception with $subject. My code is:
>
> my $position =3D $c->stash->{form}->get_all_**element({ type =3D> 'File',=
 });
> # my $position =3D $c->stash->{form}->get_all_**element;
>
> use Data::Dumper;
> $c->log->debug( 'HIER: ' . $position );
>
> $c->stash->{form}->insert_**after( $c->stash->{form}->element( {
>
> The debug log:
>
> [debug] Restored session "**ad2db20e3852c4d33f421258241d2a**ecb1a18cc4"
> [debug] HIER: <div class=3D"file label">
> <label>Photo</label>
> <input name=3D"image" type=3D"file" title=3D"form.element.title.**picture=
" />
> </div>
> [debug] Rendering template "form.tt"
> [error] Caught exception in PAGL::Controller::Picture->**manage "position
> element not found at /usr/home/HalaszGabor/Pagl/**
> script/../lib/PAGL/Controller/**Picture.pm line 53"
>
> If I tried get_all_elements without %options, and the insert_after works,
> adds the new element after the first element of form. What's wrong?
>
> --
> Gabor HALASZ <halasz.g at freemail.hu>
>
> ______________________________**_________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/html-**formfu<http://=
lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20120110/66=
bd0eb9/attachment.htm


More information about the HTML-FormFu mailing list