I am using JDeveloper 18.104.22.168.
I have a task flow with page fragments and I would like to execute some custom codes at the RENDER_MODEL phase when the fragment inside the task flow is initially rendered.
I implemented RegeionController, put the costom codes in refreshRegion(), and set the class to the ControllerClass attribute of the pageDef file.
However, at initial render, the refreshRegion() method is only fired at the PREPARE_MODEL phase and not at the RENDER_MODEL phase.
On the other hand, refreshRegion() is always fired at the both phases at postback.
Strangely, if the region is not rendered at initial render of the parent page because it is put on the af:showDetailItem tag that is not initially disclosed, refreshRegion() is fired at the both phases even at initail render of the parent.
Thanks for the response.
Now refreshRegion() is fired as expected but there appears another problem.
At the RENDER_MODEL phase upon initial render of the parent, all ui components bound to the fragment's managed bean are null (they are not null at postback).
Can I somehow initialize the ui components before the RENDER_MODEL phase?
no. The components become available before render. Depends on what you are trying to achieve you can have the component using EL to reference a property in the managed bean and then manipulate that property from the listener