Hi,

Anyone has tried to use ADF menu model ?
I just tried by taking the sample codes ( TreeModelAdapter, MenuModelAdapter, 
and DemoMenuItem ) and using af:page component.
But it gave me the following error :

  | ...
  | 01:04:29,413 DEBUG [org.jboss.seam.Component] seam component not found: 
menuModel
  | 01:04:29,415 ERROR [org.apache.myfaces.util.ClassUtils] Class : 
example.menu.MenuModelAdapter not found.
  | java.lang.NoClassDefFoundError: oracle/adf/view/faces/model/MenuModel
  |     at java.lang.Class.getDeclaredConstructors0(Native Method)
  |     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
  |     at java.lang.Class.getConstructor0(Class.java:2640)
  |     at java.lang.Class.newInstance0(Class.java:321)
  |     at java.lang.Class.newInstance(Class.java:303)
  |     at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
  |     at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
  | ...
  | 01:04:29,429 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Planner].[jsp]]
 Servlet.service() for servlet jsp threw exception 
javax.faces.el.EvaluationException: Cannot get value for expression 
'#{menuModel.model}'
  |     at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:397)
  |     at 
oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)
  |     at 
oracle.adf.view.faces.component.UIXComponentBase.getProperty(UIXComponentBase.java:1066)
  | ...
  | Caused by: javax.faces.FacesException: java.lang.NoClassDefFoundError: 
oracle/adf/view/faces/model/MenuModel
  |     at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:279)
  |     at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
  |     at 
org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)
  |     at 
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
  |     at 
oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
  |     at 
oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
  |     at 
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
  | ...
  | Caused by: java.lang.NoClassDefFoundError: 
oracle/adf/view/faces/model/MenuModel
  |     at java.lang.Class.getDeclaredConstructors0(Native Method)
  |     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
  |     at java.lang.Class.getConstructor0(Class.java:2640)
  |     at java.lang.Class.newInstance0(Class.java:321)
  |     at java.lang.Class.newInstance(Class.java:303)
  |     at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
  | ... 
  | 

Any suggestions would be helpful.



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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to