myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r761786 - /myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java
Date Fri, 03 Apr 2009 20:46:18 GMT
Author: gpetracek
Date: Fri Apr  3 20:46:18 2009
New Revision: 761786

URL: http://svn.apache.org/viewvc?rev=761786&view=rev
Log:
EXTVAL-34 check for placeholder labels

Modified:
    myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java

Modified: myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java?rev=761786&r1=761785&r2=761786&view=diff
==============================================================================
--- myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java
(original)
+++ myfaces/extensions/validator/trunk/component-support/trinidad-support/src/main/java/org/apache/myfaces/extensions/validator/trinidad/util/TrinidadUtils.java
Fri Apr  3 20:46:18 2009
@@ -43,6 +43,11 @@
     public static UIComponent findLabeledEditableComponent(CoreOutputLabel coreOutputLabel)
     {
         //TODO
+        if(coreOutputLabel.getFor() == null)
+        {
+            return null;
+        }
+
         FacesContext facesContext = FacesContext.getCurrentInstance();
         UIComponent result = facesContext.getViewRoot().findComponent(coreOutputLabel.getFor());
 



Mime
View raw message