You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2005/11/13 17:29:20 UTC
[ANNOUNCE] Tapestry 4.0-beta-13
The latest beta release of the Tapestry 4.0 is now available. Tapestry
is a component based web application framework that provides lots of
functionality with minimal Java coding, and creates an environment
that supports high levels of reuse. This release fixed problems with
client-side JavaScript for several components. 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.
Tapestry is provided as a combined binary/source distribution, and a
separate documentation distribution.
Download Tapestry from
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org
Re: [ANNOUNCE] Tapestry 4.0-beta-13
Posted by Howard Lewis Ship <hl...@gmail.com>.
@InjectObject("engine-service:restart")
public abstract IEngineService getRestartService();
public ILink restartSession()
{
return getRestartService.getLink(false, null);
}
On 11/14/05, Alan Chandler <al...@chandlerfamily.org.uk> wrote:
> 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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: [ANNOUNCE] Tapestry 4.0-beta-13
Posted by Alan Chandler <al...@chandlerfamily.org.uk>.
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org