1. go to productform page.
2. Select main Category, the java script doesn't work on choosing different
categories. It supposes to open/hide the specific fields for different
categories.
The problem is caused by the changes in the following: I reverted back to the
old version no problem after.
<form:form commandName="product" action="productform.html" method="post">
<form:hidden path="id"/>
<ul>
<li>
<a href="<c:url value="catalogform.html" />" target="catalog" ><fmt:message key="catalog.add.item" /></a>
<p>
<a name="anchor" id="anchor" onclick="fillChildren(mainCatalogy, catalogManager,'parent.id', c_children)"><fmt:message key="refresh.list" /></a>
</p>
<appfuse:label key="product.catalog" styleClass="desc" />
<select name="mainCategory" id="mainCategory" onchange="fillChildren(this, catalogManager,'parent.id', c_children); dwr.util.removeAllOptions(catalogs)"
${product.id == null ? "" : 'disabled="disabled"'}>
${pleaseSelect }
<c:forEach var="catalog" items="${catalogParents}">
<option value="${catalog.id }" ${catalog.id == parentCatalog.id ? 'selected' : '' } > ${catalog.name}</option>
</c:forEach>
</select>
</li>
Original issue reported on code.google.com by lhkh...@gmail.com on 26 Jul 2010 at 4:09
Original issue reported on code.google.com by
lhkh...@gmail.com
on 26 Jul 2010 at 4:09