You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/07/03 12:26:48 UTC
svn commit: r960194 -
/click/trunk/click/framework/src/org/apache/click/control/Submit.java
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);
}
/**