HTML::Widget 1.09
Sponsored Links
HTML::Widget 1.09 Ranking & Summary
File size:
0.066 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1125
Date added:
2006-09-27
Publisher:
Sebastian Riedel
HTML::Widget 1.09 description
HTML::Widget is a Perl module with HTML Widget And Validation Framework.
SYNOPSIS
use HTML::Widget;
# Create a widget
my $w = HTML::Widget->new(widget)->method(get)->action(/);
# Add a fieldset to contain the elements
my $fs = $w->element( Fieldset, user )->legend(User Details);
# Add some elements
$fs->element( Textfield, age )->label(Age)->size(3);
$fs->element( Textfield, name )->label(Name)->size(60);
$fs->element( Submit, ok )->value(OK);
# Add some constraints
$w->constraint( Integer, age )->message(No integer.);
$w->constraint( Not_Integer, name )->message(Integer.);
$w->constraint( All, age, name )->message(Missing value.);
# Add some filters
$w->filter(Whitespace);
# Process
my $result = $w->process;
my $result = $w->process($query);
# Check validation results
my @valid_fields = $result->valid;
my $is_valid = $result->valid(foo);
my @invalid_fields = $result->have_errors;
my $is_invalid = $result->has_errors(foo);;
# CGI.pm-compatible! (read-only)
my $value = $result->param(foo);
my @params = $result->param;
# Catalyst::Request-compatible
my $value = $result->params->{foo};
my @params = keys %{ $result->params };
# Merge widgets (constraints and elements will be appended)
$widget->merge($other_widget);
# Embed widgets (as fieldset)
$widget->embed($other_widget);
# Get list of elements
my @elements = $widget->get_elements;
# Get list of constraints
my @constraints = $widget->get_constraints;
# Get list of filters
my @filters = $widget->get_filters;
Create easy to maintain HTML widgets!
Everything is optional, use validation only or just generate forms, you can embed and merge them later.
The API was designed similar to other popular modules like Data::FormValidator and FormValidator::Simple, HTML::FillInForm is also built in (and much faster).
This Module is very powerful, dont misuse it as a template system!
SYNOPSIS
use HTML::Widget;
# Create a widget
my $w = HTML::Widget->new(widget)->method(get)->action(/);
# Add a fieldset to contain the elements
my $fs = $w->element( Fieldset, user )->legend(User Details);
# Add some elements
$fs->element( Textfield, age )->label(Age)->size(3);
$fs->element( Textfield, name )->label(Name)->size(60);
$fs->element( Submit, ok )->value(OK);
# Add some constraints
$w->constraint( Integer, age )->message(No integer.);
$w->constraint( Not_Integer, name )->message(Integer.);
$w->constraint( All, age, name )->message(Missing value.);
# Add some filters
$w->filter(Whitespace);
# Process
my $result = $w->process;
my $result = $w->process($query);
# Check validation results
my @valid_fields = $result->valid;
my $is_valid = $result->valid(foo);
my @invalid_fields = $result->have_errors;
my $is_invalid = $result->has_errors(foo);;
# CGI.pm-compatible! (read-only)
my $value = $result->param(foo);
my @params = $result->param;
# Catalyst::Request-compatible
my $value = $result->params->{foo};
my @params = keys %{ $result->params };
# Merge widgets (constraints and elements will be appended)
$widget->merge($other_widget);
# Embed widgets (as fieldset)
$widget->embed($other_widget);
# Get list of elements
my @elements = $widget->get_elements;
# Get list of constraints
my @constraints = $widget->get_constraints;
# Get list of filters
my @filters = $widget->get_filters;
Create easy to maintain HTML widgets!
Everything is optional, use validation only or just generate forms, you can embed and merge them later.
The API was designed similar to other popular modules like Data::FormValidator and FormValidator::Simple, HTML::FillInForm is also built in (and much faster).
This Module is very powerful, dont misuse it as a template system!
HTML::Widget 1.09 Screenshot
HTML::Widget 1.09 Keywords
HTML
HTML Widget And Validation Framework
Widget 1.09
Framework
validation framework
Perl module
HTML Widget
widget
validation
elements
module
constraints
name
HTML::Widget
HTMLWidget
HTML::Widget 1.09
Bookmark HTML::Widget 1.09
HTML::Widget 1.09 Copyright
WareSeeker periodically updates pricing and software information of HTML::Widget 1.09 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of HTML::Widget 1.09 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
HTML::Widget::DBIC is a subclass of HTML::Widgets for dealing with DBIx::Class. Free Download
HTML::Widget::SideBar can creates the HTML sidebar for a web page. Free Download
HTML-Widgets-NavMenu is a Perl module to generate navigation menus and control site flow. Free Download
HTML::Widgets::NavMenu is a Perl Module for Generating HTML Navigation Menus. Free Download
HTML::GenToc is a Perl module that generate a Table of Contents for HTML documents. Free Download
HTML::DWT is a Perl module with DreamWeaver HTML Template. Free Download
HTML::Widgets::DateEntry is a Perl module that creates date entry widgets for HTML forms. Free Download
HTML Objects is a Perl module library for turning HTML tags into Perl objects. Free Download
Latest Software
Popular Software
Favourite Software