<f:setPropertyActionListener>
does not call the setter method of target object when I have the <h:inputText>
in the JSF page but it triggered properly when I interchange h:inputText with <h:outputText>
and the values are loading properly. I am amused with the behavior of <h:inputText>
. Here is the code
index.xhtml
<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
public Obj getObj() {
return obj;
}
public void setObj(Obj pObj) {
this.obj = pObj;
}
I don't believe there is an issue with Bean.java as the setter method was called when I have <h:outputText>
in index.xhtml.