Disable button and show loading image while processing JSF
问题 I have this module in my webapp where i need to update come catalogs. The idea is to disable the h:commandButton and show a h:graphicImage , both actions are supposed to happen right after the button was clicked. Finally, when the update process has ended it should do the other way, hide the h:graphicImage , enable the h:commandButton but this time also show a label h:outputText that says either 'Update Success' or 'Update Failure'. The problem in my code is that the image and the label