Conditionally Resetting Task Flow Displayed In a Popup
Use Case
A task flow is embedded in af:poup. The content needs to be reset each time user view this.
Solution
Use activation and active property to control the life span of task flow.Activate task flow when user open the popup window. Deactivate it when popup is disposed. Please see developer guide to learn more about these properties: Configuring Activation of an ADF Region
Download
You can download the sample workspace from here.
The main.jsf page contains a task flow(dept-task-flow) with a search view embedded inside an af:popup . Each time you invoke the popup, the search panel state in the popup is reset as the task flow is re-activated each time.
[ Runs with Oracle JDeveloper 11.1.2.1.0 (11g R2PS1) + HR Schema]
Learn More ...
There are a lot more points like this. If you are curious to learn the internals of the ADF Business Components and ADF Binding Layer, the following book is for you - Oracle ADF Real World Developer’s Guide.
More details about this book can be found in this post- http://jobinesh.blogspot.in/2012/07/pre-order-your-copy-of-oracle-adf-real.html
A task flow is embedded in af:poup. The content needs to be reset each time user view this.
Solution
Use activation and active property to control the life span of task flow.Activate task flow when user open the popup window. Deactivate it when popup is disposed. Please see developer guide to learn more about these properties: Configuring Activation of an ADF Region
Download
You can download the sample workspace from here.
The main.jsf page contains a task flow(dept-task-flow) with a search view embedded inside an af:popup . Each time you invoke the popup, the search panel state in the popup is reset as the task flow is re-activated each time.
[ Runs with Oracle JDeveloper 11.1.2.1.0 (11g R2PS1) + HR Schema]
Learn More ...
There are a lot more points like this. If you are curious to learn the internals of the ADF Business Components and ADF Binding Layer, the following book is for you - Oracle ADF Real World Developer’s Guide.
More details about this book can be found in this post- http://jobinesh.blogspot.in/2012/07/pre-order-your-copy-of-oracle-adf-real.html
Hi Jobinesh,
ReplyDeleteTry replace the panel window in the popup with a dialog component , your solution will work only when the dialog cancel button is pressed but when Ok button pressed the re-activation is not working ... do you have any idea about this issue.
Thanks , Mahmoud Abdultawab
Hi Jobinesh,
ReplyDeleteWe have to put the same popup canceled listener code inside the dialog listener to invert the condition.
public void dialogListener(DialogEvent dialogEvent) {
// Add event code here...
ADFContext.getCurrent().getPageFlowScope().put("forceActivate", "false");
}
Sorry for the disturbance.
Excellent blog with good information it is really useful.
ReplyDeleteJapanese Classes in Chennai
Japanese Language Course in Chennai
Spoken English Classes in Chennai
French Classes in Chennai
pearson vue
German Classes in Chennai
Japanese Classes in Adyar
Japanese Classes in VelaChery
IELTS Coaching in anna nagar
ielts coaching in chennai anna nagarc
Thanks for posting this blog. This author has been sharing some valuable content in a better way.
ReplyDeleteSpoken English Classes in Coimbatore
Best Spoken English Classes in Coimbatore
Spoken English Class in Coimbatore
Spoken English in Coimbatore
Spoken English Classes in Chennai
IELTS Coaching in Chennai
IELTS Classes in Mumbai
English Speaking Classes in Mumbai
Great Blog!!! Was an interesting blog with a clear concept. And will surely help many to update them.
ReplyDeleteRPA Training in Chennai
RPA course in Chennai
R Programming Training in Chennai
UiPath Training in Chennai
Automation Anywhere Training in Chennai
Cloud Computing Courses in Chennai
Data Science Training in Chennai
RPA Training Institute in Chennai
Great Article. Thank you for sharing! Really an awesome post for every one.
ReplyDeleteIEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.
Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai