Still trying to get my problems with page loaders firing like crazy in JSF>
From this link: http://www.javabeat.net/tips/122-jsf-best-practices.html
It appears that if I put a that it will fire once when entering the page.
However, it fires like 4 times when LEAVING the page, kin开发者_如何转开发d of defeats the point. Any ideas?
It "fires" whenever the phase changes. You can make your code in the phase listener be triggered only on certain phases, by adding a condition comparing event.getPhaseId()
with PhaseId.RESTORE_VIEW
, for example.
精彩评论