Changes for version 1.10 - 2006-09-29

  • RadioGroup elements are now wrapped in a fieldset tag.
  • HTML::Widget->new() and $w->element() now accepts a hash-ref of attributes as an argument, after the name argument.
  • $w->attributes() and $e->attributes() now accepts either a list or a hash-ref. Returns the object-ref for method chaining. A hash-ref no longer overwrites existing attributes, it is now added to the existing attributes. As a special-case, the attributes hash-ref is returned if no arguments are passed.
  • All fields elements (except Upload) have a $e->retain_default method, which if true overrides the default behaviour, so that after a field is missing from the form submission, the xml output will contain the default value, rather than be empty.
  • $widget has new methods get_elements_ref(), get_filters_ref() and get_constraints_ref() which return an arrayref.
  • $result has new method elements_ref() which returns an arrayref.

Modules

HTML Widget And Validation Framework
Accessor Class
Constraint Base Class
CallbackOnce Constraint
Check that a value is one of a current set.
Element Base Class
Block Level Element
Null Container Element
Radio Element grouping
Filter Base Class
Lower Case Filter
HTML Escaping Filter
Trim whitespaces from beginning and end of string
Result Class

Provides

in lib/HTML/Widget/Element/NullContainer.pm