Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to refresh the page whenever browser is refreshed in Oracle ADF

User_OWAIZJul 16 2021

Hi Team my use case is:
I have simple form. I am using outputformatted text to display error messages under the form fields. I have a reset method in the page when user clicks all those error messages are clearing. without clicking reset button if user clicks or perform browser refresh my error messages are not clearing .So if there is any chance to call this reset method in managed bean I can call that method so that messages will be cleared. As this is concern raised by my customer . I have tried using method call activity, Taskflow Initializers/finalizers as they are only calling only once when the page load.I have also tried using javascript function by server and client listener components in ADF. But that is not working in my case because I have bounded Taskflow in that I have one page fragment. I have included this BTF in a jsf page as region. I have written java script function in jsf page. This didn't worked for me. It will work if you don't have a taskflow in a jsf page.
I want to call a method whenever user clicks on browser refresh. Please do let me know how to achieve this.

Comments
Post Details
Added on Jul 16 2021
4 comments
1,216 views