Jsf setPropertyActionListener未激发目标的setter方法
当我在JSF页面中拥有时,不调用目标对象的setter方法,但当我与交换h:inputText并且正确加载值时,它会正确触发。我对他的行为感到好笑。这是密码 index.xhtmlJsf setPropertyActionListener未激发目标的setter方法,jsf,primefaces,jsf-2.2,Jsf,Primefaces,Jsf 2.2,当我在JSF页面中拥有时,不调用目标对象的setter方法,但当我与交换h:inputText并且正确加载值时,它会正确触发。我对他的行为感到好笑。这是密码 index.xhtml <p:row> <p:column><p:outputLabel value="ID"/></p:column> <p:column ><h:inputText value="#{bean.obj.innerObj.id}"/>
<p:row>
<p:column><p:outputLabel value="ID"/></p:column>
<p:column ><h:inputText value="#{bean.obj.innerObj.id}"/></p:column>
</p:row>
<p:commandButton update=":form:detail"
oncomplete="PF('dialog').show()"
icon="ui-icon-search"
title="View">
<f:setPropertyActionListener value="#{detail}"
target="#{bean.obj}" />
</p:commandButton>
我不认为Bean.java有问题,因为在index.xhtml中调用setter方法。是否有{itemsBean.selectedItemDetail}的getter和setter?可能是重复的,这是我的编辑中的一个问题,实际上selectedItemDetail表示为objdetail应该是什么?
public Obj getObj() {
return obj;
}
public void setObj(Obj pObj) {
this.obj = pObj;
}