Hello,
This is my nightmare for three days.
I want to make two inputSuggestAjax dependent the list of values for the second one will depend on the choosen value of the first one.
I've managed to get the value of the prefix of the first inputSuggest but when the user choose a value from the list not a prefix no ajax call to any server side methods happen so i can get the choosen value to populate the second one list ...
<h:outputLabel value="Select Territory: " for=""> <s:inputSuggestAjax id="territory" suggestedItemsMethod="#{CustomerBranchSelection.getTerritoriesSuggest
}"
value="#{CustomerBranchSelection.territory}" valueChangeListener="#{CustomerBranchSelection.territoryValueChangeListener}"/>
<h:outputLabel value="Select Country: " for=""
<s:inputSuggestAjax id="Country" suggestedItemsMethod="#{CustomerBranchSelection.getCountriesSuggest}"
value="#{CustomerBranchSelection.country}" valueChangeListener="#{
CustomerBranchSelection.countryValueChangeListener}"/>
I've tried ValueChangeListeners but it didn't work also.
I want simply to achive this task using any AJAX way ...
--
http://mageeb.net
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.gnu.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature
- Two dependent inputSuggestAjax HOWTO Michael Ageeb
- Re: Two dependent inputSuggestAjax HOWTO Gerald Müllan

