[
https://issues.apache.org/jira/browse/WICKET-4271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182108#comment-13182108
]
Peter Ertl commented on WICKET-4271:
------------------------------------
also removed in wicket-1.5 at trunk
> Remove 'final' keyword from method AbstractResource#respond
> -----------------------------------------------------------
>
> Key: WICKET-4271
> URL: https://issues.apache.org/jira/browse/WICKET-4271
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: Hauke Rabe
> Assignee: Peter Ertl
> Fix For: 1.5.4, 6.0.0
>
>
> I need a transactional layer between the method call
> *newResourceResponse(attributes);* and
> *data.getWriteCallback().writeData(attributes);* cause the ResourceResponse
> holds a transactional reference which can not be closed until the
> *data.getWriteCallback().writeData(attributes);* was called. At this moment
> there is no ability to do such transactional handling.
> For now I have a workaround with a DelegateResource which calls a
> sendReseponse method inside the respond method
> {code}
> public void sendResponse(final ResourceResponse resourceResponse)
> {
> final AbstractResource resource = new AbstractResource()
> {
> @Override
> protected ResourceResponse newResourceResponse(final Attributes
> attributes)
> {
> return resourceResponse;
> }
> };
> resource.respond(attributes);
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira