I wrote java code in a backing bean to show a popup before the navigation is made to the next step in the task flow and instead the popup displays AFTER the navigation...
The backing bean code is:
public String processPdfFiles() {
uploadMessageToShow = new RichMessage();
FacesContext fcntx = FacesContext.getCurrentInstance();
FacesMessage popup = new FacesMessage(FacesMessage.SEVERITY\_INFO, "", "Processing PDF Data");
fcntx.addMessage(null, popup);
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("process");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
}
return "show";
}
The button code is:
<af:button text="#{viewcontrollersection13fBundle.process}"
disabled="#{!bindings.process.enabled}" id="b3" action="#{FileProcessor.processPdfFiles}"/>
And the task flow code is:
<control-flow-rule id="__1">
\<from-activity-id>pdfFiles\</from-activity-id>
\<control-flow-case id="\_\_2">
\<from-outcome>show\</from-outcome>
\<to-activity-id>pdfData\</to-activity-id>
\</control-flow-case>
\</control-flow-rule>
What do I need to change to display the pop up before the navigation is made to the next step in the task flow?
Below is the screen where I want the popup to show...

Instead, the popup shows on the next screen which is the "show" step in the task flow navigation:
