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!

Dynamic Task Flow with Parameters

Ghazi HakimJan 2 2014 — edited Jan 3 2014

Hello,

I have a dynamic task flow in my page and I used this code and it's working :

jsff :

<af:region value="#{bindings.dynamicTF.regionModel}" id="r1"/>

pageDef :

<taskFlow id="dynamicTF" taskFlowId="#{pageFlowScope.myBean.dynamicTaskFlowId}" activation="deferred"

              xmlns="http://xmlns.oracle.com/adf/controller/binding"/>

Bean :

    public TaskFlowId getDynamicTaskFlowId() {

            ControllerContext context = ControllerContext.getInstance();

            ViewPortContext currentRootViewPort = context.getCurrentRootViewPort();

            Exception exceptionData = currentRootViewPort.getExceptionData();

         

            if (currentRootViewPort.isExceptionPresent()) {

                exceptionData.printStackTrace();

                currentRootViewPort.clearException();

               

                FacesContext facesContext = FacesContext.getCurrentInstance();

                facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, exceptionData.getMessage(), null));

               

                return TaskFlowId.parse(taskFlowId);

            }

           

            return TaskFlowId.parse(taskFlowId);

        }

The problem is when the task flow needs parameters, I need to pass those parameters programmatically, how can I do that ?

Thank you.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2014
Added on Jan 2 2014
2 comments
387 views