com.raritantechnologies.searchApp.taglibrary
Class DynamicHyperlinkRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.DynamicHyperlinkRenderer
- All Implemented Interfaces:
- IConfigurable, ICustomTag
- public class DynamicHyperlinkRenderer
- extends java.lang.Object
- implements ICustomTag
ICustomTag that can render a Hyperlink either statically or dynamically (using a search source
to look up href and display from a HTTP request parameter or user parameters.
XML Configuration Template:
<LabelRenderer class="com.raritantechnologies.searchApp.taglibrary.DynamicHyperlinkRenderer"
href="[ fixed href ]"
display="[ fixed display ]"
hrefParam="[ http request parameter with href ]"
displayParam="[ http request parameter with display ]" >
<!-- Alternatively: href and display can be acquired from a search source -->
<SearchSource name="[ name of search source for dynamic lookup ]"
hrefResultField="[ field in result that has href ]"
displayResultField="[ field in result that has display ]" >
<!-- one or more SearchParam tags -->
<SearchParam requestParam="[ name of http request parameter ]"
searchParam="[ name of field in search request ]" />
<!-- one or more FixedParam tags -->
<FixedParam name="param name" value="param value" />
</SearchSource>
</LabelRenderer>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicHyperlinkRenderer
public DynamicHyperlinkRenderer()
getBody
public java.lang.String getBody(RaritanPageContext rpc)
- Description copied from interface:
ICustomTag
- Returns the tag body.
- Specified by:
getBody in interface ICustomTag
- 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
initialize
public void initialize(java.util.Map initParams)
- Specified by:
initialize in interface ICustomTag