Hello Trevor,
consider this scenario
we have category "Electronics" with 5 products under it with 5 different manufactures
we have another category "House Hold" with 0 products under it
click on Electronics category and ProductsBody.jsp will show 5 products and the drop down of 5 manufactures, no problem good.
then next click on "House Hold" category, ProductsBody.jsp will show that there is no products under this category,
but the previous screen's drop down of 5 manufactures is shown in this House Hold category
see the attached screen shot
regards
Sony
To workaround this bug, replace in ProductsBody.jsp:
<logic:greaterThan name="prodMgr" property="currentManufacturersLength" value="1">
<html:form action="/FilterProd.do"><span class="small"><bean:message key="products.body.show"/>:</span>
<html:select name="FilterByManufacturerForm" property="manufacturerId" onchange="submit()">
<html:option key="products.body.all.manufacturers" value="<%=searchAll%>"></html:option>
<html:options collection="manuArray" property="id" labelProperty="name"></html:options>
</html:select>
</html:form>
</logic:greaterThan>
to this:
<logic:greaterThan name="prodMgr" property="currentManufacturersLength" value="1">
<logic:greaterThan name="prodMgr" property="numberOfProducts" value="0">
<html:form action="/FilterProd.do"><span class="small"><bean:message key="products.body.show"/>:</span>
<html:select name="FilterByManufacturerForm" property="manufacturerId" onchange="submit()">
<html:option key="products.body.all.manufacturers" value="<%=searchAll%>"></html:option>
<html:options collection="manuArray" property="id" labelProperty="name"></html:options>
</html:select>
</html:form>
</logic:greaterThan>
</logic:greaterThan>