myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aneesha Govil" <>
Subject Query about SelectOneMenus in t:datalist
Date Mon, 13 Nov 2006 10:24:40 GMT

I have two drop-downs in a datalist, i.e., there are several rows, each
having two dropdowns and a textbox. On change of the first dropdown, I need
to change the select items in the second dropdown and manipulate the textbox
(change it to a calendar or dropdown). Now the problem is, since the
components are being built dynamically, I have no way of knowing the ID of
the first dropdown. Therefore I cannot use something like this in the

<h:selectOneMenu value="#{ajaxChildComboBoxBean.selectedCountry}"
    <f:selectItems value="#{ajaxChildComboBoxBean.countries}"/>

<s:ajaxChildComboBox value="#{ajaxChildComboBoxBean.selectedCity}"

    <f:selectItems value="#{ajaxChildComboBoxBean.cities}"/>	

I was trying to do this manually, change the components in the
valuechangelistener but for this I need more information than just the new
value. Any way I could pass more than one values in a value change listener?
Or use updateactionlistener with selectonemenu to update several backing
bean attributes?

Please ask if any more information is required to be able to help.
Please help, this is a show stopper in my application. :(

Thanks in advance,

View raw message