[jboss-user] [JBoss Seam] - selectOneMenu - NPE

w17chm4n do-not-reply at jboss.com
Mon Nov 19 04:43:35 EST 2007


I`m getting NPE when using selectOneMenu, why is that ?

view

  | <h:selectOneMenu value="#{questionCategory}" required="true">
  |                     <s:selectItems value="#{questionCategoryList}" var="category" label="#{category.categoryName}"/>
  |                     <s:convertEntity/>
  |                 </h:selectOneMenu>
  | 

components.xml

  | <components xmlns="http://jboss.com/products/seam/components"
  |             xmlns:core="http://jboss.com/products/seam/core"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xsi:schemaLocation=
  |             "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
  |             http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd">
  |     
  |     <component name="org.jboss.seam.core.init">
  |         <property name="debug">true</property>
  |         <property name="myFacesLifecycleBug">true</property>
  |         <property name="jndiPattern">Inquisitor/#{ejbName}/local</property>
  |     </component>
  |     
  |     <component class="org.jboss.seam.web.MultipartFilter">
  |         <property name="createTempFiles">true</property>
  |         <property name="maxRequestSize">1000000</property>
  |     </component>
  |     
  |     <core:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/EntityManagerFactory"/>
  | </components>
  | 

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

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



More information about the jboss-user mailing list