You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <ap...@net22.de> on 2008/04/18 12:57:55 UTC
[4.1.5] IExternalPage not implemented?
I get the error message:
Page /booking/Details does not implement the
org.apache.tapestry.IExternalPage interface.
The root cause is:
java.lang.ClassCastException: $BasePage_0 cannot be cast to
org.apache.tapestry.IExternalPage
(BasePage is a superclass of BaseBookingPage)
Although my class definition looks like this:
public abstract class Details
extends BaseBookingPage
implements PageBeginRenderListener, IExternalPage {
...
public void activateExternalPage(
Object[] args, IRequestCycle cycle){
setAccommodationId((Long) args[0]);
}
}
That's the link that I am trying to use in order to activate the exernal
page:
<a href="#"
jwcid="@ExternalLink"
page="/booking/Details"
parameters="ognl:{accommodation.id}">
I restarted the server, cleaned working directories, rebuidl the app
from scratch, but still...
Does anybody have a clue what's going on here?
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [4.1.5] IExternalPage not implemented?
Posted by Andy Pahne <ap...@net22.de>.
Issue solved.
After creatuing a page specification and specifiying the class to be
used, it works.
But it's really strange, because the correct class has been found for
quite a long time without the specification, just by following the
conventions...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [4.1.5] IExternalPage not implemented?
Posted by Andy Pahne <ap...@net22.de>.
It feels like the default page class is used, which I have defined like
that:
<meta key="org.apache.tapestry.default-page-class"
value="de.net22.oos.web.pages.OosBasePage"/>
Well, it should not be used.
Actually, before I changed the page class to implement IExternalPage,
the correct page class has been found correctly. It's not working
anymore since that little change...
A.
Andy Pahne schrieb:
>
> I get the error message:
>
> Page /booking/Details does not implement the
> org.apache.tapestry.IExternalPage interface.
>
> The root cause is:
> java.lang.ClassCastException: $BasePage_0 cannot be cast to
> org.apache.tapestry.IExternalPage
>
> (BasePage is a superclass of BaseBookingPage)
>
>
> Although my class definition looks like this:
>
> public abstract class Details
> extends BaseBookingPage
> implements PageBeginRenderListener, IExternalPage {
>
> ...
>
> public void activateExternalPage(
> Object[] args, IRequestCycle cycle){
>
> setAccommodationId((Long) args[0]);
>
> }
>
> }
>
>
>
> That's the link that I am trying to use in order to activate the exernal
> page:
>
> <a href="#"
> jwcid="@ExternalLink"
> page="/booking/Details"
> parameters="ognl:{accommodation.id}">
>
>
> I restarted the server, cleaned working directories, rebuidl the app
> from scratch, but still...
>
> Does anybody have a clue what's going on here?
>
>
> Andy
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org