Debian Codegraph @

Changes

raw
1 This file documents the revision history for Perl extension HTML::Widget.
2
3 1.11 2007-03-01
4
5 - New Bool constraint.
6 - New SingleValue constraint.
7 - New $w->filter_all() and $w->constraint_all() methods add the
8 named filters/constraints to all current form elements.
9 - $w->find_elements() now supports the same arguments as
10 $w->get_elements().
11 - New render_errors() method on constraints, accepts a list of
12 element names for which errors should be displayed by $r->as_xml.
13 - Elements are allowed to have no name. No id or name will be
14 displayed in the xml output .
15 - When an Equal constraint fails, the first named element's value is
16 no longer considered valid.
17 - All elements associated with a failing Equal constraint receive an
18 error. Use render_errors() to override this behaviour.
19 - New HTML::Widget::Error method no_render(), used internally by
20 $constraint->render_errors().
21 - New F.A.Q. documentation section.
22 - $result->param() carps if called with more than 1 argument (it's
23 documented readonly).
24 - element() called on a block element now accepts the same
25 \%attributes argument as $widget->element().
26 - Submit and Reset elements now inherit from Button element, so they
27 share the same methods (value, content, src, type).
28 - Fixed Range constraint bug when min/max is 0 (zero).
29 - Fixed $widget->get_elements() bug, now both 'name' and 'type'
30 arguments can be used together to limit the elements returned.
31 - In constraint fixed so empty/missing values pass.
32 - HTML::Element now escapes unicode properly - require v3.22 and
33 stop skipping test
34 - HTMLEscape filter test skipped due to incompatible changes in
35 HTML::Element
36 - Deprecated Maybe constraint
37
38 1.10 2006-09-29
39 - RadioGroup elements are now wrapped in a fieldset tag.
40 - HTML::Widget->new() and $w->element() now accepts a hash-ref of
41 attributes as an argument, after the name argument.
42 - $w->attributes() and $e->attributes() now accepts either a list
43 or a hash-ref. Returns the object-ref for method chaining.
44 A hash-ref no longer overwrites existing attributes, it is now
45 added to the existing attributes. As a special-case, the
46 attributes hash-ref is returned if no arguments are passed.
47 - All fields elements (except Upload) have a $e->retain_default
48 method, which if true overrides the default behaviour, so that
49 after a field is missing from the form submission, the xml output
50 will contain the default value, rather than be empty.
51 - $widget has new methods get_elements_ref(), get_filters_ref()
52 and get_constraints_ref() which return an arrayref.
53 - $result has new method elements_ref() which returns an arrayref.
54
55 1.09 2006-09-21
56 - Embedding completely refactored by Michael Gray.
57 - $w->embed( $e, @widgets) embeds into the supplied element.
58 - New Fieldset element.
59 - Can add elements to Fieldset elements, as an alternative to using
60 embed.
61 - New $w->xhtml_strict accessor. When true, doesn't allow non-block
62 elements at the top-level of a form.
63 - New $w->legend accessor. Sets the label for the top-level fieldset.
64 - process() is now called for embedded widgets.
65 - After form submission, $result->as_xml() no longer uses an elements'
66 default value if that field wasn't submitted.
67 - Removed In constraint change added in v1.08 (in which validate
68 automatically passed an empty in() list)
69 - Select elements no longer automatically get an implicit In constraint
70 added. Set constrain_options() to true to get the old behaviour.
71 - RadioGroup elements no longer automatically get an implicit In
72 constraint added. Set constrain_values to true to get the old
73 behaviour.
74 - New $w->explicit_ids( 1 ) method, stops auto-generation of id's in
75 the xml output.
76 - New CallbackOnce constraint
77 - New HTML::Widget::Manual::Developer.pod
78 - Added checked() as an alias for value() in RadioGroup elements.
79 - Fixed many bugs when submitted values are 0 (zero) - particularly
80 with $result->as_xml output.
81 - Fixed bug when element names contain regex characters.
82 - Fixed Range constraints handling of missing and empty values.
83
84 1.08 2006-08-10 16:07
85 - Changed $widget->action(). Instead of defaulting to "/" it is left
86 empty. This causes browsers to submit the form to the current URI.
87 - Fixed fatal bug on an empty Select options() list
88 - Fixed bug where $result->error(..., $type) would return all errors
89 but those of $type
90 - $e->containerize now requires the container_class and dies with a
91 more helpful message if require of class fails
92 - new methods $widget->get_element(), $widget->get_constraint(),
93 $widget->get_filter()
94 - In constraint no longer fails when the in() list is empty
95 - When multiple Checkbox elements share the same name, the element ids
96 are given the form 'name_1', 'name_2', etc. This ensures unique ids.
97 - Regex and Number constraints now allow the empty string, for
98 consistency with other constraints. If you need to ensure the
99 value is present, also use the All constraint.
100 - Constraint, Element and Filter names can be prefixed with a unary
101 plus '+' to specify a fully-qualified module name, rather than one
102 beginning with HTML::Widget::Constraint::, etc.
103 - Fixed bug with ASCII constraint not allowing the space character.
104
105 1.07 2006-04-26 10:53
106 - Added a Button element
107 - Submit and Reset values no longer default to "1"
108 (this was causing the browser to display the button label
109 as "1" instead of "Submit" or "Reset")
110 - Added height() and width() accessors for image submit buttons
111 - Added support for <button> tags, with new content() method
112 - Added ability to customize HTML produced via
113 H::W::Element::container_class.
114 - Can specify container_class on a per widget basis via
115 - $w->element_container_class()
116 - Overloaded "" on Container to return as_xml
117 - All constraint counted empty strings as values
118 - AllOrNone constraint didn't treat 0 as a value
119
120 1.06 2006-04-06 10:44
121 - Added Module::Pluggable::Fast preloading for PAR packaging
122 and the like
123 - Make HTML::Widget::Container->element support arrayrefs
124 - New method add_error() in HTML::Widget::Result
125 - Select elements automatically get an In constraint added,
126 corresponding to the element's option keys
127 - RadioGroup elements automatically get an In constraint added,
128 corresponding to the element's values
129 - New Number constraint
130 - New 'multiple' attribute supported on Select elements
131 - Multiple input values for a Select element is an error if the
132 multiple attribute is not true
133 - Bug fixes:
134 - Hidden element now accepts false but defined input values
135 - Fixed bug with $result->params() not returning correct results
136 when a field had multiple values
137 - Regex constraint skipped when input param not defined
138 (stops 'uninitialized value' warning)
139
140 1.05 2006-03-13 10:52
141 - New methods get_constraints(), get_elements(), get_filters
142 - add value alias for checkbox
143 - Fixed element values set to zero or the empty string not being
144 set in the xml output
145 - Added DependOn constraint
146 - Fix textarea with description.
147 - Add a src option to Submit to make it a image submit.
148
149 1.04 2005-01-30 19:26:00
150 - Fixed $query in tests, fixed fetching multiple-valued params
151 - More documentation!
152 - Lots of small bug fixes
153 - Added add_valid method
154 - Added AllOrNone constraint
155
156 1.03 2006-01-17 22:00:00
157 - Fixed missing files
158
159 1.02 2006-01-17 22:00:00
160 - Fixed multiple value filter
161 - Pod fixes
162 - Added new filters. HTMLEscape, HTMLStrip, UpperCase, LowerCase,
163 and Callback
164
165 1.01 2006-01-11 00:00:00
166 - Fixed some typos
167
168 1.0 2005-11-30 22:00:00 2005
169 - first development release