From 9be02b7ec96e54a6cda6cdfc11995c432b706eed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2017 22:40:09 +0200 Subject: [PATCH] Please repeat: - all administrative beans must be request-scoped as they should always "forget" their data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...=> AddressbookAdminBusinessContactWebRequestBean.java} | 8 ++++---- ...ressbookAdminBusinessContactWebRequestController.java} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/java/org/mxchange/addressbook/beans/businesscontact/{AddressbookAdminBusinessContactWebSessionBean.java => AddressbookAdminBusinessContactWebRequestBean.java} (97%) rename src/java/org/mxchange/addressbook/beans/businesscontact/{AddressbookAdminBusinessContactWebSessionController.java => AddressbookAdminBusinessContactWebRequestController.java} (94%) diff --git a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestBean.java similarity index 97% rename from src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionBean.java rename to src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestBean.java index 8c0813d6..d0f821ca 100644 --- a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestBean.java @@ -18,7 +18,7 @@ package org.mxchange.addressbook.beans.businesscontact; import java.util.List; import javax.annotation.PostConstruct; -import javax.enterprise.context.SessionScoped; +import javax.enterprise.context.RequestScoped; import javax.faces.view.facelets.FaceletException; import javax.inject.Named; import javax.naming.Context; @@ -35,8 +35,8 @@ import org.mxchange.jcountry.data.Country; * @author Roland Häder */ @Named ("adminBusinessDataController") -@SessionScoped -public class AddressbookAdminBusinessContactWebSessionBean extends BaseAddressbookController implements AddressbookAdminBusinessContactWebSessionController { +@RequestScoped +public class AddressbookAdminBusinessContactWebRequestBean extends BaseAddressbookController implements AddressbookAdminBusinessContactWebRequestController { /** * Serial number @@ -106,7 +106,7 @@ public class AddressbookAdminBusinessContactWebSessionBean extends BaseAddressbo /** * Constructor */ - public AddressbookAdminBusinessContactWebSessionBean () { + public AddressbookAdminBusinessContactWebRequestBean () { // Call super constructor super(); } diff --git a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionController.java b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestController.java similarity index 94% rename from src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionController.java rename to src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestController.java index 9b913ec4..d99b84ac 100644 --- a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebSessionController.java +++ b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookAdminBusinessContactWebRequestController.java @@ -27,7 +27,7 @@ import org.mxchange.jcontactsbusiness.BusinessBasicData; * @author Roland Häder */ @Local -public interface AddressbookAdminBusinessContactWebSessionController extends Serializable { +public interface AddressbookAdminBusinessContactWebRequestController extends Serializable { /** * Returns a list of all business contacts -- 2.39.5