Hi again Bob,

I've been thinking a lot about this over the weekend, and so far all the
solutions I can think of, to make things happen automatically, are somewhat 
complex and error-prone.

I keep coming back to the very simple solution of just including the
necessary CSS and JS required by the control in question, e.g. the plain
Click Table, in the header of the initial page. Since that initial page is
not reloaded during AJAX interaction, and since $cssImports and $jsImports
do not appear in the template fragments returned by the Ajax calls, the
imports are included exactly once. The upside is that it's a very simple
solution; the downside is that you'd need to maintain the list of necessary
CSS and JS imports in your base layout according to all the controls that
could possibly appear as your user navigates throughout the pages of your
application.

Let me know if you have more thoughts on this.

Thanks,
Freddy


Reply via email to