Francois Armand wrote:
[...].
So, I have no idea why the bug is not always here.
But it happens that the problem was that I try to use (tapestry) Request
before the call to requestGlobals.storeRequestResponse(request,
response); was done : I'm in a RequestHandler, and this is done in the
terminator of requesthandler pipeline.
So, I just did :
public static RequestFilter buildSetRequestResponse(final
RequestGlobals requestGlobals) {
return new RequestFilter(){
public boolean service(Request request, Response response,
RequestHandler handler) throws IOException {
requestGlobals.storeRequestResponse(request, response);
return handler.service(request, response);
}
};
}
public static void
contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
@InjectService("setRequestResponse") RequestFilter
setRequestResponse,
.... (other handlers)) {
configuration.add("setRequestResponse", setRequestResponse,
"before:*");
...
}
And now, everything works.
I believe it could need a bugreport, as it seems quite ok to want to use
the Request object (and not only the HttpRequest's one) in RequestHandler.
Hope it's really that, and that is may help other people.
--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org
FederID - http://www.federid.org/
Open Source identities management and federation
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]