Petter Måhlén <petter.mahlen <at> jadestone.se> writes:
> > Btw. If you use Eclipse, have you tried Sysdeo plugin? It
> > allows you to
> > run webapps in Tomcat directly from within code compiled in Eclipse.
And JBossIDE does the same thing for JBoss in Eclipse! Details are on
JumpStart
Tips page.
> alternatives. Since I didn't understand how to use the PageService, maybe
> you could show some sample code for how to use the PageService when you want
> to go from a page name to an absolute URL?
This seems to do the trick - returning ILink is the trigger for Tapestry to do
redirect-after-post...
@InjectObject("engine-service:page")
public abstract IEngineService getPageService();
<snip>
public ILink doLogin() {
validate();
if (hasErrors()) {
return null;
}
<snip>
ILink redirectTo = getPageService().getLink(false,
WelcomePage.PAGE_NAME);
return redirectTo;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]