On 11/30/2010 10:34 AM, will trillich wrote:
Anybody else *dissing* FormHandler? We've started developing based on
FormHandler lately and haven't had troubles... yet?
On Tue, Nov 30, 2010 at 5:26 AM, Shlomi Fish <[email protected]
<mailto:[email protected]>> wrote:
I can recommend *against* HTML-FormHandler.
For my day job's Perl and Catalyst project, we initially decided
to go with
HTML-FormHandler, only to discover it was buggy, quirky and had
severe memory
leaks. We ended up doing many workarounds and recently made a
transition from
it to HTML-FormFu, which while by no means perfect, is much saner.
My co-worker "nothingmuch" who has done many of the workarounds
can provide
further comments on it. Recently I had to over-ride a role in the
login form
(for which we need to use HTML-FormHandler due to
CatalystX::SimpleLogin) that
will accept an empty string as the 'action=""' attribute because
it only
placed true values of the attribute there, which ruled out empty
strings. But
I recall many other fun hours debugging HTML-FormHandler.
Stay away if you can.
Regards,
Shlomi Fish
FWIW:
HTML::FormHandler has been working with no problems at all for us. The
structure isn't very intuitive to me, so I had some trouble making it do
what I wanted in the beginning. Once I understood the paradigms, all
the troubles I was having dropped away. To mitigate the awkwardness I
felt about the API, use a pure-module approach (every form is a separate
package/module, that inherits from a base form that's all rigged up the
way I want it, along with a few really helpful roles that I drop in on
forms here and there to do common stuff. Those two "tricks" went a long
way towards making HFH intuitive to me; now I can throw together a new
form in 2 minutes and toss in a couple of roles to make it play nicely
with jQuery (and jQuery-UI) and DBIC. Pretty plug-n-play.
All in all, I like it.
-Sir
Note: The above isn't a criticism of HFH; it's just an observation that
the author and I have different approaches to some things =)
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/