X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Faddressbook%2Fbeans%2Fmobileprovider%2FAddressbookAdminMobileProviderWebRequestBean.java;h=01fc8bd5edef4c1e6e300d98233f75d3c7211d56;hb=c6862a7f74dc3b2491404f6a3c42c3c5d6d68cb2;hp=b6d511b934c08dc701520f7f2b7b495e307d8596;hpb=a45f6817705b1e4e5da42f39b3e5c0675c755180;p=addressbook-war.git diff --git a/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java index b6d511b9..01fc8bd5 100644 --- a/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java @@ -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 @@ -28,6 +28,7 @@ import javax.inject.Named; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.addressbook.beans.BaseAddressbookController; import org.mxchange.jcountry.data.Country; import org.mxchange.jphone.events.AdminAddedMobileProviderEvent; import org.mxchange.jphone.events.AdminMobileProviderAddedEvent; @@ -39,11 +40,11 @@ import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider; /** * Administrative bean (controller) for mobile provider *

- * @author Roland Haeder + * @author Roland Häder */ @Named ("adminMobileProviderController") @RequestScoped -public class AddressbookAdminMobileProviderWebRequestBean implements AddressbookAdminMobileProviderWebRequestController { +public class AddressbookAdminMobileProviderWebRequestBean extends BaseAddressbookController implements AddressbookAdminMobileProviderWebRequestController { /** * Serial number @@ -113,7 +114,8 @@ public class AddressbookAdminMobileProviderWebRequestBean implements Addressbook // 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