You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yaneric Roussel <yr...@yahoo.ca> on 2003/12/01 18:27:23 UTC

Re: PageRedirect and error messages

Before sending your PageRedirectionException, you can do something like:


ErrorPage page = (ErrorPage) cycle.getPage("ErrorPage");
page.setSomethingHere("FromPage");
throw new PageRedirectException(page);


This way, ErrorPage can know something about the page that send the 
PageRedirectException.

Yaneric


Andrés José Rodríguez Carrasco wrote:
> Hi!, is there any for a page to know if it's being accessed directly or through
> a PageRedirection exception?, I would like to show a message when that happens,
> but I'm not sure about how to do It.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: PageRedirect and error messages

Posted by Andrés José Rodríguez Carrasco <an...@telefonica.net>.
Thanks!, I finally decided to do that, but i thought that maybe the
framework provided some way to do this...

On Mon, 01 Dec 2003 12:27:23 -0500
Yaneric Roussel <yr...@yahoo.ca> wrote:

> 
> Before sending your PageRedirectionException, you can do something like:
> 
> 
> ErrorPage page = (ErrorPage) cycle.getPage("ErrorPage");
> page.setSomethingHere("FromPage");
> throw new PageRedirectException(page);
> 
> 
> This way, ErrorPage can know something about the page that send the 
> PageRedirectException.
> 
> Yaneric


-- 
Andrés José Rodríguez Carrasco

"What I have in my head 
you can't buy, steal or borrow"

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: PageRedirect and error messages

Posted by Andrés José Rodríguez Carrasco <an...@um.es>.
On Mon, 01 Dec 2003 12:27:23 -0500
Yaneric Roussel <yr...@yahoo.ca> wrote:

> 
> Before sending your PageRedirectionException, you can do something like:
> 
> 
> ErrorPage page = (ErrorPage) cycle.getPage("ErrorPage");
> page.setSomethingHere("FromPage");
> throw new PageRedirectException(page);
> 
> 
> This way, ErrorPage can know something about the page that send the 
> PageRedirectException.
> 
> Yaneric


Thanks!, I finally decided to do that, but i thought that maybe the
framework provided some way to do this...

-- 
Andrés José Rodríguez Carrasco

"What I have in my head 
you can't buy, steal or borrow"

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org