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

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

    sandy312

      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.