List Info

Thread: ax2: base-class in XSP documents fails




ax2: base-class in XSP documents fails
user name
2008-06-06 09:48:59
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: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )