1 2 Previous Next 18 Replies Latest reply on Dec 13, 2006 5:22 AM by pmuir

    Problem with selectItems taglib

    dave.rogers

      I am using the taglib

      xmlns:si="http://jboss.com/products/seam/selectitems/taglib"


      as follows:

      <h:selectOneMenu id="catalogue" value="#{currentItem.catalogue}">
       <si:selectItems value="#{catalogues}" var="catalogue" label="#{catalogue.name}"/>
       </h:selectOneMenu>


      with the following in my bean:

      @Factory("catalogues")
       public List<Catalogue> buildCatalogues() {
       List<Catalogue> catalogues =
       em.createQuery("select c from Catalogue c")
       .getResultList();
       log.info("Catalogues list has " + catalogues.size() + " entries");
       return catalogues;
       }


      According to my log "14:24:13,580 INFO [ItemManager] Catalogues list has 96 entries". But the following error is thrown:

      Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key org.jboss.seam.selectitems.entityConverter.notAnEntity halvor.pojo.Catalogue_$$_javassist_44

      Now I don't really care about the missing resource, for now, what I'm concerned about is the underlying error. (notAnEntity). This implies that my pojo is not an entity when is it (is has the @Entity tag, an @Id tag on the id etc..).

      Why would it still think that this is not an entity?



        1 2 Previous Next