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!

region: input params are not filled

2780557Nov 7 2017 — edited Nov 9 2017

Hello,

I have a project. And I have some input parameters:

pastedImage_0.png

The problem is when i put this project as region in the main project. The value of input params is not filled.

In the main project i add to the main taskFlow the "new" task flow:

pastedImage_1.png

In the source i can see all the params:

pastedImage_2.png

On the page where i call the region i have a button with setpropertyListners:

<af:commandButton text="commandButton 3" id="cb13"

                                  binding="#{backingBeanScope.backing\_OrderSearch.cb13}"

                                  action="go">

                    \<af:setPropertyListener from="#{backingBeanScope.backing\_OrderSearch.it12.value}"

                                            to="#{pageFlowScope.costId}" type="action"/>

                    \<af:setPropertyListener type="action" to="#{pageFlowScope.menuScreen}"

                                            from="#{backingBeanScope.backing\_OrderSearch.it13.value}"/>

                    \<af:setPropertyListener type="action" to="#{sessionScope.refreshParams}"

                                            from="#{backingBeanScope.backing\_OrderSearch.refreshParams}"/>

                \</af:commandButton>

Just in case, i remove action "GO" and add a function to be sure params is filled

public String goToCosts() {

    Map pfs = AdfFacesContext.getCurrentInstance().getPageFlowScope();

    pfs.put("costId",null);

    pfs.put("costId",it12.getValue().toString());

    pfs.put("menuScreen",it13.getValue().toString());

    pfs.put("refreshParams", getRefreshParams());

    NavigationHandler nvHndlr = FacesContext.getCurrentInstance().getApplication().getNavigationHandler();

    nvHndlr.handleNavigation(FacesContext.getCurrentInstance(), null, "go");

    System.out.println("costId: " + pfs.get("costId"));

    System.out.println("menuScreen: " + pfs.get("menuScreen"));

    System.out.println("refreshParams: " + pfs.get("refreshParams"));

    return null;

}

And params are fille with values inside inputtext (109 and N, respectively). But when the region "is open" appears like this:

pastedImage_6.png

and i put two outputext with values of params and they are not the values inside inputtext.

Do you can helpe me, please?

My jdev version is 11.2.4.0.

This post has been answered by SanjeevChauhan on Nov 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2017
Added on Nov 7 2017
1 comment
75 views