I need to call a method in backing bean while the page loads. I achieved it using
<f:event listener="#{managedBean.onLoad}" type="preRenderView">
But whenever an ajax request is made in the page, that method get invoked again. I don't need it in my requirement. How to avoid that method call in ajax request?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…