[Catalyst] Catalyst::Plugin::FillInForm

Chisel Wright chisel at herlpacker.co.uk
Thu May 19 13:12:17 CEST 2005


On Thu, May 19, 2005 at 01:02:59PM +0200, Sebastian Riedel wrote:
> There has to be a form to fill. ;)
> 
>     $c->forward('FormFill::V::TT');
>     $c->fillform;

D'oh! Cheers.
For some reason I assumed [yeah, it's bad to assume] that forwarding on
to the view class was a black hole that you don't return from.

Any ideas in the pre-filling? I'd like to be able to stuff values into
$c->stash to pre-populate forms.

Is this going to require hacking/modification to
Catalyst::Plugin::FillInForm?

The following makes me think it can only be (currently) pre-filled from
request parameters:

  HTML::FillInForm->new->fill(
    scalarref => \$c->res->{body},
    fdat      => $c->req->params
  )

which doesn't seem all that useful to me.

Again, I'm happy to be (re)educated.

Chisel
-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/



More information about the Catalyst mailing list