| Main | Javadoc | Example |
|
|
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.)
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.
<br><br>
<search:SearchForm
formName="ShakespeareSearchForm"
categoryName="ShakespeareGlossary"
action="BasicDisplayFormRenderer.jsp"
/>
<hr>
<results:DisplayForm
formName="ShakespeareTermDefinition" pageSize="10" />
<br>
<hr/>
<SearchForm name="ShakespeareSearchForm" category="ShakespeareGlossary" >
<Field ID="Term" type="text" width="50" name="Term" />
</SearchForm>
<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>