[
https://issues.apache.org/jira/browse/WICKET-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501971#comment-13501971
]
Martin Grigorov commented on WICKET-4867:
-----------------------------------------
Is PageSizeDebugPanel rendered before your feedback panel ?
As discussed in the mail thread any debug panel that uses
WicketObjects.sizeOf() should be placed after other components which do
something meaningful in their #detach(). In the thread LoadableDetachableModel
is used as example but the case is the same.
> Detach the object before calculating its size
> ---------------------------------------------
>
> Key: WICKET-4867
> URL: https://issues.apache.org/jira/browse/WICKET-4867
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.2.0, 1.5.9
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 6.3.0, 1.5.10
>
>
> The debug panel in wicket-devutils uses WicketObjects#sizeOf() to calculate
> the size of the page and the session.
> The "problem" that I see is that it calculates the size of the non-detached
> object. I think what really matters is the size after detaching it, because
> this is what is being saved in the http session and the disk, and I guess
> this is what the developer needs to know actually.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira