2 Replies Latest reply: Jan 12, 2014 10:37 PM by Frank Nimphius RSS

Refresh main page after return from another

Nomadus Newbie
Currently Being Moderated

Hi,

Jdev is 11.1.1.6 and I have the following setup.

There is a main BTF (let's call it BTF1), inside of it second BTF (BTF2) as region. Within BTF2 we have a button, which launches some other taskflow (BTF3), the MB code is

 

    public void launchWindow(ActionEvent actionEvent) {

        FacesContext fctx = FacesContext.getCurrentInstance();

        Map<String, Object> params = new HashMap<String, Object>();

        HttpServletRequest request =

            (HttpServletRequest)fctx.getExternalContext().getRequest();

        params.put("param1", param1);

        params.put("param2", param2);

        HttpSession s = request.getSession();

        String taskflowURL =

            ControllerContext.getInstance().getTaskFlowURL(false,

                                                           new TaskFlowId(taskflowDocument_1,

                                                                          taskflowId_1),

                                                           params);

        ExtendedRenderKitService erks =

            Service.getRenderKitService(fctx, ExtendedRenderKitService.class);

        StringBuilder script = new StringBuilder();

        System.out.println("tasflow url: " + taskflowURL);

        script.append("window.open(\"" + taskflowURL +

                      "\"").append(",\"_blank\");");

        erks.addScript(FacesContext.getCurrentInstance(), script.toString());

    }

 

The goal is to refresh BTF2 when user closes BTF3 window. How can this be done?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points