Hello,

I'm using Seam 1.1.0.GA, Ajax4JSF, Facelets and selectItems beta 1.1.1beta 4. 
This little bit of code on my page is giving me an exception immediately focus 
moves away from the selectOneMenu.

  |                                         <h:selectOneMenu id="pavilion" 
value="#{stand.pavilion}" required="true">
  |                                             <si:selectItems 
value="#{pavilionList}" var="pav" label="#{pav.title}" noSelectionLabel="-" /> 
  |                                             <a:support event="onblur" 
reRender="pavilionErrors"/>
  |                                         </h:selectOneMenu>  
  | 

The exception is below


  | java.lang.NullPointerException
  |         at org.jboss.seam.selectitems.Config.find(Config.java:76)
  |         at 
org.jboss.seam.selectitems.Config$$FastClassByCGLIB$$13a6929b.invoke(<generated>)
  |         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  |         at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  |         at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  |         at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:39)
  |         at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  |         at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  |         at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  |         at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  |         at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  |         at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  |         at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  |         at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
  |         at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | 
and a host of others. I'll give the whole stacktrace if required. 

My components.xml has this entry
    
  |    
  |     <core:managed-persistence-context name="em" 
persistence-unit-jndi-name="java:/tradeWindsEntityManagerFactory"/>
  |         
  |     <selectitems:config name="mySelectItemsConfig" 
no-selection-label="Please Select..." entity-manager="#{em}"/>
  |    

 and my persistence unit has the entry allowing seam to manage my persistence

  | <property name="jboss.entity.manager.factory.jndi.name" 
value="java:/tradeWindsEntityManagerFactory"/> 
  | 

The entity manager is properly injected in my seam components using 
@In(create=true). Could it be something to do with A4JSF trying to validate the 
field? I get the feeling i'm doing something wrong but i've no idea what it is. 
I really need help cos i'm running out of time as this is my project work i 
have to submit very soon. Thanks anybody.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005466
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to