Xpages - script tag duplication on refresh

Hi,

Let’s suppose I have a panel with a few fields and a button.

I have another button that partially refreshes the panel and each time I click on this button the script that was generated for the button (and for any built-in customized dojo widget) inside the table will be duplicated in the source of the page (to try it create a panel with a type-ahead and a button that refreshes the panel).

I have the workaround to remove the unnecessary script tags but I think this is very unsatisfactory (and ugly) and may cause issues. Any chance that it will be fixed in the future?

Thanks!

Tibor