[ 
https://issues.apache.org/jira/browse/WICKET-6334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900139#comment-15900139
 ] 

Martin Grigorov edited comment on WICKET-6334 at 3/7/17 8:55 PM:
-----------------------------------------------------------------

bq.  If we need to keep some information on the session scope level, which is 
"kind" of Model (meaning should be chached/evaluated/detached once per request 
call) approach

For this I would suggest to use RequestCycle's metadata. It will be loaded once 
per request and is reachable from all components. And there is no need to 
actually detach it because it will be GC-ed anyway.


was (Author: mgrigorov):
bq.  If we need to keep some information on the session scope level, which is 
"kind" of Model (meaning should be chached/evaluated/detached once per request 
call) approach

For this I would suggest to use RequestCycle's metadata. It will be loaded once 
per request and is reachable from all components.

> WicketObjects#sizeof() should detach Sessions
> ---------------------------------------------
>
>                 Key: WICKET-6334
>                 URL: https://issues.apache.org/jira/browse/WICKET-6334
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 7.6.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>            Priority: Minor
>
> Report at users@ : http://markmail.org/message/mq5zs2veaj4q4psg
> Wicket should detach the Session before calculating its size as it does for 
> Component and IDetachable.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to