2 Replies Latest reply on Jan 18, 2008 3:30 PM by Nicklas Karlsson

    error with <s:converEntity>

    Avik Chatterjee Newbie

      Hi,

      Here's my code:

      <h:form styleClass="programs" id="rewardsForm">
      <h:selectOneMenu value="#{customerAction.rewardsProgram}">
      <s:selectItems value="#{rewardsProgramList.resultList}" var="selProg" label="#{selProg.name}"/>
      <s:convertEntity />
      </h:selectOneMenu>

      <s:button action="#{customerAction.addUserToProgram}" value="Add Program" propagation="join">
      <a4j:actionparam value="#{customer.code}" name="customerCode"></a4j:actionparam>
      </s:button>

      </h:form>


      The customerAction component has the following:
      private RewardsProgram rewardsProgram;

      I'm getting the following error:

      javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.ilipse.pse.crm.Membership.program

      When i debugged the flow I found that the error is caused by the fact that the rewardsProgram is never populated by the <s:converEntity>

      Can someone please tell me where am I going wrong?

      Thanks,
      Avik