11 Replies Latest reply on Dec 21, 2010 7:57 PM by shadowcreeper

    Custom RichFaces components requiring scripts?

    shadowcreeper Apprentice

      I'm trying to create a custom rich component based off rich:calendar (extending org.richfaces.renderkit.html.CalendarRenderer).

       

      Any page using this component will require a js file. I can add the js file as a script tag during encodeBegin or encodeEnd, but IE doesn't read it until the window loads.

       

      Is there anyway to specify a list of JavaScript resources for the widget? There must be a clean way to do this.I tried overriding getScripts() but it never gets called.

       

      Thanks