This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a4j:support oncomplete="xyz()" - Two phase data loading problem

Ravi Chilakapati
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there.
I am using JSFv1.2 and A4J.
1. I have a page with a button/links which when clicked makes an AJAX call and introduces new elements into the DOM.
2. Some of these elements are drop downs and text inputs, and they are populated on the client side to reduce network load - for eg. country list.

So the tag looks something like

js_func_loads_values() was previously called on window load. But now, we are forced to call it after making an ajax call.

The problem is that the elements first appear on the screen with blank values, and their values are populated after a while (when js_func_loads_values() finishes). So the user gets an impression that the data is being loaded in two phases/steps. I want to avoid this. Any suggestions?


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic