Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Postback on Ajax render on JSF 2.0

843844Jun 30 2009 — edited Jul 3 2009
Hallo 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2009
Added on Jun 30 2009
3 comments
507 views