On Sunday 13 Nov 2005 16:29, Howard Lewis Ship wrote:
> The latest beta release of the Tapestry 4.0 is now available.
...
> The request cycle
> object is now an injectable service, and the signatures of several
> methods in several interfaces were changed to remove it. In addition,
> a new facility was added that allows services to report their internal
> state as part of the default Exception page. A full listing of bug
> fixes is available in the change log.
I am using something which now doesn't compile because of this based on code
given in the Wiki for logging out. In particular constructLink now has a
parameter of IEngineService as its first paramter rather than the request
cycle.
How do I get this IEngineService to use in this case?
public void restartSession(IRequestCycle cycle) {
// need to destroy the session and return to the home page via
restart
Map params = new HashMap();
params.put(ServiceConstants.SERVICE, Tapestry.RESTART_SERVICE);
ILink link = getLinkFactory().constructLink(cycle, false, params,
true);
String restartUrl = link.getAbsoluteURL();
throw new RedirectException(restartUrl);
}
--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]