Class Html5ResponseWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable, javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>

    public class Html5ResponseWriter
    extends javax.faces.context.ResponseWriterWrapper
    JSF generates all script tags with 'type="text/javascript"' which throws HTML5 validation warnings.
    Since:
    10.0.0
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      Html5ResponseWriter​(javax.faces.context.ResponseWriter wrapped)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endElement​(java.lang.String name)  
      void startElement​(java.lang.String name, javax.faces.component.UIComponent component)  
      void writeAttribute​(java.lang.String name, java.lang.Object value, java.lang.String property)  
      • Methods inherited from class javax.faces.context.ResponseWriterWrapper

        cloneWithWriter, close, endCDATA, endDocument, flush, getCharacterEncoding, getContentType, getWrapped, startCDATA, startDocument, write, writeComment, writeDoctype, writePreamble, writeText, writeText, writeText, writeURIAttribute
      • Methods inherited from class java.io.Writer

        append, append, append, write, write, write, write
      • Methods inherited from class java.lang.Object

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

      • Html5ResponseWriter

        public Html5ResponseWriter​(javax.faces.context.ResponseWriter wrapped)
    • Method Detail

      • startElement

        public void startElement​(java.lang.String name,
                                 javax.faces.component.UIComponent component)
                          throws java.io.IOException
        Overrides:
        startElement in class javax.faces.context.ResponseWriterWrapper
        Throws:
        java.io.IOException
      • endElement

        public void endElement​(java.lang.String name)
                        throws java.io.IOException
        Overrides:
        endElement in class javax.faces.context.ResponseWriterWrapper
        Throws:
        java.io.IOException
      • writeAttribute

        public void writeAttribute​(java.lang.String name,
                                   java.lang.Object value,
                                   java.lang.String property)
                            throws java.io.IOException
        Overrides:
        writeAttribute in class javax.faces.context.ResponseWriterWrapper
        Throws:
        java.io.IOException