[jboss-user] [JBoss Seam] - Component j_id22 not instance of org.richfaces.component.UID
nevez
do-not-reply at jboss.com
Thu Nov 8 09:18:53 EST 2007
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102910#4102910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102910
More information about the jboss-user
mailing list