You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Michal Kurtak <mi...@gmail.com> on 2010/08/24 10:33:25 UTC

wicket 1.5 M1 detach called twice

Hi,

I tried to play with wicket 1.5 M1 and found that detach on a page is
called twice:

First call stacktrace:
LinkTestPage(Component).detach() line: 1288	
PageProvider.detach() line: 288	
RenderPageRequestHandler.detach(IRequestCycle) line: 131	
RequestCycle(RequestHandlerStack).detach() line: 237	
RequestCycle.detach() line: 444

Second call stacktrace:
LinkTestPage(Component).detach() line: 1288	
PersistentPageManager$PersitentRequestAdapter(RequestAdapter).commitRequest()
line: 162
PersistentPageManager(AbstractPageManager).commitRequest() line: 98	
PageAccessSynchronizer$1(PageManagerDecorator).commitRequest() line: 68	
PageAccessSynchronizer$1.commitRequest() line: 204	
Application$3.onDetach(RequestCycle) line: 1501	
RequestCycle.detach() line: 452

Don't know if its a bug or a feature.Did I miss anything?

BR,
Michal

Re: wicket 1.5 M1 detach called twice

Posted by Matej Knopp <ma...@inmethod.com>.
It might be called multiple times, it's still better than not calling
it at all. Alternatively we could perhaps add a flag on page to
prevent forwarding detach to components more then once per requests.

-Matej

On Tue, Aug 24, 2010 at 10:33 AM, Michal Kurtak <mi...@gmail.com> wrote:
> Hi,
>
> I tried to play with wicket 1.5 M1 and found that detach on a page is
> called twice:
>
> First call stacktrace:
> LinkTestPage(Component).detach() line: 1288
> PageProvider.detach() line: 288
> RenderPageRequestHandler.detach(IRequestCycle) line: 131
> RequestCycle(RequestHandlerStack).detach() line: 237
> RequestCycle.detach() line: 444
>
> Second call stacktrace:
> LinkTestPage(Component).detach() line: 1288
> PersistentPageManager$PersitentRequestAdapter(RequestAdapter).commitRequest()
> line: 162
> PersistentPageManager(AbstractPageManager).commitRequest() line: 98
> PageAccessSynchronizer$1(PageManagerDecorator).commitRequest() line: 68
> PageAccessSynchronizer$1.commitRequest() line: 204
> Application$3.onDetach(RequestCycle) line: 1501
> RequestCycle.detach() line: 452
>
> Don't know if its a bug or a feature.Did I miss anything?
>
> BR,
> Michal
>