开发者

JSF f:view beforePhase firing multiple times as I LEAVE the page

开发者 https://www.devze.com 2022-12-27 19:01 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号