From:
Martijn <sweetwatergeek [at] googlemail.com>
Date:
Wed, 25 Jun 2008 13:07:26 +0100
To:
axkit-users [at] axkit.org
Subject:
Re: ax2: base-class in XSP documents fails
On Tue, Jun 17, 2008 at 4:39 PM, Matt Sergeant wrote:
> Fixed in SVN (I think).
I still get an error when I use My::BaseClass::SubClass as a
base-class, which inherits the handler method from My::BaseClass.
Which makes sense: in _load_module() only My::BaseClass::SubClass is
added to %INC; hence My::BaseClass::SubClass->can('handler') returns
false. Indeed, if I visit another page, that uses My::BaseClass as its
base-class, then it is added to %INC and any the error won't appear on
subsequent visits to the original page. Until, of course, the
AxKit-server is started again.
I easily fixed this by adding the line
require My::BaseClass;
to My::BaseClass::SubClass, but I thought I'd share this anyway to
save others from half an hour of digging through Perl code. :-)
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