Class ScriptRendererExtension

java.lang.Object
javax.faces.render.Renderer
com.sun.faces.renderkit.html_basic.ScriptStyleBaseRenderer
com.sun.faces.renderkit.html_basic.ScriptRenderer
de.xima.fc.gui.component.script.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScriptRendererExtension

      public ScriptRendererExtension()
  • Method Details

    • 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