Re: throw new PageRedirectException

2010-09-23 Thread Martin Strand
On Thu, 23 Sep 2010 04:43:28 +0200, asianCoolz wrote: IEngineService pageService = getPageService(); String pageName = "NextTapestryPage"; ILink link = pageService.getLink(false, pageName); throw new RedirectException(link.getAbsoluteURL()); if page is IPage, and i set parameter

Re: throw new PageRedirectException

2010-09-22 Thread asianCoolz
IEngineService pageService = getPageService(); >String pageName = "NextTapestryPage"; >ILink link = pageService.getLink(false, pageName); >throw new RedirectException(link.getAbsoluteURL()); if page is IPage, and i set parameter to the page.setExtraParameter(abc); how to get absoluteu

Re: throw new PageRedirectException

2010-09-22 Thread Martin Strand
throw new RedirectException(link.getAbsoluteURL()); } You also need to inject the page service in your page/component class: @InjectObject("engine-service:page") public abstract IEngineService getPageService(); On Wed, 22 Sep 2010 12:00:10 +0200, asianCoolz wrote: with throw new P

Re: throw new PageRedirectException

2010-09-22 Thread Katia Aresti Gonzalez
http://tapestry.apache.org/tapestry5/guide/pagenav.html 2010/9/22 asianCoolz > with throw new PageRedirectException("NextTapestryPage"); , i was redicectd > to > another page, but the url on the browser address bar is not change. is > there > any method i can ca

throw new PageRedirectException

2010-09-22 Thread asianCoolz
with throw new PageRedirectException("NextTapestryPage"); , i was redicectd to another page, but the url on the browser address bar is not change. is there any method i can call "forward", so that use '