Linux SoftwareProgrammingLibrariesHTML::Widget 1.09

HTML::Widget 1.09



Developer:   Sebastian Riedel
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   65K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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, don't misuse it as a template system!

Requirements:
  • Perl
    tags html widget  widget get  get list  add some  other widget  widget embed  result params  value result  element textfield  name message  fields result  result valid  result param  

    Download HTML::Widget 1.09


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/C/CF/CFRANKS/HTML-Widget-1.09.tar.gz


    Authors software

    HTML::Widget 1.09 (by Sebastian Riedel)


    Similar software

    HTML::Widget 1.09 (by Sebastian Riedel)

    DBIx::SQLCrosstab::Format 1.17 (by DBIx::SQLCrosstab::Format Team)
    DBIx::SQLCrosstab::Format is a Perl module with formats results created by DBIx::SQLCrosstab.

    SYNOPSIS

    use DBIx::SQLCrossta

    Catalyst::Manual::Tutorial::AdvancedCRUD 0.02 (by Kennedy Clark)
    Catalyst::Manual::Tutorial::AdvancedCRUD is a Catalyst Tutorial - Part 8: Advanced CRUD.

    Add a Form Creation Helper Method

    Open

    Curses::UI::Widget 0.95 (by Maurice Makaay)
    Curses::UI::Widget is a base class for all widgets.

    CLASS HIERARCHY

    Curses::UI::Widget - base class

    SYNOPSIS

    This class

    Gtk2::Ex::FormFactory::GtkWidget 0.65 (by J?rn Reder)
    Gtk2::Ex::FormFactory::GtkWidget can wrap arbitrary Gtk widgets.

    SYNOPSIS
    Gtk2::Ex::FormFactory::GtkWidget->new (
    custom_g

    Tk::Text::Viewer 0.93 (by Oded S. Resnik)
    Tk::Text::Viewer is a text widget that can display text files under TK

    Tk::Balloon 804.027 (by Tk::Balloon Team)

    Xbae 4.60.4 (by Xbae Team)
    XbaeMatrix is a free Motif table widget which is also compatible with the free LessTif, and it presents an editable array of string

    Data.FormValidator 0.04 (by Joshua Miller)
    Data.FormValidator's aim is to bring all the benefits of the perl module Data::FormValidator over to javascript, using the same input

    Zero Memory Widget 0.2.0 (by Thierry Excoffier)
    Widget libraries have now been developed and used for years


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags