Class ScriptRendererExtension

  • All Implemented Interfaces:
    EventListener, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener

    public class ScriptRendererExtension
    extends com.sun.faces.renderkit.html_basic.ScriptRenderer
    This Renderer handles the rendering of script references. Supports ESM by setting the type="module" attribute when the script name ends with .esm.js. Otherwise, does not set the type attribute at all, since text/javascript is now the default value as per HTML specification.
    • Field Summary

      • Fields inherited from class com.sun.faces.renderkit.html_basic.ScriptStyleBaseRenderer

        logger
      • Fields inherited from class javax.faces.render.Renderer

        PASSTHROUGH_RENDERER_LOCALNAME_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void startInlineElement​(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)  
      • Methods inherited from class com.sun.faces.renderkit.html_basic.ScriptRenderer

        endExternalElement, endInlineElement, startExternalElement
      • Methods inherited from class com.sun.faces.renderkit.html_basic.ScriptStyleBaseRenderer

        decode, encodeBegin, encodeChildren, encodeEnd, getRendersChildren, processEvent, verifyTarget
      • Methods inherited from class javax.faces.render.Renderer

        convertClientId, getConvertedValue
    • Constructor Detail

      • ScriptRendererExtension

        public ScriptRendererExtension()
    • Method Detail

      • startInlineElement

        protected void startInlineElement​(javax.faces.context.ResponseWriter writer,
                                          javax.faces.component.UIComponent component)
                                   throws IOException
        Overrides:
        startInlineElement in class com.sun.faces.renderkit.html_basic.ScriptRenderer
        Throws:
        IOException