[jboss-user] Re: Component j_id22 not instance of org.richfaces.component.UID

samk at twinix.com samk at twinix.com
Mon Mar 17 06:48:13 EDT 2008


See Thread at: http://www.techienuggets.com/Detail?tx=17521 Posted on behalf of a User

At me the same problem

In Response To: 

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;
  | 
  | @Name("confTypeMenu")
  | public class ConfTypeMenu {
  | 
  |   public UIDropDownMenu getMyMenu() {
  |     UIDropDownMenu menu = new HtmlDropDownMenu();    
  |     HtmlMenuItem menuItem = new HtmlMenuItem();
  |     String subOption = "Sec. Change Passsword";
  |     menuItem.setValue(subOption);
  | 
  |     menu.getChildren().add(menuItem);
  |         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 ?
TIA





More information about the jboss-user mailing list