RCS file: /home/nwiger/perlmod/lib/CGI/RCS/FormBuilder.pm,v Working file: /home/nwiger/perlmod/lib/CGI/FormBuilder.pm head: 2.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 102; selected revisions: 102 description: CGI::FormBuilder for building form-based applications ---------------------------- revision 2.2 date: 2002/02/14 22:38:37; author: nwiger; state: Exp; lines: +60 -18 fixed bug in sticky option that was overwriting default values removed check for 'submit' field in submitted() function added _name suffix to javascript validate() generation, allowing multiple javascript validation functions when forms are named ---------------------------- revision 2.1 date: 2002/01/04 23:26:18; author: nwiger; state: Exp; lines: +19 -3 added new 'force' option to allow field() to win reliably fixed test suite so it works on Windoze correctly ---------------------------- revision 2.0 date: 2001/12/22 02:25:22; author: nwiger; state: Exp; lines: +617 -266 v2.0 normalized with many bug fixes, docs, features ---------------------------- revision 1.99 date: 2001/12/19 00:45:09; author: nwiger; state: Exp; lines: +9 -10 major bug introduced when removed "@v" test; had to redo getting CGI params via $CGI object, now should work reliably ---------------------------- revision 1.98 date: 2001/12/18 00:41:04; author: nwiger; state: Exp; lines: +11 -18 - interim checking with several docs updates - most likely next CPAN version will be 2.0 ---------------------------- revision 1.97 date: 2001/12/18 00:16:28; author: nwiger; state: Exp; lines: +246 -201 - new semantics of 'required' option, read the docs! - fixed many documentation errors and omissions - redid SYNOPSIS so is more concise and readable - added separate README since docs are now so huge - more debugging messages - fixed YA0B (Yet Another 0 Bug) - updated JavaScript generation so field names like 'db:host' safe - more new tests for new features - instead of stringification, now use length to test if val exists; if this introduces any bugs please let me know ---------------------------- revision 1.96 date: 2001/12/14 22:21:18; author: nwiger; state: Exp; lines: +6 -5 squashed a few silly uninitialized warnings ---------------------------- revision 1.95 date: 2001/12/14 22:16:56; author: nwiger; state: Exp; lines: +80 -61 fixed a bug with mixed-case values, added arrayref capability, more docs added lots of tests, many more to come, this should help bugfinding ---------------------------- revision 1.94 date: 2001/12/13 22:36:00; author: nwiger; state: Exp; lines: +5 -5 fixed another insidious bug w/ keepextras turning 0 val into "" ---------------------------- revision 1.93 date: 2001/12/12 23:32:47; author: nwiger; state: Exp; lines: +27 -10 fixed an insidious bug with $form->submitted that was preventing it from working in edge cases; also added ability to key off alt field ---------------------------- revision 1.92 date: 2001/12/12 22:00:43; author: nwiger; state: Exp; lines: +3 -3 fixed major bug w/ predefined regexps ---------------------------- revision 1.91 date: 2001/12/11 23:49:21; author: nwiger; state: Exp; lines: +40 -33 updated docs and acknowledgements, no code changes ---------------------------- revision 1.90 date: 2001/12/11 23:04:26; author: nwiger; state: Exp; lines: +284 -38 integrated massive patch enabling Template Toolkit c/o Andy Wardley refined several regexps thanks to Mark Belanger fixed numerous bugs, including insidious header problem and 0-stickiness ---------------------------- revision 1.89 date: 2001/11/12 21:53:19; author: nwiger; state: Exp; lines: +34 -2 added docs on multiscreen app ---------------------------- revision 1.88 date: 2001/11/12 21:05:48; author: nwiger; state: Exp; lines: +39 -3 added fieldtype and fieldattr, very useful options ---------------------------- revision 1.87 date: 2001/11/10 00:17:29; author: nwiger; state: Exp; lines: +93 -13 *interim checkin* many docs improvements, made _ismember case-insesitive NOTE: this release changed name of submit buttons from _submit to submit! ---------------------------- revision 1.86 date: 2001/11/09 01:31:37; author: nwiger; state: Exp; lines: +29 -7 fixed several bugs, and added new regex patterns thanks to Mark Belanger ---------------------------- revision 1.85 date: 2001/11/07 23:43:02; author: nwiger; state: Exp; lines: +35 -40 fixed a bug where field(value => $x) was not working for sticky values also fixed a problem where header => 0 was removing too much useful stuff also added a feature where single-option fields are checkboxes, otherwise you can't unselect them properly ---------------------------- revision 1.84 date: 2001/10/29 18:57:30; author: nwiger; state: Exp; lines: +5 -5 Mark Belanger pointed out that the STATE validation list was somehow missing Illinois (IL). Ooops. ---------------------------- revision 1.83 date: 2001/10/16 00:18:12; author: nwiger; state: Exp; lines: +34 -6 added new jsclick option ---------------------------- revision 1.82 date: 2001/10/15 23:53:19; author: nwiger; state: Exp; lines: +4 -3 I should really test these more thoroughly before checking them in ---------------------------- revision 1.81 date: 2001/10/15 23:52:15; author: nwiger; state: Exp; lines: +23 -15 fixed bug with single-value radio boxes, removing radionum opt ---------------------------- revision 1.80 date: 2001/10/15 23:42:41; author: nwiger; state: Exp; lines: +3 -3 fixed typo - eek! ---------------------------- revision 1.79 date: 2001/10/15 23:41:37; author: nwiger; state: Exp; lines: +8 -7 fixed bug with _sessionid introduced in last revision, fixed spurious 'numeric ge' warnings lines 351 and 153 ---------------------------- revision 1.78 date: 2001/10/15 20:40:01; author: nwiger; state: Exp; lines: +3 -3 POD fubar ---------------------------- revision 1.77 date: 2001/10/15 20:39:08; author: nwiger; state: Exp; lines: +3 -3 added ! /^_/ catch to keepextras option and fixed syntax error ---------------------------- revision 1.76 date: 2001/10/15 18:21:28; author: nwiger; state: Exp; lines: +51 -20 fixed bug in _special_fields being re-passed, added name opt to the _submitted key so that $form->submitted is more accurate ---------------------------- revision 1.75 date: 2001/10/10 21:56:21; author: nwiger; state: Exp; lines: +5 -4 added better sticky catch ---------------------------- revision 1.74 date: 2001/10/10 20:25:03; author: nwiger; state: Exp; lines: +58 -50 ok, *this* time I think all the bugs have been worked out with taking both sets of options to new() and render() ---------------------------- revision 1.73 date: 2001/10/10 20:13:35; author: nwiger; state: Exp; lines: +26 -19 had to move params option to new() - only ---------------------------- revision 1.72 date: 2001/10/10 20:00:23; author: nwiger; state: Exp; lines: +5 -2 finally fixed sticky attr (maybe...) ---------------------------- revision 1.71 date: 2001/10/09 23:53:48; author: nwiger; state: Exp; lines: +9 -7 additions to @OURATTR, fixed extra opts problem with
---------------------------- revision 1.70 date: 2001/10/09 23:27:50; author: nwiger; state: Exp; lines: +34 -9 updated and corrected docs ---------------------------- revision 1.69 date: 2001/10/09 20:33:48; author: nwiger; state: Exp; lines: +7 -6 fixed bad $method, added safety for {labels}, header now defaults to 0! ---------------------------- revision 1.68 date: 2001/10/09 18:58:46; author: nwiger; state: Exp; lines: +532 -492 massive option revamp (all live in render() now) and doc reordering ---------------------------- revision 1.67 date: 2001/10/02 23:15:54; author: nwiger; state: Exp; lines: +3 -7 fixed bug with new implementation of $hashref = $form->field; ---------------------------- revision 1.66 date: 2001/10/02 22:54:50; author: nwiger; state: Exp; lines: +13 -3 changed form->field in scalar context ---------------------------- revision 1.65 date: 2001/09/19 18:26:08; author: nwiger; state: Exp; lines: +57 -33 updated docs, fixed the sticky option so it actually works ---------------------------- revision 1.64 date: 2001/09/19 00:10:40; author: nwiger; state: Exp; lines: +61 -21 fixed several JavaScript bugs with respect to checkboxes and radios added more docs, improved look of JavaScript code that was generated, now properly handle multiple select lists in client side JavaScript ---------------------------- revision 1.63 date: 2001/09/18 22:46:18; author: nwiger; state: Exp; lines: +14 -8 fixed a bug (behavior?) with a values => HASH call to render() overwriting field values that had been manually set via field() ---------------------------- revision 1.62 date: 2001/09/14 20:52:34; author: nwiger; state: Exp; lines: +12 -7 changed semantics of hidden fields in a non-static mode, and also added code to properly handle onChange attr to