开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜