java - populating dependent JSF menu not working -



java - populating dependent JSF menu not working -

i have hashmap availablegovernates holding key(id) , value governate object trying populate cities menu based on choosen governate , value of (form.governate)passed function getgovavaiablecities null when check after submitting , form.governate set

<h:selectonemenu id="governates" value="#{form.governate}" converter="converter"> <f:selectitems value="#{data.availablegovernates.entryset()}" var="governate" itemvalue="#{governate.value}" itemlabel="#{governate.value.name}"></f:selectitems> <f:ajax execute="governates" render="cities" /> </h:selectonemenu> <h:selectonemenu id="cities" value="#{form.city}" converter="converter"> <f:selectitems value="#{form.getgovavaiablecities(form.governate).entryset()}" var="city" itemvalue="#{city.value}" itemlabel="#{city.value.name}"></f:selectitems> </h:selectonemenu>

java jsf

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -