0 Replies Latest reply on Jul 6, 2009 3:38 PM by Ahmet temiz

    closing the modelPanel with a commandbutton

    Ahmet temiz Novice


      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 :

      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.setOnclick("javascript:Richfaces.hideModalPanel('dmodel')"); ///??

      how can I close the modelPanel with a commandbutton which resides in
      this modelPanel ?