• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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?


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!