Hi,

Is returning an StreamResponse instance from EventLink handler a good practice?

I have the following link in the template file.

<t:eventlink event="exportToCsv">
    ${message:exportToCsv}
</t:eventlink>

And the following method handles the event in java file.

@OnEvent("exportToCsv")
StreamResponse exportToCsv()
{
    return new TextStreamResponse("text/plain", "Just a test!");
}

If I click the event link, I get the exception

"Sanity check - neither a stream response nor a redirect response was generated 
for this action request."

However, this occurs just for a short response. If the response is long enough 
to be split into at least two chunks, everithing is fine.

Thanks for any help.

Cimlman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to