[
https://issues.apache.org/jira/browse/MYFACES-4562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17688358#comment-17688358
]
Thomas Andraschko commented on MYFACES-4562:
--------------------------------------------
currently its only destroyed when the max size is reached, yes (same like DS
WindowScoped)
in future we could enhance it to add a option like ViewAccessScoped
> ClientWindowScoped Not Destroyed / Lifecycle Clarification
> ----------------------------------------------------------
>
> Key: MYFACES-4562
> URL: https://issues.apache.org/jira/browse/MYFACES-4562
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 4.0.0-RC4
> Reporter: Volodymyr Siedlecki
> Priority: Major
>
> My understanding of ClientWindowScoped comes from BalusC's explanation here:
> [https://balusc.omnifaces.org/2021/11/whats-new-in-faces-40.html#ClientWindowScoped]
> In summary, the ClientWindowScoped bean is created when the jfwid is created
> and "lives as long as this parameter is reused while navigating across the
> pages via Faces link components."
> My question is: under what conditions should these scoped beans be destroyed
> then? My testing shows the URL is always appended with jfwid. The only time
> I see the beans destroyed is once the 10 clientWindow max limit is reached.
> Should they also be destroyed once a redirect occurs? What about when
> disableClientWindow is used?
> {code:java}
> <h:link value="Disable client window" outcome="endClientWindowScoped"
> disableClientWindow="true"/>
> {code}
> My testing used the @PostConstruct / @PreDestroy annotation to verify the
> creation / destruction of the beans. Any help is appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)