Skip to content

Commit

Permalink
Fix issue 4551, don't compare class name and skip CDIValidator
Browse files Browse the repository at this point in the history
Signed-off-by: Chao Wang <chaowan@redhat.com>
  • Loading branch information
soul2zimate committed Mar 19, 2019
1 parent e979887 commit ab09c3f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@

package com.sun.faces.facelets.tag.jsf;

import com.sun.faces.cdi.CdiValidator;
import com.sun.faces.component.validator.ComponentValidators;
import com.sun.faces.facelets.tag.MetaRulesetImpl;
import com.sun.faces.util.Util;
Expand Down Expand Up @@ -121,7 +122,7 @@ public void applyAttachedObject(FacesContext context, UIComponent parent) {
boolean found = false;

for (Validator validator : validators) {
if (validator.getClass().equals(v.getClass())) {
if (validator.getClass().equals(v.getClass()) && !(v instanceof CdiValidator)) {
found = true;
break;
}
Expand Down

0 comments on commit ab09c3f

Please sign in to comment.