Skip to content

Commit

Permalink
#208: document 2.3 changes as to @ViewScoped unload
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauke Scholtz committed Mar 18, 2016
1 parent a5acd43 commit 7b345ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/omnifaces/cdi/ViewScoped.java
Expand Up @@ -52,6 +52,10 @@
* the enduser action of unloading the page and the desired result. If this is undesireable, then better stick to JSF
* 2.2's own view scope annotations and accept the postponed destroy.
* <p>
* Since OmniFaces 2.3, the unload has been further improved to also physically remove the associated JSF view state
* from JSF implementation's internal LRU map in case of server side state saving, hereby further decreasing the risk
* at <code>ViewExpiredException</code> on the other views which were created/opened earlier.
* <p>
* In a nutshell: if you're on JSF 2.0/2.1, and you can't upgrade to JSF 2.2, and you want the
* <code>&#64;PreDestroy</code> to be invoked on sesison expire too, then use OmniFaces 1.6+ with this view scope
* annotation. Or, if you're on JSF 2.2 already, and you want the <code>&#64;PreDestroy</code> to be invoked on browser
Expand Down

0 comments on commit 7b345ef

Please sign in to comment.