Sun. Oct 24th, 2021

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

By Susanto Paul

Susanto is an Oracle ACE, a qualified MCA, MBA, and a highly-skilled Senior Oracle Specialist. He is an enthusiastic Blogger and YouTuber who helps learners to solve their complex problems more efficiently. He has 9+ years of experience in multiple technologies like AWS, Oracle ADF, Oracle APEX, Oracle JET, Oracle VBCS, Oracle IDCS, Oracle PL/SQL, Oracle Integration Cloud, Java, JDBC, Servlets, JSP, Spring, Hibernate, HTML5, CSS3, JavaScript, TypeScript, NodesJS, Angular, MySQL, Oracle WebLogic Server, JUnit, JMeter, Selenium Web Driver, etc. He is a certified: Oracle Certified Professional Java SE 6 Programmer, Oracle ADF 11g Certified Implementation Specialist, Oracle Cloud Platform Application Integration 2020 Certified Specialist, Oracle Cloud Infrastructure Foundations 2020 Certified Associate, and Oracle Cloud Infrastructure Developer 2020 Certified Associate

Leave a Reply

Your email address will not be published. Required fields are marked *

satta king chart