Requirement: I have an ADF component say an af:outputText. Now I want to refresh the af:outputText programmatically that is through code.
Solution: For solution of the above requirement follow the steps as shown below:
Step 1: Create the binding for the component we want to refresh as shown below:
<af:outputtext binding="#{pageFlowScope.MyBean.outputText}" id="ot1" value="outputText1">
</af:outputtext>
Step 2: Now use the below code in the Java bean wherever we want to refresh the component.
AdfFacesContext.getCurrentInstance().addPartialTarget(getOutputText());
Hence, the solution to our requirement.
If you like the post please comment, share, and do join me on Facebook. Please subscribe to my YouTube Channel for video tutorials.
Thanks & Regards,
Susanto Paul
692 total views, 5 views today