Here is my code for the <h:selectOneMenu>
.
I am trying to update its value from the backing bean after assigning the value in backing bean execdirectorRC="XXXvalue".
Here,the executivedirectorslist
does have a list values.
Here is the code in the form
<h:form id="ipdpform">
<h:selectOneMenu id="exedirectors" value="#{Bean.execdirectorRC}">
<f:selectItems value="#{Bean.executivedirectorslist}"
var="s" itemLabel="#{s.label}" itemValue="#{s.value}" />
<p:ajax listener="#{Bean.getDirectReporters}"
update="rpt2 :growl :error" execute="@this"
partialSubmit="true" />
<f:param name="rpt1" value="rpt1" />
</h:selectOneMenu>
</h:form >
Here is the code I am trying to udpate the value from the backing bean
RequestContext context = RequestContext.getCurrentInstance();
execdirectorRC = "XXX,Name";
context.update("ipdpform:exedirectors");
My problem is the value "XXX,Name" is not getting udpated in the <h:selectOneMenu>.
and the values is already available in the Bean.executivedirectorslist
.How can i update it from backing bean ?