Package com.sun.faces.ext.render
Class FocusHTMLRenderer
java.lang.Object
jakarta.faces.render.Renderer
com.sun.faces.ext.render.FocusHTMLRenderer
public class FocusHTMLRenderer extends Renderer
Renderer class that emits HTML and JavaScript to set the focus to a given field.
- Author:
- driscoll
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FocusHTMLRenderer() -
Method Summary
Modifier and Type Method Description voidencodeEnd(FacesContext context, UIComponent component)Render the ending of the current state of the specifiedUIComponent, following the rules described forencodeBegin()to acquire the appropriate value to be rendered.Methods inherited from class jakarta.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
-
Constructor Details
-
FocusHTMLRenderer
public FocusHTMLRenderer()
-
-
Method Details
-
encodeEnd
Description copied from class:RendererRender the ending of the current state of the specified
UIComponent, following the rules described forencodeBegin()to acquire the appropriate value to be rendered.- Overrides:
encodeEndin classRenderer- Parameters:
context-FacesContextfor the response we are creatingcomponent-UIComponentto be rendered- Throws:
IOException- if an input/output error occurs while rendering
-