click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r930610 - /click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
Date Sun, 04 Apr 2010 02:32:30 GMT
Author: sabob
Date: Sun Apr  4 02:32:30 2010
New Revision: 930610

URL: http://svn.apache.org/viewvc?rev=930610&view=rev
Log:
lookup context only once, not in loop

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java?rev=930610&r1=930609&r2=930610&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/cayenne/PropertySelect.java Sun Apr
 4 02:32:30 2010
@@ -630,6 +630,7 @@ public class PropertySelect extends Sele
                 getOptionList().add(Option.EMPTY_OPTION);
             }
 
+            Context context = getContext();
             Map cache = new HashMap();
 
             for (int i = 0; i < list.size(); i++) {
@@ -639,7 +640,7 @@ public class PropertySelect extends Sele
                 Object label = null;
 
                 if (getDecorator() != null) {
-                    label = getDecorator().render(dataObject, getContext());
+                    label = getDecorator().render(dataObject, context);
 
                 } else {
                     if (getOptionLabel() == null) {



Mime
View raw message