From 7e597704af901f5702f09910e0e81a4114a2beb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2017 22:43:16 +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 --- ...n.java => JobsAdminBusinessContactWebRequestBean.java} | 8 ++++---- ... => JobsAdminBusinessContactWebRequestController.java} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/java/org/mxchange/jjobs/beans/businesscontact/{JobsAdminBusinessContactWebSessionBean.java => JobsAdminBusinessContactWebRequestBean.java} (96%) rename src/java/org/mxchange/jjobs/beans/businesscontact/{JobsAdminBusinessContactWebSessionController.java => JobsAdminBusinessContactWebRequestController.java} (94%) diff --git a/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestBean.java similarity index 96% rename from src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionBean.java rename to src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestBean.java index 4f2f3bee..e38d6156 100644 --- a/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestBean.java @@ -18,7 +18,7 @@ package org.mxchange.jjobs.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.jjobs.beans.BaseJobsController; * @author Roland Häder */ @Named ("adminBusinessDataController") -@SessionScoped -public class JobsAdminBusinessContactWebSessionBean extends BaseJobsController implements JobsAdminBusinessContactWebSessionController { +@RequestScoped +public class JobsAdminBusinessContactWebRequestBean extends BaseJobsController implements JobsAdminBusinessContactWebRequestController { /** * Serial number @@ -106,7 +106,7 @@ public class JobsAdminBusinessContactWebSessionBean extends BaseJobsController i /** * Constructor */ - public JobsAdminBusinessContactWebSessionBean () { + public JobsAdminBusinessContactWebRequestBean () { // Call super constructor super(); } diff --git a/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionController.java b/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestController.java similarity index 94% rename from src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionController.java rename to src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestController.java index 38fb4aec..f5aac981 100644 --- a/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebRequestController.java @@ -27,7 +27,7 @@ import org.mxchange.jcontactsbusiness.BusinessBasicData; * @author Roland Häder */ @Local -public interface JobsAdminBusinessContactWebSessionController extends Serializable { +public interface JobsAdminBusinessContactWebRequestController extends Serializable { /** * Returns a list of all business contacts -- 2.39.5