done
Howard Lewis Ship wrote:
>
> I think we need a new class, ErrorResponse, that can be returned as a
> way to invoke response.sendError(). The StreamResponse handler wants
> to send a stream of content, which causes problems because after
> sendError() the response is committed (meaning you
I think we need a new class, ErrorResponse, that can be returned as a
way to invoke response.sendError(). The StreamResponse handler wants
to send a stream of content, which causes problems because after
sendError() the response is committed (meaning you can't legally
obtain an output stream or pr
i think its not your or a tapestry problem.
jetty gives tapestry a closed http connection
if you set a response error
i dont know, if this a special jetty behavior.
i think it should cool, if howard consider this behavior in
StreamResponseResultProcessor.processComponentEvent
osamuo wrote:
>
not possible since 5.0.7
signature of ComponentEventResultProcessor was changed
Yoshikazu Kuramochi wrote:
>
> I am doing as follows.
>
>
> public class ErrorResponse {
>
> private int _statusCode;
> private String _message;
>
> public Err
I am doing as follows.
public class ErrorResponse {
private int _statusCode;
private String _message;
public ErrorResponse(int statusCode, String message) {
super();
_statusCode = statusCode;
_message = message;
}
Thank you for your advice.
But I still get an exception.
Sven Homburg wrote:
>
> i have never tested it, its only an idea:
>
> Test.java:
>
> public class Test{
> @Inject
> private Response response;
>
> StreamResponse onActivate( Object[] parameter
i have never tested it, its only an idea:
Test.java:
public class Test{
@Inject
private Response response;
StreamResponse onActivate( Object[] parameters ) throws IOException{
TextStreamResponse textStream = null;
if( parameters == null ||
Hi,
How can I tell T5 to send an 404 error?
Is the following code right way to show 404 error page on T5?
Because I got an error after calling "sendError()" in the code.
Test.java:
public class Test{
@Inject
private Response response;
void onActivate