The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Plugin::FillInForm - FillInForm for Egg.

SYNOPSIS

  package MYPROJECT;
  use strict;
  use Egg qw{ FillInForm };

Example of code.

  $e->fillform(\$body, { name=> 'value' });
  
  $e->fillin_ok(1);

DESCRIPTION

This module buries the value under the form by using HTML::FillInForm.

When this code was made, Catalyst::Plugin::FillInForm was imitated.

* Please see the document of HTML::FillInForm about a detailed explanation.

CONFIGURATION

If the option of HTML::FillInForm is written in 'plugin_fillinform', it is passed as it is.

  plugin_fillinform=> {
    fill_password=> 0,
    ignore_fields=> [qw{ param1 param2 }],
    ...
    },

METHODS

$e->fillform([BODY], [HASH_REF]);

The burial in the form is processed.

When [BODY] is omitted, $e->response->body is used. In addition, if $e->response->body is undefined, 0 is returned and it ends.

When [HASH_REF] is omitted, $e->request->params is used.

$e->fillin_ok([BOOLEAN]);

When it is called that the processing of Egg ends ,in a word, finalize, $e->fillform is executed if this is true.

finalize

This method is called from Egg. There is no thing that the user calls.

If $e->form->has_missing or $e->form->has_invalid or $e->stash->{error} is true when Egg::Plugin::FormValidator, Egg::Plugin::FormValidator::Simple, Catalyst::Plugin::FormValidator are read, $e->fillform is executed.

SEE ALSO

HTML::FillInForm, Catalyst::Plugin::FillInForm, Catalyst::Plugin::FormValidator, Catalyst::Plugin::FormValidator::Simple, Egg::Plugin::FormValidator, Egg::Plugin::FormValidator::Simple, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.