public class StylesheetRenderer extends Renderer
Description:
Render a stylesheet link for the value of our component's
path attribute, prefixed by the context path of this
web application.
Based on example code by Sun Microsystems.
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor and Description |
|---|
StylesheetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(FacesContext context,
UIComponent component) |
void |
encodeBegin(FacesContext context,
UIComponent component) |
void |
encodeChildren(FacesContext context,
UIComponent component) |
void |
encodeEnd(FacesContext context,
UIComponent component)
Render a relative HTML
<link> element for a
text/css stylesheet at the specified context-relative
path. |
boolean |
supportsComponentType(UIComponent component) |
convertClientId, getConvertedValue, getRendersChildrenpublic boolean supportsComponentType(UIComponent component)
public void decode(FacesContext context, UIComponent component)
public void encodeBegin(FacesContext context, UIComponent component) throws IOException
encodeBegin in class RendererIOExceptionpublic void encodeChildren(FacesContext context, UIComponent component) throws IOException
encodeChildren in class RendererIOExceptionpublic void encodeEnd(FacesContext context, UIComponent component) throws IOException
Render a relative HTML <link> element for a
text/css stylesheet at the specified context-relative
path.
encodeEnd in class Renderercontext - FacesContext for the request we are processingcomponent - UIComponent to be renderedIOException - if an input/output error occurs while renderingNullPointerException - if context
or component is nullCopyright © 2003–2014 University of Michigan. All rights reserved.