com.liferay.faces.util.render.internal
Class HiddenTextResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by javax.faces.context.ResponseWriterWrapper
              extended by com.liferay.faces.util.render.internal.DelegationResponseWriter
                  extended by com.liferay.faces.util.render.internal.DelegationResponseWriterBase
                      extended by com.liferay.faces.util.render.internal.HiddenTextResponseWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>

public class HiddenTextResponseWriter
extends DelegationResponseWriterBase

This class is a DelegationResponseWriter that is designed to intercept the encoding of a HtmlInputText component. This class ensures that the "id" attribute is written correctly and that the "type" attribute is "hidden".

Author:
Neil Griffin

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HiddenTextResponseWriter(javax.faces.context.ResponseWriter responseWriter, String id)
           
 
Method Summary
 void endElement(String name)
           
 void writeAttribute(String name, Object value, String property)
           
 
Methods inherited from class com.liferay.faces.util.render.internal.DelegationResponseWriterBase
getWrapped
 
Methods inherited from class javax.faces.context.ResponseWriterWrapper
cloneWithWriter, close, endCDATA, endDocument, flush, getCharacterEncoding, getContentType, startCDATA, startDocument, startElement, 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

HiddenTextResponseWriter

public HiddenTextResponseWriter(javax.faces.context.ResponseWriter responseWriter,
                                String id)
Method Detail

endElement

public void endElement(String name)
                throws IOException
Overrides:
endElement in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeAttribute

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


Copyright © 2015 Liferay, Inc.. All rights reserved.