com.raritantechnologies.searchApp.taglibrary
Class PageContextSearchFormRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.PageContextSearchFormRenderer
- All Implemented Interfaces:
- IConfigurable, IPageContextRenderer
- public class PageContextSearchFormRenderer
- extends java.lang.Object
- implements IPageContextRenderer
Converts a RaritanPageContext into a SearchForm.
XML Configuration Template:
<PageContextRenderer class="com.raritantechnologies.searchApp.taglibrary.PageContextSearchFormRenderer"
searchFormName="[ name of search form]"
categoryName="[ search source category ]"
hiddenFields="[ search form hidden fields=value pairs ]"
initialFields="[ initial fields ]"
action="[ action URL ]"
target="[ target window ]"
formInitArgs="[ additional form tag attribute=value string ]" />
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageContextSearchFormRenderer
public PageContextSearchFormRenderer()
render
public java.lang.String render(RaritanPageContext rpc)
- Returns the component. Works like a SearchForm custom Tag - gets the search form renderer and
renders it.
- 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