Postback on Ajax render on JSF 2.0
843844Jun 30 2009 — edited Jul 3 2009Hallo everyone,
I have a .xhtml page divided in several h:form and I am trying to use the Ajax feature to refresh just some part of the page following user clicks without navigation in other pages.
The problem is that for example the first click on a button in one of these forms is not recognized as a Postback so the 2-5 Phases are skipped (I logged the LifeCycle).
The second click on that form then works well. BUT it will need two clicks on another form to have again a Postback.
I am having this problem both using f:ajax tag either jsf.ajax.request script.
Do I have to use a huge h:form containing all my elements? Or can I have force a postback trough a PhaseListener? How?
Please help,
Christian