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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to