3 Replies Latest reply on Nov 12, 2007 7:29 AM by saulius jonaitis

    Component j_id22 not instance of org.richfaces.component.UID

    saulius jonaitis Newbie

      Hello, i`m trying to create richfaces components dynamically:

      import org.jboss.seam.annotations.Name;
      import org.richfaces.component.UIDropDownMenu;
      import org.richfaces.component.html.HtmlDropDownMenu;
      import org.richfaces.component.html.HtmlMenuItem;
      public class ConfTypeMenu {
       public UIDropDownMenu getMyMenu() {
       UIDropDownMenu menu = new HtmlDropDownMenu();
       HtmlMenuItem menuItem = new HtmlMenuItem();
       String subOption = "Sec. Change Passsword";
       return menu;

      and using it in my .xhtml:
       <rich:dropDownMenu binding="#{confTypeMenu.myMenu}"/>

      and i get the following error when trying to acces page:
      Component j_id22 not instance of org.richfaces.component.UIDropDownMenu

      i`m using JBoss AS 4.2.1, and JBoss Seam 2.0.0

      any ideas ?