13 Replies Latest reply on Apr 6, 2007 6:29 AM by Wayne Bagguley

    Can't get s:selectItems and s:convertEntity to work

    Wayne Bagguley Newbie

      I have this in my components.xml:

      <component name="org.jboss.seam.ui.entityConverter">
       <property name="entityManager">#{em}</property>

      ...and this in a session bean:

      EntityManager em;

      ...and this on a page
       <h:selectOneMenu value="#{requestManager.item}" style="width:300px">
       <s:selectItems value="#{requestManager.items}" var="item" label="#{item.code} #{item.name}" />
       <s:convertEntity />
       <h:commandButton id="proceed" value="Add" action="#{requestManager.addItem}"/>

      And although the selection box contains all the correct items, when I submit the page I get this error:

      ERROR [EntityConverter] Entity Manager not found

      Clearly I'm missing something vital but I can't figure out what it is. There's nothing in the documentation or examples that has helped.