Hi Daniel
 
I suggest to make the selection event asynchronnous.
 
Etienne
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Dilitz
Sent: Friday, October 27, 2006 8:25 AM
To: [email protected]
Subject: [ULC-developer] ListSelectionEvent

Hi

 

In my application I have a table and many textfields. If you select a row on table the textfields get synchronized to the selected row. So far so good.

 

Now we have the problem that the ListSelectionListener roundtrip gets called everytime the user navigates through the table. This makes the navigation in table very slow because on every selectionchange, the textfields get updated, which takes some time and the roundtrip seems to block the navigation in table.

 

The problem is solved in case the user presses an arrow key and leaves it pressed to navigate through the table. In this case the selection event only gets fired after releasing the key.

 

What would solve my problem, is some sort of timer on clientside which gets started if the user changes the selection on table. Lets assume the timer is set to 600ms. If the user changes the selection again within these 600ms the previous selection change gets dropped, the timer gets resetted to 600ms and only the last one gets sent to the server if no other selection event is fired within these 600ms.

 

Is there any possibility to achive this???

 

Thanks in advance

 

Daniel D.

Reply via email to