]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/converter/business/opening_time/JobsCompanyOpeningTimeConverter.java
Don't cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / converter / business / opening_time / JobsCompanyOpeningTimeConverter.java
index 26e6db1b35c73b76fbbef5bb66eba942a3650e55..2d0a0c3266d41a1b21eaca358cbfabafb1f0b7b0 100644 (file)
@@ -24,8 +24,8 @@ import javax.faces.convert.ConverterException;
 import javax.faces.convert.FacesConverter;
 import org.mxchange.jcontactsbusiness.exceptions.opening_time.OpeningTimeNotFoundException;
 import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
-import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestBean;
-import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestController;
+import org.mxchange.jjobs.beans.business.opening_time.list.JobsOpeningTimeListWebViewBean;
+import org.mxchange.jjobs.beans.business.opening_time.list.JobsOpeningTimeListWebViewController;
 
 /**
  * Converter for opening time id <-> instance
@@ -38,7 +38,7 @@ public class JobsCompanyOpeningTimeConverter implements Converter<OpeningTime> {
        /**
         * Opening time backing bean
         */
-       private static JobsOpeningTimeWebRequestController OPENING_TIMES_LIST_CONTROLLER;
+       private static JobsOpeningTimeListWebViewController OPENING_TIMES_LIST_CONTROLLER;
 
        @Override
        public OpeningTime getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
@@ -59,13 +59,13 @@ public class JobsCompanyOpeningTimeConverter implements Converter<OpeningTime> {
                        final Long openingTimeId = Long.valueOf(submittedValue);
 
                        // Is the instance there?
-                       if (null == OPENING_TIME_LIST_CONTROLLER) {
+                       if (null == OPENING_TIMES_LIST_CONTROLLER) {
                                // Get bean from CDI directly
-                               OPENING_TIME_LIST_CONTROLLER = CDI.current().select(FinancialsOpeningTimeListWebViewBean.class).get();
+                               OPENING_TIMES_LIST_CONTROLLER = CDI.current().select(JobsOpeningTimeListWebViewBean.class).get();
                        }
 
                        // Try to get user instance from it
-                       openingTime = OPENING_TIME_LIST_CONTROLLER.findOpeningTimeById(openingTimeId);
+                       openingTime = OPENING_TIMES_LIST_CONTROLLER.findOpeningTimeById(openingTimeId);
                } catch (final NumberFormatException ex) {
                        // Throw again
                        throw new ConverterException(ex);