hello,
I created a modalPanel (ID:dmodel) dynamically. Then to close it, I created
a command button. But it is not functioning, when I try to use :
"actionButton.setOnclick("javascript:Richfaces.hideModalPanel('dmodel')");"
here is the fragment of my code :
HtmlCommandButton actionButton = new HtmlCommandButton();
MethodExpression actionExpression2 = facesCtx.getApplication()
.getExpressionFactory().createMethodExpression(elContext, "#{dataTableScrollerBean.action2}", String.class, new Class[] {});
actionButton.setActionExpression(actionExpression2);
actionButton.setValue("action2");
actionButton.setOnclick("javascript:Richfaces.hideModalPanel('dmodel')"); ///??
how can I close the modelPanel with a commandbutton which resides in
this modelPanel ?
regards