You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ja...@apache.org on 2010/05/21 20:47:38 UTC
svn commit: r947126 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java
Author: jakobk
Date: Fri May 21 18:47:37 2010
New Revision: 947126
URL: http://svn.apache.org/viewvc?rev=947126&view=rev
Log:
small improvement - only get validatorId if needed
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java?rev=947126&r1=947125&r2=947126&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ValidatorTagHandlerDelegate.java Fri May 21 18:47:37 2010
@@ -210,8 +210,6 @@ public class ValidatorTagHandlerDelegate
FaceletContext faceletContext = (FaceletContext) context.getAttributes().get(
FaceletContext.FACELET_CONTEXT_KEY);
- String validatorId = _delegate.getValidatorConfig().getValidatorId();
-
// spec: if the disabled attribute is true, the validator should not be added.
// in addition, the validatorId, if present, should be added to an exclusion
// list on the parent component to prevent a default validator with the same
@@ -219,6 +217,7 @@ public class ValidatorTagHandlerDelegate
if (_delegate.isDisabled(faceletContext))
{
// tag is disabled --> add its validatorId to the parent's exclusion list
+ String validatorId = _delegate.getValidatorConfig().getValidatorId();
if (validatorId != null && !"".equals(validatorId))
{
List<String> exclusionList = (List<String>) parent.getAttributes()