Top Description Fields Constructors Methods
com.sun.faces.renderkit.html_basic

public Class SecretRenderer

extends HtmlBasicInputRenderer
Class Inheritance
Imports
java.io.IOException, javax.faces.component.UIComponent, javax.faces.context.FacesContext, .ResponseWriter, com.sun.faces.renderkit.Attribute, .AttributeManager, .RenderKitUtils

SecretRenderer is a class that renders the current value of UIInput component as a password field.

Field Summary

Modifier and TypeField and Description
private static final Attribute[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encodeBegin(FacesContext
FacesContext for the request we are processing
context
,
UIComponent
UIComponent to be rendered
component
)

Overrides javax.faces.render.Renderer.encodeBegin.

Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating.

protected void
getEndTextToRender(FacesContext
the FacesContext for the current request
context
,
UIComponent
the UIComponent of interest
component
,
String
component's current value
currentValue
)

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getEndTextToRender.

Renderers override this method to write appropriate HTML content into the buffer.
Inherited from com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer:
getConvertedValuegetNonOnChangeBehaviorsgetNonOnClickSelectBehaviorsgetValuesetSubmittedValue

Field Detail

ATTRIBUTESback to summary
private static final Attribute[] ATTRIBUTES

Constructor Detail

SecretRendererback to summary
public SecretRenderer()

Method Detail

encodeBeginback to summary
public void encodeBegin(FacesContext context, UIComponent component) throws IOException

Overrides javax.faces.render.Renderer.encodeBegin.

Doc from javax.faces.render.Renderer.encodeBegin.

Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input.

Parameters
context:FacesContext

FacesContext for the request we are processing

component:UIComponent

UIComponent to be rendered

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
getEndTextToRenderback to summary
protected void getEndTextToRender(FacesContext context, UIComponent component, String currentValue) throws IOException

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getEndTextToRender.

Doc from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getEndTextToRender.

Renderers override this method to write appropriate HTML content into the buffer.

Parameters
context:FacesContext

the FacesContext for the current request

component:UIComponent

the UIComponent of interest

currentValue:String

component's current value

Annotations
@Override
Exceptions
IOException:
if an error occurs rendering the text