Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pop up displays AFTER task flow navigation...

bsargentOct 22 2015 — edited Oct 22 2015

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...

screenwhereiwantthepopuptoshow.PNG

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

screenwhereiwantthepopuptoshow.PNG

This post has been answered by Sameh Nassar on Oct 22 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2015
Added on Oct 22 2015
3 comments
166 views