JAnnotation
... a blog about java, middleware tecnologies and surroundings.
Friday, March 1, 2024
Oracle ADF: Running Javascript in action listener\Java method
We needed to execute a JavaScript function after a Java method executed by an actionListener on an af:button.
Wednesday, February 21, 2024
Oracle ADF client usage of an Application Module
In this period very often someone ask me how to avoid usage of deprecated API findDataControl used usually in old implementation
MyApplicationModuleImpl am= (MyApplicationModuleImpl) BindingContext.getCurrent().findDataControl("MyApplicationModuleDataControl").getDataProvider();
you can use createRootApplicationModuleHandle as follow (official suggestion)
ApplicationModuleHandle handle = Configuration.createRootApplicationModuleHandle("mypkg.AppModule", "AppModuleShared"); ApplicationModule sharedAM = handle.useApplicationModule(); ... Configuration.releaseRootApplicationModuleHandle(handle, false);
The preferred way to have a business component access is for me the pageDefUsage. Migrating an old application you can have many occurrency of findDataControl to substitute.
I avoid the usage of createRootApplciationModule method because in my experience at runtime in seams to be slow.
Thursday, November 30, 2023
Run integrated weblogic with advanced ADF debug mode
Subscribe to:
Posts (Atom)