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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user