1 Reply Latest reply on Dec 15, 2006 6:15 AM by David Rogers

    NullPointer for SeamSelectItems config

    David Rogers Newbie

      I'm getting the error:

      java.lang.NullPointerException
       at org.jboss.seam.selectitems.ui.UISeamSelectItems.isCache(UISeamSelectItems.java:64)
       at org.jboss.seam.selectitems.ui.UISeamSelectItems.evaluateCacheKey(UISeamSelectItems.java:277)
       at org.jboss.seam.selectitems.ui.UISeamSelectItems.isCacheEnabled(UISeamSelectItems.java:273)
       at org.jboss.seam.selectitems.ui.UISeamSelectItems.getValue(UISeamSelectItems.java:193)
       at org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.addSelectItems(SelectItemSupport.java:270)
       at org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.getSelectItems(SelectItemSupport.java:90)
       at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(SimpleSelectOneRenderer.java:255)
       at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encode


      When using the select items tag as follows:

      <tr:selectOneChoice id="catalogue" value="#{itemManager.item.catalogue}">
       <si:selectItems value="#{catalogues}" var="catalogue" label="#{catalogue.name}"/>
       </tr:selectOneChoice>


      It was working fine just before, so it's probably something small.