]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/converter/business/basicdata/JobsBasicCompanyDataConverter.java
Don't cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / converter / business / basicdata / JobsBasicCompanyDataConverter.java
index d45ebdce0512d554b82714d5bb54180da46cd455..09ebf9f60bca3f6887ee5fc6c5917826d4f7bc51 100644 (file)
@@ -42,17 +42,8 @@ public class JobsBasicCompanyDataConverter implements Converter<BasicData> {
 
        @Override
        public BasicData getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
-               // Is the instance there?
-               if (null == BASIC_DATA_LIST_CONTROLLER) {
-                       // Get bean from CDI directly
-                       BASIC_DATA_LIST_CONTROLLER = CDI.current().select(JobsBasicDataListWebViewBean.class).get();
-               }
-
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
-                       // Warning message
-                       // @TODO Not working with JNDI (no remote interface) this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
-
                        // Return null
                        return null;
                }
@@ -60,6 +51,12 @@ public class JobsBasicCompanyDataConverter implements Converter<BasicData> {
                // Init instance
                BasicData basicData = null;
 
+               // Is the instance there?
+               if (null == BASIC_DATA_LIST_CONTROLLER) {
+                       // Get bean from CDI directly
+                       BASIC_DATA_LIST_CONTROLLER = CDI.current().select(JobsBasicDataListWebViewBean.class).get();
+               }
+
                try {
                        // Try to parse the value as long
                        final Long basicDataId = Long.valueOf(submittedValue);