[Catalyst] Catalyst::Plugin::HTML::Widget contraint problem

Alan Humphrey alanhumphrey at hotmail.com
Wed Jan 18 00:59:37 CET 2006

I’m 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 

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: 
/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::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 
line 88


I can send along the rest of the stack trace, but this seemed to be the 
relevant bit.

Note that it’s trying to load an empty constraint name.

I tried naming the widget but got the same result:

email address');

Removing the message likewise had the same result.

Any ideas?  Bug?

- Alan

More information about the Catalyst mailing list