Can <s:ajaxChildComboBox> be used for 3 level relationship, for example,
country, state and city? I have not tried this, but I doubt it. I am wondering
if this component should be extended to 3 levels which is very common. Thanks!
<h:selectOneMenu value="#{ajaxChildComboBoxBean.selectedCountry}"
id="countryCombo">
<f:selectItems value="#{ajaxChildComboBoxBean.countries}"/>
</h:selectOneMenu>
<s:ajaxChildComboBox value="#{ajaxChildComboBoxBean.selectedState}"
parentComboBox="countryCombo" id="stateCombo"
ajaxSelectItemsMethod="#{ajaxChildComboBoxBean.getStatesOfSelectedCountry}">
<f:selectItems value="#{ajaxChildComboBoxBean.states}"/>
</s:ajaxChildComboBox>
<s:ajaxChildComboBox value="#{ajaxChildComboBoxBean.selectedCity}"
parentComboBox="stateCombo"
ajaxSelectItemsMethod="#{ajaxChildComboBoxBean.getCitiesOfSelectedState}">
<f:selectItems value="#{ajaxChildComboBoxBean.cities}"/>
</s:ajaxChildComboBox>
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.