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" <halas...@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 = $c->stash->{form}->get_all_**element({ type => 'File', }); > # my $position = $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="file label"> > <label>Photo</label> > <input name="image" type="file" title="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 <halas...@freemail.hu> > > ______________________________**_________________ > HTML-FormFu mailing list > HTML-FormFu@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> >
_______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu