org.broadleafcommerce.core.web.catalog.taglib
Class SearchFilterTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.broadleafcommerce.core.web.catalog.taglib.SearchFilterTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

The SearchFilterTag sets up an environment for it's children SearchFilterItemTags. If a queryString is passed in, the tag will render a textbox named queryString populated with the string passed in. It will also render a hidden input containing the same value to aid in deciding whether to do ajax loads while filtering search results or to do a full page refresh for new searches.

See Also:
Serialized Form

Field Summary
 
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
SearchFilterTag()
           
 
Method Summary
 int doStartTag()
           
 List<Category> getCategories()
           
 List<Product> getProducts()
           
 String getQueryString()
           
 void setCategories(List<Category> categories)
           
 void setProducts(List<Product> products)
           
 void setQueryString(String queryString)
           
 
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
 

Constructor Detail

SearchFilterTag

public SearchFilterTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getProducts

public List<Product> getProducts()

setProducts

public void setProducts(List<Product> products)

getCategories

public List<Category> getCategories()

setCategories

public void setCategories(List<Category> categories)

getQueryString

public String getQueryString()

setQueryString

public void setQueryString(String queryString)


Copyright © 2013. All Rights Reserved.