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/01/26 00:18:19 UTC
Tap 3 getPage problem.
Hi, I'm still using Tapestry 3 and am running into something strange
when calling the getPage() method on the IRequestCycle object. In the
current application I'm working on the user logs in and is then
forwarded to another page via cycle.activate(somePage). I've done this
for 3 other sites and it works no problem with those, but in the current
project I'm getting an error when the page is being retrieved. It's as
if Tapestry can't find the page and I've checked and the .page file is
there.
What am I missing?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tap 3 getPage problem.
Posted by Leo Sakhvoruk <le...@gmail.com>.
Yeap, tried that. Actually traced it to the getPage method and it seems
to be dieing inside the PageSource class when it tries to call loadPage
on the PageLoader class.
Patrick Casey wrote:
> Did you try (for debugging if nothing else):
>
> IPage page = cycle.getPage("foo");
> if (page != null)
> cycle.activate(page);
> else
> Log.error("Strange things are afoot at the circle K");
>
> --- Pat
>
>
>
>>-----Original Message-----
>>From: Leo Sakhvoruk [mailto:leo.sakhvoruk@gmail.com]
>>Sent: Wednesday, January 25, 2006 3:18 PM
>>To: Tapestry users
>>Subject: Tap 3 getPage problem.
>>
>>Hi, I'm still using Tapestry 3 and am running into something strange
>>when calling the getPage() method on the IRequestCycle object. In the
>>current application I'm working on the user logs in and is then
>>forwarded to another page via cycle.activate(somePage). I've done this
>>for 3 other sites and it works no problem with those, but in the current
>>project I'm getting an error when the page is being retrieved. It's as
>>if Tapestry can't find the page and I've checked and the .page file is
>>there.
>>
>>What am I missing?
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
RE: Tap 3 getPage problem.
Posted by Patrick Casey <pa...@adelphia.net>.
Did you try (for debugging if nothing else):
IPage page = cycle.getPage("foo");
if (page != null)
cycle.activate(page);
else
Log.error("Strange things are afoot at the circle K");
--- Pat
> -----Original Message-----
> From: Leo Sakhvoruk [mailto:leo.sakhvoruk@gmail.com]
> Sent: Wednesday, January 25, 2006 3:18 PM
> To: Tapestry users
> Subject: Tap 3 getPage problem.
>
> Hi, I'm still using Tapestry 3 and am running into something strange
> when calling the getPage() method on the IRequestCycle object. In the
> current application I'm working on the user logs in and is then
> forwarded to another page via cycle.activate(somePage). I've done this
> for 3 other sites and it works no problem with those, but in the current
> project I'm getting an error when the page is being retrieved. It's as
> if Tapestry can't find the page and I've checked and the .page file is
> there.
>
> What am I missing?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org