a4j:support oncomplete="xyz()" - Two phase data loading problem
posted 7 years ago
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?