[ 
http://issues.apache.org/jira/browse/WICKET-175?page=comments#action_12459709 ] 
            
Martijn Dashorst commented on WICKET-175:
-----------------------------------------

Why attach the page? no need to do that... Just call detach on the page and 
process all children.

I sure as hell don't want to start attaching models for the sake of detaching 
them directly afterwards.

> Page.onDetach is called by each ComponentResourceRequestTarget
> --------------------------------------------------------------
>
>                 Key: WICKET-175
>                 URL: http://issues.apache.org/jira/browse/WICKET-175
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 2.0, 1.3
>            Reporter: Alastair Maw
>
> ComponentResourceRequestTarget#detach(RequestCycle) calls 
> page#internalDetach()
> This results in Page#onDetach() being called as many times as there are 
> images or whatever on your page, which seems entirely wrong. Mentioned this 
> to ivaynberg on IRC and he said: "we should have theadlocal guards".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to