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

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.broadleafcommerce.core.web.catalog.taglib.AbstractCatalogTag
          extended by org.broadleafcommerce.core.web.catalog.taglib.GetProductsByCategoryIdTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class GetProductsByCategoryIdTag
extends AbstractCatalogTag

This class is for demonstration purposes only. It contains a call to catalogService.findActiveProductsByCategory, which may return a large list. A more performant solution would be to utilize data paging techniques.


Field Summary
 
Fields inherited from class org.broadleafcommerce.core.web.catalog.taglib.AbstractCatalogTag
catalogService
 
Constructor Summary
GetProductsByCategoryIdTag()
           
 
Method Summary
 void doTag()
           
 long getCategoryId()
           
 String getVar()
           
 void setCategoryId(long categoryId)
           
 void setVar(String var)
           
 
Methods inherited from class org.broadleafcommerce.core.web.catalog.taglib.AbstractCatalogTag
getCatalogService, setCatalogService, toVariableName
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetProductsByCategoryIdTag

public GetProductsByCategoryIdTag()
Method Detail

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException

getVar

public String getVar()

setVar

public void setVar(String var)

getCategoryId

public long getCategoryId()

setCategoryId

public void setCategoryId(long categoryId)


Copyright © 2013. All Rights Reserved.