我正在尝试通过设置我的 backingbeans 属性的值
<f:setPropertyActionListener value="#{customer}"
target="#{customersViewBean.selectedCustomer}" />
但它没有设置值。令人惊讶的是,我已经在类中初始化了这个属性,但是当我推送命令链接时,它被设置为 null 并给出空指针异常。你知道出了什么问题吗?
<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>