af:popup id="p1" binding="#{managedbean.bindp1}"
popup child component
af:popup
bindp1 is binding variable for popup in managed bean.
public void showPopup(){
ExtendedRenderKitService erkService =Service.getService(fctx.getRenderKit(),ExtendedRenderKitService.class);
erkService.addScript(fctx,"AdfPage.PAGE.findComponent('" + bindp1 + "').show();");
}
public void hidePopup(){
ExtendedRenderKitService erkService =Service.getService(fctx.getRenderKit(),ExtendedRenderKitService.class);
erkService.addScript(fctx,"AdfPage.PAGE.findComponent('" + bindp1 + "').show();");
}
Thanks for the info, but in the hidePopup method I find a mistake.. in the last line you must be change .show() method invocation with .hide().
ReplyDeleteThanks