[jboss-user] [JBoss Seam] - error with <s:converEntity>

achatterjee do-not-reply at jboss.com
Fri Jan 18 13:33:58 EST 2008


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






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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121406



More information about the jboss-user mailing list