]> git.mxchange.org Git - jjobs-war.git/commitdiff
Injection is not working in converters/validators as JavaEE is not so super-flexible ...
authorRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 08:45:37 +0000 (10:45 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 08:56:10 +0000 (10:56 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/validator/password/JobsUserPasswordValidator.java

index c35e83803f34bab6ed7804d38a2f64a9b29d2a59..3c7a64a58bb127a0a955ed66ad1562a9c4281a30 100644 (file)
@@ -17,7 +17,6 @@
 package org.mxchange.jjobs.validator.password;
 
 import java.text.MessageFormat;
-import javax.faces.application.FacesMessage;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 import javax.faces.validator.FacesValidator;
@@ -27,9 +26,6 @@ import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcoreee.validator.string.BaseStringValidator;
-import org.mxchange.jusercore.container.login.LoginContainer;
-import org.mxchange.jusercore.container.login.UserLoginContainer;
-import org.mxchange.jusercore.model.user.UserUtils;
 
 /**
  * A validator for validating passwords (if they match with stored)
@@ -69,6 +65,8 @@ public class JobsUserPasswordValidator extends BaseStringValidator implements Va
                // Pre-validation (example: not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFields, false);
 
+               /*
+                * @TODO injection is not working in converters. No, JavaEE is not so super-flexible.
                // value is known to be an entered password, so instance login container
                LoginContainer container = new UserLoginContainer(this.userLoginController.getLoggedInUser(), (String) value);
 
@@ -77,6 +75,7 @@ public class JobsUserPasswordValidator extends BaseStringValidator implements Va
                        // Password mismatches
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Password mismatching.", "The password the user has entered does not match the stored password.")); //NOI18N
                }
+                */
 
                // Trace message
                // NOISY-DEBUG: this.loggerBeanLocal.logTrace("validate: EXIT!"); //NOI18N