import org.apache.myfaces.trinidad.util.Service;
FacesContext fctx=FacesConte xt.getCurrentIn stance();
ExternalContext ectx=fctx.getEx ternalContext() ;
// ectx.redirect("test1.jspx"); // to open in same tab
ExtendedRenderK itService erks =
Service.getServ ice(fctx.getRen derKit(), ExtendedRenderK itService.class );
String url = "window.open('" + "reports.jspx" + "','\"_self\"', '\"toolbar=yes, scrollbars=yes, resizable=yes,t op=500,left=500 ,width=600,heig ht=500\"');";
erks.addScript( FacesContext.ge tCurrentInstanc e(), url);
///code to open reports in pop up///
FacesContext fctx=FacesConte
ExternalContext ectx=fctx.getEx
// ectx.redirect("test1.jspx"); // to open in same tab
ExtendedRenderK
Service.getServ
String url = "window.open('" + "reports.jspx" + "','\"_self\"',
erks.addScript(
///code to open reports in pop up///
No comments:
Post a Comment