]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Renamed controller method to doChangeItem() (naming convention)
authorRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 13:32:06 +0000 (14:32 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 13:32:06 +0000 (14:32 +0100)
src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java
src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionController.java
web/basket.xhtml

index 63f72d96c61f58225e90b32d094b01503d2ad53b..05e8fe6be4e9313660ae98e8cfdf661943581e16 100644 (file)
@@ -223,9 +223,9 @@ public class BasketWebSessionBean implements BasketWebSessionController {
        }
 
        @Override
-       public String changeItem (final AddableBasketItem item) {
+       public String doChangeItem (final AddableBasketItem item) {
                // Trace message
-               //this.getLogger().logTrace(MessageFormat.format("changeItem: item={0} - CALLED!", item));
+               //this.getLogger().logTrace(MessageFormat.format("doChangeItem: item={0} - CALLED!", item));
 
                // item shall not be null
                if (null == item) {
@@ -247,7 +247,7 @@ public class BasketWebSessionBean implements BasketWebSessionController {
                }
 
                // Trace message
-               //this.getLogger().logTrace(MessageFormat.format("changeItem: targetPage={0} - EXIT!", targetPage));
+               //this.getLogger().logTrace(MessageFormat.format("doChangeItem: targetPage={0} - EXIT!", targetPage));
                // Return page
                return targetPage;
        }
index f582b2a22e9bf2d850c9cc293cdee94b97b97f78..cae96a86461c7d888566be0c4fb72534a10ffb1c 100644 (file)
@@ -77,7 +77,7 @@ public interface BasketWebSessionController extends Serializable {
         * <p>
         * @return Page redirection
         */
-       String changeItem (final AddableBasketItem item);
+       String doChangeItem (final AddableBasketItem item);
 
        /**
         * Clears this basket instance
index 3d3fb58f7419eb1d5704e8af221a667fc55ca1e4..92e49ab8ea07de1d4aaa57e2a998aa4e63e01b66 100644 (file)
@@ -39,7 +39,7 @@
                                        <f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
 
                                        <h:form id="add_item">
-                                               <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.changeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
+                                               <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.doChangeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
 
                                                <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
                                                        <!--