From: Roland Häder Date: Wed, 24 Aug 2016 08:52:00 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=275bcf31a4c53da06e40ebddcbd7f6e71348433d;p=pizzaservice-war.git Please cherry-pick: - got rid of redundant hasFoos() as #{ no someController.allFoos().isEmpty()} works fine - renamed controller method allMobileProvider() -> allMobileProviders() Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java index 65fbcf3c..2c6a6a0c 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java @@ -203,7 +203,7 @@ public class PizzaAdminMobileProviderWebRequestBean extends BasePizzaController boolean isFound = false; // Get list of all providers - List providers = this.mobileController.allMobileProvider(); + List providers = this.mobileController.allMobileProviders(); // Get iterator from it Iterator iterator = providers.iterator(); diff --git a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestBean.java index a678b272..df08cd82 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestBean.java @@ -17,7 +17,6 @@ package org.mxchange.pizzaapplication.beans.mobileprovider; import java.text.MessageFormat; -import java.util.Collections; import java.util.List; import javax.annotation.PostConstruct; import javax.enterprise.context.SessionScoped; @@ -95,13 +94,9 @@ public class PizzaMobileProviderWebRequestBean extends BasePizzaController imple } @Override - public List allMobileProvider () { - return Collections.unmodifiableList(this.mobileProviders); - } - - @Override - public boolean hasMobileProvider () { - return (!this.mobileProviders.isEmpty()); + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List allMobileProviders () { + return this.mobileProviders; } /** diff --git a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestController.java b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestController.java index 8b4fa3fa..d4965e61 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaMobileProviderWebRequestController.java @@ -33,14 +33,7 @@ public interface PizzaMobileProviderWebRequestController extends Serializable { *

* @return A list of all mobile providers */ - List allMobileProvider (); - - /** - * Checks whether mobile providers are registered - *

- * @return Whether mobile providers are registered - */ - boolean hasMobileProvider (); + List allMobileProviders (); /** * Observes events being fired after the administrator has added a new diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl new file mode 100644 index 00000000..742cc4a2 --- /dev/null +++ b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl @@ -0,0 +1,67 @@ + + + + + +

+
+ + + + +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ + + + + +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+ +
+ +
+
+
+
+ diff --git a/web/WEB-INF/templates/generic/mobile_selection_box.tpl b/web/WEB-INF/templates/generic/mobile_selection_box.tpl index fd7e654a..65aef5bb 100644 --- a/web/WEB-INF/templates/generic/mobile_selection_box.tpl +++ b/web/WEB-INF/templates/generic/mobile_selection_box.tpl @@ -9,7 +9,7 @@ - +