com.ibm.xsp.renderkit
Interface ContentTypeRenderer


public interface ContentTypeRenderer

Render custom text content.


Method Summary
 java.lang.String[] getContentTypes()
          Content types rendered by this extension.
 boolean render(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer, java.lang.String contentType, java.lang.String value)
          Renders a text value based on a content type.
 

Method Detail

getContentTypes

java.lang.String[] getContentTypes()
Content types rendered by this extension. This is used at design time to populate the content type list of choices.


render

boolean render(javax.faces.context.FacesContext context,
               javax.faces.component.UIComponent component,
               javax.faces.context.ResponseWriter writer,
               java.lang.String contentType,
               java.lang.String value)
               throws java.io.IOException
Renders a text value based on a content type. If the value is completely rendered, then the function should return true, thus stopping the rendering chain.

Parameters:
context - The current FacesContext object
component - The current component holding the value being rendered
writer - The writer to write to
contentType - The requested content type
value - The text value to write
Throws:
java.io.IOException