// Trace message
//this.getLogger().logTrace(MessageFormat.format("allItems: list={0} - EXIT!", list));
+
// Return it
return list;
}
// Trace message
//this.getLogger().logTrace(MessageFormat.format("calculateCurrentItemPrice: totalPrice={0} - EXIT!", totalPrice));
+
// Return it
return totalPrice;
}
// Trace message
//this.getLogger().logTrace(MessageFormat.format("calculateTotalPrice: totalPrice={0} - EXIT!", totalPrice));
+
// Return final sum
return totalPrice;
}
+ @Override
+ public void clear () {
+ // Clear bean as well
+ this.basketBean.clear();
+
+ // Deligate to basket instance
+ this.basket.clear();
+ }
+
@Override
public String doChangeItem (final AddableBasketItem item) {
// Trace message
return targetPage;
}
- @Override
- public void clear () {
- // @TODO Also clear EJB
- // Deligate to basket instance
- this.basket.clear();
- }
-
@Override
public AddableBasketItem getCurrentItem () {
return this.currentItem;