You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leo Sakhvoruk <le...@gmail.com> on 2006/11/14 00:07:03 UTC
Making Home page implement IExternalPage problem.
Hi,
I'm trying to make the Home page in my application implement the
IExternalPage interface and am running into an issue where the public
void activateExternalPage(Object[] parameters, IRequestCycle cycle)
doesn't get called when the Home page loads. Is there a known limitation
where the Home service doesn't allow for the page which uses to
implement the IExternalPage interface?
I'm using Tap-4.1.1-SNAPSHOT.
Thanks,
Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Making Home page implement IExternalPage problem.
Posted by Leo Sakhvoruk <le...@gmail.com>.
Oops,
Color me dorky, I wasn't calling the page using the external service ;)
Good to go!
Leo Sakhvoruk wrote:
> Hi,
>
> I'm trying to make the Home page in my application implement the
> IExternalPage interface and am running into an issue where the public
> void activateExternalPage(Object[] parameters, IRequestCycle cycle)
> doesn't get called when the Home page loads. Is there a known
> limitation where the Home service doesn't allow for the page which
> uses to implement the IExternalPage interface?
>
> I'm using Tap-4.1.1-SNAPSHOT.
>
> Thanks,
>
> Leo
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Making Home page implement IExternalPage problem.
Posted by Martin Strand <do...@gmail.com>.
activateExternalPage(...) won't be invoked unless the ExternalService is
used to access the page.
Which service is used for a certain url depends on which ServiceEncoders
are in use. If you're using the standard "friendly urls" ServiceEncoders,
the correct url would be:
http://localhost:8080/your-site/external.svc?page=Home
or with params:
http://localhost:8080/your-site/external.svc?page=Home&sp=xxxxx&sp=yyyyy
You can configure your ServiceEncoders any way you want so that all urls
look just like you want them to. There's a good example on the bottom of
this page:
http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html
Martin
On Tue, 14 Nov 2006 00:07:03 +0100, Leo Sakhvoruk
<le...@gmail.com> wrote:
> Hi,
>
> I'm trying to make the Home page in my application implement the
> IExternalPage interface and am running into an issue where the public
> void activateExternalPage(Object[] parameters, IRequestCycle cycle)
> doesn't get called when the Home page loads. Is there a known limitation
> where the Home service doesn't allow for the page which uses to
> implement the IExternalPage interface?
>
> I'm using Tap-4.1.1-SNAPSHOT.
>
> Thanks,
>
> Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org