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 (Updated) (JIRA)" <ji...@apache.org> on 2012/01/07 22:42:39 UTC

[jira] [Updated] (WICKET-4271) Method AbstractResource#respond is final

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

Peter Ertl updated WICKET-4271:
-------------------------------

      Component/s: wicket
    Fix Version/s: 6.0.0
       Issue Type: Improvement  (was: Bug)
    
> Method AbstractResource#respond is final
> ----------------------------------------
>
>                 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