public interface PizzaApplication extends Application {
/**
* HTTP parameter "amount"
+ * @deprecated Don't use this in upcoming JSF
*/
+ @Deprecated
public static final String HTTP_PARAM_AMOUNT = "amount"; //NOI18N
- /**
- * HTTP parameter "itemId"
- */
- public static final String HTTP_PARAM_ITEM_ID = "itemId"; //NOI18N
-
- /**
- * HTTP parameter "itemType"
- */
- public static final String HTTP_PARAM_ITEM_TYPE = "itemType"; //NOI18N
-
- /**
- * Session key "ordered"
- */
- public static final String SESSION_ORDERED = "ordered"; //NOI18N
-
/**
* Mask for all parameters
* @deprecated Please refacture!
*/
public void init (final ServletContext context) throws UnsupportedDatabaseBackendException, SQLException, IOException, BadTokenException;
- /**
- * Checks whether the given product is choosen, request overules session.
- *
- * @param product Product instance
- * @param request Request instance
- * @param session Session instance
- * @return Whether the product is choosen
- * @deprecated Old lost code
- */
- @Deprecated
- public boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session);
-
/**
* Some "getter" for HTML code 'checked="checked"' if the product is choosen
*
}
}
- @Override
@Deprecated
- public boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session) {
+ private boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session) {
throw new UnsupportedOperationException("This method is deprecated and shall not be called");
}
* @param session Session instance
* @param attribute Attribute to get value from
* @return Value from session
- * @deprecated
+ * @deprecated Old lost code
*/
@Deprecated
private Object getValueFromSession (final Product product, final HttpSession session, final String attribute) {
*/
public void init () throws FacesException;
- /**
- * Checks whether the given product is choosen, request overules session.
- *
- * @param product Product instance
- * @param request Request instance
- * @param session Session instance
- * @return Whether the product is choosen
- * @deprecated Old lost code
- */
- @Deprecated
- public boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session);
-
/**
* Some "getter" for HTML code 'checked="checked"' if the product is choosen
*
return this.app.getAllCategories();
}
- /**
- * Checks whether the given product is choosen, request overules session.
- *
- * @param product Product instance
- * @param request Request instance
- * @param session Session instance
- * @return Whether the product is choosen
- */
- @Override
- @Deprecated
- public boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session) {
- return this.app.isProductChoosen(product, request, session);
- }
-
/**
* Somewhat setter in session
*
<tr>
<td class="table_data_column">
<input class="submit" type="submit" name="add" value="Hinzufügen" />
- <input type="hidden" name="<%=PizzaApplication.HTTP_PARAM_ITEM_ID%>" value="${product.itemId}" />
- <input type="hidden" name="<%=PizzaApplication.HTTP_PARAM_ITEM_TYPE%>" value="Product" />
+ <input type="hidden" name="itemId%>" value="${product.itemId}" />
+ <input type="hidden" name="itemType" value="Product" />
</td>
<td class="table_data_column">
- <input class="input" type="text" name="<%=PizzaApplication.HTTP_PARAM_AMOUNT%>" size="3" maxlength="20" />
+ <input class="input" type="text" name="amount" size="3" maxlength="20" />
</td>
<td class="table_data_column">
${product.title}