I have a series of input fields where I want to invoke a change listener. I use this becase the attribute valueChangeListener does not seem to work at all:
Code: Select all
<h:inputText id="myfield1" value="#{mybean.value1}" >
<p:ajax event="change" actionListener="#{navigationBean.valueChangeListener}" update="#{cc.attrs.id}" />
<p:ajax event="change" update="#{cc.attrs.id}" />
</h:inputText>
When running the application, I can see on firebug the following javscript exception: jsf not found, which points to the following internal javascript:
Code: Select all
function onchange(event) {
jsf.util.chain(this, event, "PrimeFaces.ajax.AjaxRequest('/op/faces/index.xhtml', formId:'form2',async:false,global:true,source:'form2:j_idt349:j_idt349',process:'form2:j_idt349:j_idt349',update:'form2:j_idt349',event:'change'});", "PrimeFaces.ajax.AjaxRequest('/op/faces/index.xhtml',{formId:'form2',async:false,global:true,source:'form2:j_idt349:j_idt349',process:'form2:j_idt349:j_idt349',update:'form2:j_idt349',event:'change'});");
}
Thanks in advance