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
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.
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()?
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.
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
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
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
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?
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.
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
.org/schema/security
http://www.springframework.org/schema/security/spring-security.xsd";>
Cheers
Cimlman
______
> Od: Jaroslav Ciml
> Komu: Tapes
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
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
.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!
>
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
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
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
17 matches
Mail list logo