I'd like to create a component for TinyMCE (a WYSIWYG editor) but it uses a tinemce.js Javascript library which I'm supposed to refer to in the session.
Is there a way to insert it automatically when this component is used in the page? Without adding it in some kind of temple header always?
I imagine RichFaces do something like that.
Have a look at a4j:loadScript / a4j:loadStyle.