I have found the solution:
'notifyTopics' comma separated list of topics names, that will be published.
Three parameters are passed:
* data: selected value when type='valuechanged'
* type: 'before' before the request is made, 'valuechanged' when
selection changes, 'load' when the request succeeds, or 'error' when it fails
* request: request javascript object, when type='load' or type='error'
-Ursprüngliche Nachricht-
Von: Otto, Frank
Gesendet: Montag, 14. Januar 2008 14:43
An: 'user@struts.apache.org'
Betreff: struts 2.0.11: autocompleter and notify-/listenTopics
Hi,
I have 6 autocompleter combo boxes. The first refresh the second, the second
the third and so one. I use notifyTopics and listenTopics:
s:autocompleter id=cmb1 notifyTopics=refresh2 .../
s:autocompleter id=cmb2 notifyTopics=refresh3 listenTopics=refresh2
theme=ajax url=%{myUrl).../
s:autocompleter id=cmb3 notifyTopics=refresh4 listenTopics=refresh3
theme=ajax url=%{myUrl) .../
s:autocompleter id=cmb4 notifyTopics=refresh5 listenTopics=refresh4
theme=ajax url=%{myUrl) .../
s:autocompleter id=cmb5 notifyTopics=refresh6 listenTopics=refresh5
theme=ajax url=%{myUrl) .../
s:autocompleter id=cmb6 listenTopics=refresh6 theme=ajax url=%{myUrl)
.../
My problem is, that the topics were called more than one time, If I will select
a value from the first combo box. This is to many overhead. The loading of the
combo box values is very slow.
I have no idea, how can I prevent this. Can someone help me, please?
kind regards,
Frank