Re: StreamResponse an EventLink

2013-10-17 Thread Jaroslav Ciml
very much for your help. Cheers Cimlman __ > Od: Lance Java > Komu: Tapestry users > Datum: 16.10.2013 19:23 > Předmět: Re: StreamResponse an EventLink > >Oops, I meant to print out the HttpServletResponse clas

Re: StreamResponse an EventLink

2013-10-16 Thread Lance Java
Oops, I meant to print out the HttpServletResponse class. Once you know the response class, you'll need to put in some breakpoints to find out why isComitted() is not true. A response should be committed as soon as it's outputstream / writer is first written to or it is redirected.

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Cimlman __ > Od: Lance Java > Komu: Tapestry users > Datum: 16.10.2013 16:03 > Předmět: Re: StreamResponse an EventLink > >Can you @Inject RequestGlobals and log >RequestGlobals.getHttpServletRequest().getClass()?

Re: StreamResponse an EventLink

2013-10-16 Thread Lance Java
Can you @Inject RequestGlobals and log RequestGlobals.getHttpServletRequest().getClass()? I'm thinking that one of the spring filters is wrapping the request in an faulty implementation. I'm starting to point the finger at RequestCacheAwareFilter.

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
6.10.2013 15:13 > Předmět: Re: StreamResponse an EventLink > >Sorry, I missed your post where you'd isolated the problem to spring >security. I get the feeling that spring security is somehow introducing the >exact same bug as GAE. > >Can you try adding the filter from t

Re: StreamResponse an EventLink

2013-10-16 Thread Lance Java
Sorry, I missed your post where you'd isolated the problem to spring security. I get the feeling that spring security is somehow introducing the exact same bug as GAE. Can you try adding the filter from the GAE fix to your module? I have a hunch that it will fix this your issue too. http://tinyur

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Od: Lance Java > Komu: Tapestry users > Datum: 16.10.2013 14:35 > Předmět: Re: StreamResponse an EventLink > >I notice there's a whole lotta spring security stuff in your stack trace >before it gets to the TapestryFilter. Can you try removing spring security >from the mix

Re: StreamResponse an EventLink

2013-10-16 Thread Lance Java
I notice there's a whole lotta spring security stuff in your stack trace before it gets to the TapestryFilter. Can you try removing spring security from the mix to try to isolate the problem?

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Java > Komu: Tapestry users > Datum: 16.10.2013 13:06 > Předmět: Re: StreamResponse an EventLink > >Are you using GAE? You might be hitting this: >http://code.google.com/p/googleappengine/issues/detail?id=8201 >http://apache-tapestry-mailing-list-archives.1045711.n5.

Re: StreamResponse an EventLink

2013-10-16 Thread Lance Java
Are you using GAE? You might be hitting this: http://code.google.com/p/googleappengine/issues/detail?id=8201 http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/T5-and-AppEngine-1-7-3-dev-server-IllegalStateException-td5717683.html Fix here: https://bitbucket.org/akochnev/tap5-gae-u

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd";> Cheers Cimlman ______ > Od: Jaroslav Ciml > Komu: Tapes

Re: StreamResponse an EventLink

2013-09-27 Thread Jaroslav Ciml
Komu: Tapestry users > Datum: 26.09.2013 18:43 > Předmět: Re: StreamResponse an EventLink > >On Thu, 26 Sep 2013 11:35:57 -0300, Jaroslav Ciml wrote: > >> Hi, > >Hi! > >> I am using Tapestry version 5.3.6. > >I tested it on 5.4-alpha-22. > >> This exce

Re: StreamResponse an EventLink

2013-09-26 Thread Thiago H de Paula Figueiredo
On Thu, 26 Sep 2013 11:35:57 -0300, Jaroslav Ciml wrote: Hi, Hi! I am using Tapestry version 5.3.6. I tested it on 5.4-alpha-22. This exception is thrown if I return a StreamResponse instance from an event link handler (i.e. the request URL contains something like :eventname). Everyt

Re: StreamResponse an EventLink

2013-09-26 Thread Jaroslav Ciml
.run(QueuedThreadPool.java:582) __ > Od: Thiago H de Paula Figueiredo > Komu: Tapestry users > Datum: 26.09.2013 14:42 > Předmět: Re: StreamResponse an EventLink > >On Thu, 26 Sep 2013 07:43:44 -0300, Jaroslav Ciml wrote: > >> Hi, > >Hi! >

Re: StreamResponse an EventLink

2013-09-26 Thread Thiago H de Paula Figueiredo
On Thu, 26 Sep 2013 07:43:44 -0300, Jaroslav Ciml wrote: Hi, Hi! ${message:exportToCsv} @OnEvent("exportToCsv") StreamResponse exportToCsv() { return new TextStreamResponse("text/plain", "Just a test!"); } It works for me. If I click the event link, I get the exception "Sani

Re: StreamResponse an EventLink

2013-09-26 Thread Thiago H de Paula Figueiredo
On Thu, 26 Sep 2013 07:43:44 -0300, Jaroslav Ciml wrote: Hi, Hi! Is returning an StreamResponse instance from EventLink handler a good practice? Yep! Why not? :) When that StreamResponse is only used inside a page or component, it makes sense for its event handler to be there. On the

StreamResponse an EventLink

2013-09-26 Thread Jaroslav Ciml
Hi, Is returning an StreamResponse instance from EventLink handler a good practice? I have the following link in the template file. ${message:exportToCsv} And the following method handles the event in java file. @OnEvent("exportToCsv") StreamResponse exportToCsv() { return new TextSt