Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jafvalidations-ajax problem

 
Naresh Gunda
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a simple jsf example, It has few issues with ajax calls.

When we use <a4j: support> with ajaxSingle="true" only one component is being processed, because of this, values entered in other components are getting erased, as these values are not populated in to the formbean.

When we dont use ajaxSingle="true" immediate="true", the whole form is being submitted and validate methods are being called, for all the fields which are empty, error messages are getting displayed.

Can you please suggest me a solution.
 
Naresh Gunda
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSF with webflow and ajax.
 
Vaibhav Mittal
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use valueChangeListener attribute for <h:selectOneMenu> with immediate="true" and onchange="submit()". This worked for me. Do paste the relevant code too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic