I have a dynaform with multiple selectOneMenu. For certain type of dynaControl I want to update the next SelectOneMenu using PFS.
I have tried to use:
Code: Select all
update="@(closest('tr').next().find(".select))"
Code: Select all
update="@parent:@parent @(.a:first)"
Does primefaces support all the jQuery selector?
Primary SelectOneMenu:
Code: Select all
<pe:dynaFormControl type="selectParentMandatory" for="selSectorParentMandatory" styleClass="select select-parent">
<p:selectOneMenu value="#{data.value}">
<f:selectItems value="#{data.lookUpValues}" />
<p:ajax partialSubmit="true" process="@this" update="@parent:@parent @(.a:first)"
listener="#{bean.selectedParent(data)}" />
</p:selectOneMenu>
</pe:dynaFormControl>
Code: Select all
<pe:dynaFormControl type="selectParentMandatory" for="selSectorParentMandatory" styleClass="select select-child">
<p:selectOneMenu value="#{data.value}">
<f:selectItems value="#{data.lookUpValues}" />
<p:ajax partialSubmit="true" process="@this" update="@none"
listener="#{bean.selectedChild(data)}" />
</p:selectOneMenu>
</pe:dynaFormControl>