struts 2.0.11: autocompleter

2008-01-15 Thread Otto, Frank
hi, 

I have 6 autocompleter. The first refreshs the second, the second the third and 
so one.

But If I clear the second autocompleter value, so that the combo box is empty, 
the notifyTopics-Event will not be send. Has someone an idea? I have to refresh 
the third combo box and then the next...


kind regards,

Frank


struts 2.0.11: autocompleter and notify-/listenTopics

2008-01-14 Thread Otto, Frank
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
 


AW: struts 2.0.11: autocompleter and notify-/listenTopics

2008-01-14 Thread Otto, Frank
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