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?



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

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

Reply via email to