You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/07 22:44:39 UTC

[jira] [Resolved] (WICKET-4271) Remove 'final' keyword from method AbstractResource#respond

     [ https://issues.apache.org/jira/browse/WICKET-4271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Ertl resolved WICKET-4271.
--------------------------------

    Resolution: Fixed
    
> 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
>            Reporter: Hauke Rabe
>            Assignee: Peter Ertl
>             Fix For: 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