[Catalyst] Catalyst::Plugin::HTML::Widget contraint problem
Alan Humphrey
alanhumphrey at hotmail.com
Wed Jan 18 00:59:37 CET 2006
Im trying to use Catalyst::Plugin::HTML::Widget for data validation. Just
to try things out I have this in my controller:
$c->widget->constraint->('Email','identification')->message('bad email
address');
When that line is executed I get the following:
[Tue Jan 17 15:52:59 2006] [catalyst] [error] Caught exception "Couldn't to
load class "HTML::Widget::Constraint::", "Can't locate
HTML/Widget/Constraint/.pm in @INC (@INC contains:
/home/alanh/birdweb/trunk/BirdWeb-Admin/script/../lib
usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi
/usr/pkg/lib/perl5/site_perl/5.8.0
/usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi
/usr/pkg/lib/perl5/vendor_perl/5.8.0
/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi /usr/pkg/lib/perl5/5.8.0
.) at (eval 396) line 3 . at (eval 396) line 3
eval 'require HTML::Widget::Constraint::;' called at
/usr/pkg/lib/perl5/site_perl/5.8.0/HTML/Widget.pm line 418
HTML::Widget::_instantiate('HTML::Widget=HASH(0x99c0240)',
'HTML::Widget::Constraint::', 'HASH(0x99c05b8)') called at
usr/pkg/lib/perl5/site_perl/5.8.0/HTML/Widget.pm line 199
HTML::Widget::constraint('HTML::Widget=HASH(0x99c0240)') called at
/home/alanh/birdweb/trunk/BirdWeb-Admin/script/../lib/BirdWeb/Admin/C/Birds.pm
line 88
<snip>
I can send along the rest of the stack trace, but this seemed to be the
relevant bit.
Note that its trying to load an empty constraint name.
I tried naming the widget but got the same result:
$c->widget(foo)->constraint->('Email','identification')->message('bad
email address');
Removing the message likewise had the same result.
Any ideas? Bug?
- Alan
More information about the Catalyst
mailing list