Hello again.

Not sure if this is a bug, but I can't get AxKit2 to use base classes
in XSP documents, via the base-class attribute of the xsp:page root
element. Whenever I try to add a perl module that contains only an
empty handler subroutine, I get the following error:

The following error occurred: base-class used but cannot find a
handler() method in the My::Page class. Did you remember to add
PerlModule My::Page to httpd.conf? at lib/AxKit2/Transformer/XSP.pm
line 553.

Looking into XSP.pm, the error is caused by
$attribs{'base-class'}->can("handler") returning false, even though a
handler() method exist (a call to My::Page->can('handler') returns
true inside the XSP document) and even though $attribs{'base-class'}
has the correct value. Is there perhaps an AxKit2 equivalent of
PerlModule I have missed?

Martijn.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to