* @return All categories
* @throws javax.servlet.ServletException If anything went wrong
*/
- public Iterator<Category> getCategories () throws ServletException;
+ public Iterator<Category> getAllCategories () throws ServletException;
/**
* Checks if given Product instance is available and returns a printable
* @return All categories
*/
@Override
- public Iterator<Category> getCategories () throws ServletException {
+ public Iterator<Category> getAllCategories () throws ServletException {
// Trace message
this.getLogger().trace("CALLED!");
* @return All categories
* @throws javax.servlet.ServletException If anything went wrong
*/
- public Iterator<Category> getCategories () throws ServletException;
+ public Iterator<Category> getAllCategories () throws ServletException;
/**
* Checks if given Product instance is available and returns a printable
* @return All categories
*/
@Override
- public Iterator<Category> getCategories () throws ServletException {
- return this.app.getCategories();
+ public Iterator<Category> getAllCategories () throws ServletException {
+ return this.app.getAllCategories();
}
/**
</thead>
<tbody>
- <c:forEach var="category" items="${controller.categories}">
+ <c:forEach var="category" items="${controller.allCategories}">
<tr>
<td>
${category.categoryId}:
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
<select class="select" name="<%=CategoryFrontend.COLUMN_ID%>" size="1">
- <c:forEach var="category" items="${controller.categories}">
+ <c:forEach var="category" items="${controller.allCategories}">
<option value="${category.categoryId}">${category.decodedTitle}</option>
</c:forEach>
</select>
<select class="select" name="<%=CategoryFrontend.COLUMN_PARENT%>" size="1">
<option value="">Ist oberste Kategorie</option>
- <c:forEach var="category" items="${controller.categories}">
+ <c:forEach var="category" items="${controller.allCategories}">
<option value="${category.categoryId}">${category.decodedTitle}</option>
</c:forEach>
</select>