Andrew Sterling Hanenkamp > Contentment-0.011_033 > Contentment::Form::Widget::Hidden

Download:
Contentment-0.011_033.tar.gz

Dependencies

Annotate this POD

Module Version: 0.03   Source  

NAME ^

Contentment::Form::Widget::Hidden - Purely server-side form data

SYNOPSIS ^

  my $form = Contentment::Form->define(
      # ...
      widgets => {
          foo => {
              name  => 'foo',
              class => 'Hidden',
          },
      },
      # ...
  );

  # There's no need to render this widget. The render methods do nothing.

DESCRIPTION ^

This is the anti-widget. This provides form storage without actually sending the client anything. The render methods for this widget do nothing, so you don't even need to bother calling them if you don't want to.

The constructor accepts the following arguments:

name (required)

The name of the value to store in the form.

value (required)

The value to store in this field. This value cannot be modified by anything the client does making it extremely safe. Thus, no validation is really necessary. Also, this value may contain any data that can be serialized by YAML.

AUTHOR ^

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT ^

Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

syntax highlighting: