com.raritantechnologies.searchApp.query.taglibrary
Class ReadQueriesSearchElementTableRenderer

java.lang.Object
  extended bycom.raritantechnologies.searchApp.query.taglibrary.ReadQueriesSearchElementTableRenderer
All Implemented Interfaces:
IConfigurable, ISearchElementRenderer

public class ReadQueriesSearchElementTableRenderer
extends java.lang.Object
implements ISearchElementRenderer

Basic SearchElementRenderer that can read selected queries from a persistent store and execute them within a Search Form context. This is done by pushing the query parameters into the search form using Javascript.

XML Configuration Template:
  <SearchElementRenderer 
     rendererClass="com.raritantechnologies.searchApp.query.taglibrary.ReadQueriesSearchElementRenderer"
     applicationName="[The application name - needed if mixed schema in persistant store]"
     selectField="[name of html dropdown field]"
     delimiter="[character used to separate values]"
     numberOfRows="[number of rows to display in results. defaults to 10]"
     queryReader="[name of query reader system object (alternate to QueryReader tag)]" >

    <QueryReader class="[Implementation class of IQueryResultSetReader]" >
      <!-- Parameters needed by QueryReader class -->
    </QueryReader>

    <!-- parameters to be extracted from the Page Context -->
    <SearchParams>
      <Param ID="[a request param ID]" />
      <Param ID="[another param ID]" />
    </SearchParams>

  </SearchElementRenderer>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
ReadQueriesSearchElementTableRenderer()
           
 
Method Summary
 java.lang.String getBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
          Returns the element html fragment.
 ISearchElementRenderer getRenderer(java.lang.String name)
          Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.
 void initialize(org.w3c.dom.Element elem)
          Initialize renderer-specific parameters from the configuration XML tag.
 boolean isHidden(ISearchFormRenderer parent, RaritanPageContext pageContext)
           
 void setEnable(boolean enabled)
          Enable/Disable the renderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadQueriesSearchElementTableRenderer

public ReadQueriesSearchElementTableRenderer()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: ISearchElementRenderer
Initialize renderer-specific parameters from the configuration XML tag.

Specified by:
initialize in interface ISearchElementRenderer

getBody

public java.lang.String getBody(ISearchFormRenderer parent,
                                RaritanPageContext pageContext)
Description copied from interface: ISearchElementRenderer
Returns the element html fragment.

Specified by:
getBody in interface ISearchElementRenderer

isHidden

public boolean isHidden(ISearchFormRenderer parent,
                        RaritanPageContext pageContext)
Specified by:
isHidden in interface ISearchElementRenderer

setEnable

public void setEnable(boolean enabled)
Description copied from interface: ISearchElementRenderer
Enable/Disable the renderer. Disabled renderers are not included in the html output of an ISearchFormRenderer.

Specified by:
setEnable in interface ISearchElementRenderer

getRenderer

public ISearchElementRenderer getRenderer(java.lang.String name)
Description copied from interface: ISearchElementRenderer
Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.

Specified by:
getRenderer in interface ISearchElementRenderer