jsf - f:setPropertyActionListener can not set the property -
i trying set value of backingbeans property via
<f:setpropertyactionlistener value="#{customer}" target="#{customersviewbean.selectedcustomer}" />
but not set value.it surprising have initialized property in class when pushed command link, set null , gives null pointer exception.do have idea wrong?
<p:datalist id="datalist5" value="#{customersviewbean.filteredpositioncustomer}" rendered="#{customersviewbean.positionagoreliste}" var="customer"> <p:column style="padding-bottom:1px!important;"> <p:commandlink id="commandlink" action="#{customersviewbean.getcustomerdetail}"> <f:setpropertyactionlistener value="#{customer}" target="#{customersviewbean.selectedcustomer}" /> <f:setpropertyactionlistener value="false" target="#{customersviewbean.comingfromopportunitydetailtoaddresslist}" /> <h3>#{customer.name}</h3> </p:commandlink> </p:column> </p:datalist>
Comments
Post a Comment