3 Replies Latest reply on Aug 23, 2011 2:27 PM by Rodney Russ

    javax.el.ELException: Function 'rich:component' not found

    sandy312 g Newbie

      I get this error in my ManagedBean when I try to build the componenent. The rich:component works fine in xhtml page.

       

      UIColumn column = new HtmlColumn();
          dynamicDataTable
      .getChildren().add(column);

         
      UIAjaxCommandLink editLink = new HtmlAjaxCommandLink();

          editLink
      .setId("edit");
         
      HtmlGraphicImage img = new HtmlGraphicImage();
          img
      .setUrl("../images/edit.gif");
          editLink
      .getChildren().add(img);
          editLink
      .setActionExpression(createActionExpression("#{myBean.editRow}", String.class));

          editLink
      .setAjaxSingle(true);
          editLink
      .setValueExpression("onComplete", createValueExpression("#{rich:component('editPanel')}.show()", RichFunction.class));
          editLink
      .setValueExpression("reRender", createValueExpression("editPanel", String.class));
          column
      .getChildren().add(editLink);

       

      Any help in this regard is greatly appreicated.