com.ibm.ccd.ui.tags
Class UISearchCriteriaTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.ibm.ccd.ui.tags.UISearchCriteriaTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
UILookupTableSearchCriteriaTag

public class UISearchCriteriaTag
extends javax.servlet.jsp.tagext.TagSupport

To Generate the Search Criteria HTML. The class generates the HTMl for the SearcH Criteria Form. It renders the actual HTML compnent depending on the type of SearchCriteriaElement.

See Also:
Serialized Form

Field Summary
protected  BaseSearchElement[] orderedElements
           
protected  javax.servlet.jsp.JspWriter out
          to write the HTML output.
protected  org.apache.jetspeed.portlet.PortletRequest request
          the scope object.
protected  java.util.ArrayList searchAttributes
          the search atributes.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
UISearchCriteriaTag()
           
 
Method Summary
 int doStartTag()
          This method is the first method that gets called for Custom Tags.
 void generateSearchTable()
          This method generates the Search Form Table.
protected  void renderLookupTableSearchButton(BaseSearchElement searchElement)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected javax.servlet.jsp.JspWriter out
to write the HTML output.


request

protected org.apache.jetspeed.portlet.PortletRequest request
the scope object.


searchAttributes

protected java.util.ArrayList searchAttributes
the search atributes.


orderedElements

protected BaseSearchElement[] orderedElements
Constructor Detail

UISearchCriteriaTag

public UISearchCriteriaTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This method is the first method that gets called for Custom Tags. The doStartTag() method initializes output stream.and calls the generate SearchTable. This method initializes the SearchCriteriaElements to be used by the generateSearchTable().

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int
Throws:
javax.servlet.jsp.JspException

generateSearchTable

public void generateSearchTable()
                         throws java.io.IOException
This method generates the Search Form Table. The generateSearchTable() checks if the Search Criteria Element is a simple Text Type, or a Dropdown or a Lookup.Depending upon the Search Criteria Element it generates the appropriate html.

Throws:
javax.servlet.jsp.JspException
java.io.IOException

renderLookupTableSearchButton

protected void renderLookupTableSearchButton(BaseSearchElement searchElement)
                                      throws java.io.IOException
Throws:
java.io.IOException