Why h:commandlink action not get fired after upgrading to JSF-1.2_12?
843844Oct 7 2009 — edited Oct 8 2009Hi,
One strange behavior that I'm facing right now after upgrading to JSF version1.2_12, is that the action method for hidden commandlink which should get fired on changing the value of a comboBox are not getting fired. Note that I was initially using the JSF1.2_07 version and it worked fine.
Any help would be much appreciated.
Here is a sample code of what I have in my app.
<h:panelGroup>
<h:selectOneMenu id="nav-menu" value="#{customBean.rowName}"
onchange="submitOnMenuChange(this.form,'id-link', 'nav-menu');">
<f:selectItem itemLabel="Select:" itemValue="" />
<f:selectItem itemLabel="rowName1" itemValue="rowName1"/>
<f:selectItem itemLabel="rowName2" itemValue="rowName2"/>
</h:selectOneMenu>
<h:commandLink id="id-link" value=" " action="#{customBean.updateAction}" style="display: none;"/>
</h:panelGroup>
Inside submitOnMenuChange() I'm using below technique to submit the form
var idclValue = formId + JSF_ID_SEPARATOR + elementId;
jsfcljs(document.forms[formId],idclValue+','+idclValue,'');
So, ideally on changing the value from above comboBox it should invoke the updateAction method, bit it doesn't.
Thanks,
Umesh
Edited by: Umesh_S on Oct 7, 2009 4:47 AM