You can do that on server side by adding onchange="submit();" to
<h:selectOneMenu id="fn" ...> and in getDimsStructToDisplay() create the proper
values for <f:selectItems value="#{jspFormEPFService.dimsStructToDisplay}" /> in
<h:selectOneMenu id="dimStructure"... >

If you want to do that without reload of the page, use ajax4jsf instead of
onchange="submit();" with
<h:selectOneMenu id="fn" style="width:150px" value="#{
  jspFormEPFService.functionLabel}" >
    <a4j:support event="onchange" reRender="dimStructure" />
    <f:selectItems value="#{jspFormEPFService.functionsToDisplay}" />
</h:selectOneMenu>

Holger


Reply via email to