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

nevez do-not-reply at jboss.com
Mon Nov 12 07:29:57 EST 2007


I solved the problem, as i suspected there was a problem with classloading, in \jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\META-INF\jboss-serice.xml 
i changed "UseJBossWebLoader" to true and used the following code to create component:

  | private HtmlDropDownMenu menu;
  | public HtmlDropDownMenu getMyMenu() {
  |         if (menu == null) {
  |             Application app = FacesContext.getCurrentInstance().getApplication();
  | 
  |             menu = (HtmlDropDownMenu) app.createComponent(HtmlDropDownMenu.COMPONENT_TYPE);
  |             menu.setValue("File");
  |             .....
  |         }
  |        return menu
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103640#4103640

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103640



More information about the jboss-user mailing list