com.raritantechnologies.searchApp.taglibrary
Class PageContextDisplayFormRenderer

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.PageContextDisplayFormRenderer
All Implemented Interfaces:
IConfigurable, IPageContextRenderer

public class PageContextDisplayFormRenderer
extends java.lang.Object
implements IPageContextRenderer

Converts a RaritanPageContext into a DisplayForm so that result rendering can ocuur in a pipeline setting.

XML Configuration Template:
   <PageContextRenderer class="com.raritantechnologies.searchApp.taglibrary.PageContextDisplayFormRenderer"
                           formName="[display form name ]"
                           noResultString="[ string for no results message ]"
                           pageSize="[ number of records / page ]"
                           categoryParam="[ search source category http parameter ]"
                           sourceTypeParam="[ source type http parameter ]"
                           useCache="true|false" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
PageContextDisplayFormRenderer()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 java.lang.String render(RaritanPageContext rpc)
          Returns the component.
 void setCategoryParam(java.lang.String categoryParam)
           
 void setFormName(java.lang.String formName)
           
 void setNoResultString(java.lang.String noResultString)
           
 void setPageSize(java.lang.String pageSize)
           
 void setSourceTypeParam(java.lang.String sourceTypeParam)
           
 void setUseCache(java.lang.String useCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContextDisplayFormRenderer

public PageContextDisplayFormRenderer()
Method Detail

render

public java.lang.String render(RaritanPageContext rpc)
Returns the component.

Specified by:
render in interface IPageContextRenderer
Parameters:
rpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
Returns:
The tag body text string.

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable

setFormName

public void setFormName(java.lang.String formName)

setNoResultString

public void setNoResultString(java.lang.String noResultString)

setPageSize

public void setPageSize(java.lang.String pageSize)

setCategoryParam

public void setCategoryParam(java.lang.String categoryParam)

setSourceTypeParam

public void setSourceTypeParam(java.lang.String sourceTypeParam)

setUseCache

public void setUseCache(java.lang.String useCache)