org.hdpagination.web.jsf.renderkit
Class GoToPageRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.hdpagination.web.jsf.renderkit.PaginateRenderer
          extended by org.hdpagination.web.jsf.renderkit.GoToPageRenderer

public class GoToPageRenderer
extends PaginateRenderer

This Renderer is to render a text box along with either a submit button, hyperlink, or image link. The button, hyperlink, or image link is used to submit the request and navigate to the page specified in the text box. The decision to render the button, hyperlink, or image link relies on the following rule:

If property 'imgSrc' in the UI Component is specified, then an image link (<img> tag with enclosing <a> tag) is rendered. Otherwise, if property 'linkLabel' is specified, the hyperlink (text with enclosing tag <a>) is rendered. If none of these are specified, the button is rendered by default.

Since:
1.1
Author:
Liangfeng Ren

Field Summary
 
Fields inherited from class org.hdpagination.web.jsf.renderkit.PaginateRenderer
logger
 
Constructor Summary
GoToPageRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 
Methods inherited from class org.hdpagination.web.jsf.renderkit.PaginateRenderer
decode, getUIFormClientId
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoToPageRenderer

public GoToPageRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException


Copyright © 2008 HDPagination All Rights Reserved.