I have a requirement to update the properties file based upon the input provided by the user in the jsf page. After updating the file, user session should be cleared and alert box should say ‘setting has been updated’ and the page should navigate to the login page.
I don’t know how to call a alert box from java code. I found this to be possible in asp.net. I searched google, but didn’t get any possible solution
How can I make this possible?
All possible solutions are welcome. Thanks in advance.
UPDATE
@balusc thanks for your pointer. I am using JSF RI 1.2 and Richfaces 3.3.2
I managed to solve this problem by using ‘oncomplete’ attribute in a4j commandbutton. ‘oncomplete’ attribute is used to call javascript function after the server side process is completed.
After completing the server side process, I called a javascript function which called an alert box and using
I navigated to the login page.
Any suggestions regarding this solution is welcome.
Thanks every one for the answers and comments.