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);
FacesContext fctx = FacesContext.getCurrentInstance();
String viewId = fctx.getViewRoot().getViewId();
System.out.println("Hello Page : " + viewId);
No comments:
Post a Comment