]> git.mxchange.org Git - addressbook-war.git/blobdiff - src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java
updated own name and resources
[addressbook-war.git] / src / java / org / mxchange / addressbook / beans / mobileprovider / AddressbookAdminMobileProviderWebRequestBean.java
index 3ba0d243d96364431b86a5a936f6c0664fe74106..01fc8bd5edef4c1e6e300d98233f75d3c7211d56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Haeder
+ * Copyright (C) 2016 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -40,7 +40,7 @@ import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
 /**
  * Administrative bean (controller) for mobile provider
  * <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
  */
 @Named ("adminMobileProviderController")
 @RequestScoped
@@ -114,7 +114,8 @@ public class AddressbookAdminMobileProviderWebRequestBean extends BaseAddressboo
                // Is the provider already created?
                if (this.isMobileProviderCreated(mobileProvider)) {
                        // Then throw exception
-                       throw new FaceletException(new MobileProviderAlreadyAddedException(mobileProvider));
+                       this.showFacesMessage("form_add_mobile_provider:providerDialPrefix", new MobileProviderAlreadyAddedException(mobileProvider)); //NOI18N
+                       return ""; //NOI18N
                }
 
                // Init variable