click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r960194 - /click/trunk/click/framework/src/org/apache/click/control/Submit.java
Date Sat, 03 Jul 2010 10:26:48 GMT
Author: sabob
Date: Sat Jul  3 10:26:48 2010
New Revision: 960194

URL: http://svn.apache.org/viewvc?rev=960194&view=rev
Log:
delegate to setValue

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Submit.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Submit.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Submit.java?rev=960194&r1=960193&r2=960194&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Submit.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Submit.java Sat Jul  3 10:26:48
2010
@@ -180,13 +180,14 @@ public class Submit extends Button {
      */
     @Override
     public void bindRequestValue() {
-        this.value = getContext().getRequestParameter(getName());
+        String requestValue = getContext().getRequestParameter(getName());
 
-        if (value != null) {
+        if (requestValue != null) {
             this.clicked = true;
         } else {
             this.clicked = false;
         }
+        setValue(requestValue);
     }
 
     /**



Mime
View raw message