From 75ee99236e63cf8db71bb38c03bc1d381ad87486 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2017 22:34:35 +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 --- ...java => FinancialsAdminBusinessContactWebRequestBean.java} | 4 ++-- ...> FinancialsAdminBusinessContactWebRequestController.java} | 2 +- .../FinancialsBusinessContactWebSessionBean.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/java/org/mxchange/jfinancials/beans/businesscontact/{FinancialsAdminBusinessContactWebSessionBean.java => FinancialsAdminBusinessContactWebRequestBean.java} (97%) rename src/java/org/mxchange/jfinancials/beans/businesscontact/{FinancialsAdminBusinessContactWebSessionController.java => FinancialsAdminBusinessContactWebRequestController.java} (94%) diff --git a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionBean.java b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestBean.java similarity index 97% rename from src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionBean.java rename to src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestBean.java index d213b854..5bf79438 100644 --- a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionBean.java +++ b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestBean.java @@ -36,7 +36,7 @@ import org.mxchange.jfinancials.beans.BaseFinancialsController; */ @Named ("adminBusinessDataController") @SessionScoped -public class FinancialsAdminBusinessContactWebSessionBean extends BaseFinancialsController implements FinancialsAdminBusinessContactWebSessionController { +public class FinancialsAdminBusinessContactWebRequestBean extends BaseFinancialsController implements FinancialsAdminBusinessContactWebRequestController { /** * Serial number @@ -106,7 +106,7 @@ public class FinancialsAdminBusinessContactWebSessionBean extends BaseFinancials /** * Constructor */ - public FinancialsAdminBusinessContactWebSessionBean () { + public FinancialsAdminBusinessContactWebRequestBean () { // Call super constructor super(); } diff --git a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionController.java b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestController.java similarity index 94% rename from src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionController.java rename to src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestController.java index 29e959d3..10f78c82 100644 --- a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionController.java +++ b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebRequestController.java @@ -27,7 +27,7 @@ import org.mxchange.jcontactsbusiness.BusinessBasicData; * @author Roland Häder */ @Local -public interface FinancialsAdminBusinessContactWebSessionController extends Serializable { +public interface FinancialsAdminBusinessContactWebRequestController extends Serializable { /** * Returns a list of all business contacts diff --git a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionBean.java b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionBean.java index 76c04b59..93aa94f9 100644 --- a/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionBean.java +++ b/src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionBean.java @@ -17,7 +17,7 @@ package org.mxchange.jfinancials.beans.businesscontact; import javax.annotation.PostConstruct; -import javax.enterprise.context.SessionScoped; +import javax.enterprise.context.RequestScoped; import javax.faces.view.facelets.FaceletException; import javax.inject.Inject; import javax.inject.Named; @@ -35,7 +35,7 @@ import org.mxchange.jfinancials.beans.user.login.FinancialsUserLoginWebSessionCo * @author Roland Häder */ @Named ("businessDataController") -@SessionScoped +@RequestScoped public class FinancialsBusinessContactWebSessionBean extends BaseFinancialsController implements FinancialsBusinessContactWebSessionController { /** -- 2.39.5