MainJavadocExample
BasicDisplayFormRenderer Demo

This demo uses a BasicDisplayFormRenderer to show the results of a search on the Shakespeare Glossary. (For details on how this source is created see the ResultParserFormatter demo.)


Enter a Shakespearean term (for example try: 'bodkin' or 'Tickle-brain' ):
Term:  

No Results

This demo has a limitation in that you must provide a valid search term in order to get a definition. For an improvement on this demo, see the BrowseLinkElementRenderer demo in which a browse list of all of the available search terms is provided to add in query term selection.


JSP for the SearchForm and DisplayForm custom tags used on this page:

<br><br>
  <search:SearchForm
     formName="ShakespeareSearchForm" 
     categoryName="ShakespeareGlossary"
     action="BasicDisplayFormRenderer.jsp"
   />
<hr>
  <results:DisplayForm
    formName="ShakespeareTermDefinition" pageSize="10" />
<br>
<hr/>

XML Configuration for this page:
SearchForm (uses the BasicSearchFormRenderer see more detailed example.):
  <SearchForm name="ShakespeareSearchForm" category="ShakespeareGlossary" >
     <Field ID="Term" type="text" width="50" name="Term" />
  </SearchForm>

Source Map - maps the category "ShakespeareGlossary" to the corresponding SearchSource object:

DisplayForm:
  <DisplayForms>
    <DisplayForm name="ShakespeareTermDefinition" 
      rendererClass="com.raritantechnologies.searchApp.taglibrary.BasicDisplayFormRenderer"
      headerWidth="200" resultWidth="640" noResultsMessage="" >

    <Field ID="Term"        type="text" name="Term" />
    <Field ID="Definition"  type="text" name="Definition" />

  </DisplayForm>