myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1296489 - /myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java
Date Fri, 02 Mar 2012 21:55:32 GMT
Author: lu4242
Date: Fri Mar  2 21:55:32 2012
New Revision: 1296489

URL: http://svn.apache.org/viewvc?rev=1296489&view=rev
Log:
MYFACES-3448 UISelectOne.validateValue(...) optimised & refactored (Thanks to David Law
for provide this patch)

Modified:
    myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java?rev=1296489&r1=1296488&r2=1296489&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java (original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UISelectOne.java Fri
Mar  2 21:55:32 2012
@@ -81,12 +81,14 @@ public class UISelectOne extends UIInput
             {
                 return; // Matched & Required false, so return ok.
             }
-            if (! _SelectItemsUtil.isNoSelectionOption(context, this, value, new _SelectItemsIterator(this,
context), converter))
+            if (! _SelectItemsUtil.isNoSelectionOption(context, this, value, 
+                    new _SelectItemsIterator(this, context), converter))
             {
                 return; // Matched & Required true & No-selection did NOT match,
so return ok.
             }
         }
-        _MessageUtils.addErrorMessage(context, this, INVALID_MESSAGE_ID, new Object[] {_MessageUtils.getLabel(context,
this) });
+        _MessageUtils.addErrorMessage(context, this, INVALID_MESSAGE_ID, 
+                new Object[] {_MessageUtils.getLabel(context, this) });
         setValid(false);
     }
 }



Mime
View raw message