Thursday, March 23, 2017

Get the name of the jspx page in the Page Phase Listener PPL ADF

http://www.baigzeeshan.com/2011/05/how-to-run-java-code-on-every-page-load.html

        FacesContext fctx = FacesContext.getCurrentInstance();

        String viewId = fctx.getViewRoot().getViewId();

        System.out.println("Hello Page : " + viewId);

No comments: