Hi,
Getting a valueChangeListener is not possible with the current state
of the component.
The renderer does not render the input field through it`s superclass,
instead writes a dojo-specific tag. This is parsed by dojo and
converted into some more html markup which represents the input field,
the arrow and some other things.
I have never tried it out, but it may be not possible to specify some
separate, not dojo specific stuff in the renderer.
Maybe you can use also tableSuggestAjax component for this kind of requirement?
It is build upon the same principle but as an addition you can put the
choosen values from a suggested table row in DOM nodes.
cheers,
Gerald
On 5/21/06, Michael Ageeb <[EMAIL PROTECTED]> wrote:
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="territory"/>
<s:inputSuggestAjax id="territory"
suggestedItemsMethod="#{CustomerBranchSelection.getTerritoriesSuggest
}"
value="#{CustomerBranchSelection.territory}"
valueChangeListener="#{CustomerBranchSelection.territoryValueChangeListener}"/>
<h:outputLabel value="Select Country: " for="Country"/>
<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
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]