From:
Martijn <sweetwatergeek [at] googlemail.com>
Date:
Fri, 6 Jun 2008 15:48:59 +0100
To:
axkit-users [at] axkit.org
Subject:
ax2: base-class in XSP documents fails
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.
Re: base-class in XSP documents fails - Martijn on 6 Jun 2008 14:50:01 +0000
Re: base-class in XSP documents fails - Matt Sergeant on 17 Jun 2008 15:40:57 +0000
Re: base-class in XSP documents fails - Martijn on 25 Jun 2008 12:08:28 +0000
Re: base-class in XSP documents fails - Matt Sergeant on 25 Jun 2008 12:51:12 +0000
Re: base-class in XSP documents fails - Martijn on 25 Jun 2008 13:19:17 +0000
Re: base-class in XSP documents fails - Martijn on 25 Jun 2008 13:28:47 +0000
Re: base-class in XSP documents fails - Matt Sergeant on 25 Jun 2008 15:57:35 +0000
Back up to archives |
These pages are copyright © 2002 Apache Software Foundation


Index