Catalyst::Plugin::HTML::Widget - HTML Widget And Validation Framework use Catalyst qw/HTML::Widget; $c->widget('foo')->method('get')->action('/foo/action'); $c->widget('foo')->element( 'Textfield', 'age' )->label('Age')->size(3); $c->widget('foo')->element( 'Textfield', 'name' )->label('Name')->size(60); $c->widget('foo')->element( 'Submit', 'ok' )->value('OK'); $c->widget('foo')->constraint( 'Integer', 'age' )->message('No integer.'); $c->widget('foo')->constraint( 'All', 'age', 'name' ) ->message('Missing value.'); $c->widget( HTML::Widget->new('foo') ); $c->widget('foo')->indicator('some_field'); my $result = $c->widget('foo')->process; my $result = $c->widget('foo')->process($query); my $result = $c->widget_result('foo'); # with query params HTML Widget And Validation Framework.

$c->widget( $name, $widget )
Returns a HTML::Widget. If no object exists, it will be created on the fly. The widget name defaults to "_widget".

$c->widget_result($name)
Returns a HTML::Widget::Result object, processed with query and upload parameters. Catalyst, HTML::Widget Sebastian Riedel, "sri@oook.de" This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.