This is an automated email from the ASF dual-hosted git repository.

dashorst pushed a commit to branch archive/wicket-1.1.x
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit d7eb8f3298bea07e6bfc5f4a9c71c962b6bf5762
Author: Igor Vaynberg <[email protected]>
AuthorDate: Wed Nov 16 02:08:45 2005 +0000

    [ 1357755 ] button does not use model properly
    
    
    git-svn-id: 
https://svn.apache.org/repos/asf/incubator/wicket/branches/WICKET_1_1@458054 
13f79535-47bb-0310-9956-ffa450edef68
---
 wicket/src/java/wicket/markup/html/form/Button.java | 2 +-
 wicket/xdocs/changes.xml                            | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/wicket/src/java/wicket/markup/html/form/Button.java 
b/wicket/src/java/wicket/markup/html/form/Button.java
index a85725c493..46d22dccff 100644
--- a/wicket/src/java/wicket/markup/html/form/Button.java
+++ b/wicket/src/java/wicket/markup/html/form/Button.java
@@ -147,7 +147,7 @@ public class Button extends FormComponent
 
                try
                {
-                       String value = getValue();
+                       String value = getModelObjectAsString();
                        if (value != null && !"".equals(value))
                        {
                                tag.put("value", value);
diff --git a/wicket/xdocs/changes.xml b/wicket/xdocs/changes.xml
index b02d04fa71..88c27ac98f 100644
--- a/wicket/xdocs/changes.xml
+++ b/wicket/xdocs/changes.xml
@@ -13,6 +13,7 @@
     <release version="1.1.1" date="tbd" description="Wicket 1.1.1">
       <action type="update" dev="Igor Vaynberg" issue="1345198">Added label 
tags for generated input tags in CheckBoxMultipleChoice and RadioChoice</action>
       <action type="fix" dev="Juergen Donnerstag">Fixed autolink NPE 
problem</action>
+      <action type="fix" dev="Igor Vaynberg" issue="1357755">Fixed bug in 
button that caused the value attirbute to disappear after form submit</action>
     </release>
     <release version="1.1" date="2005-10-30" description="Wicket 1.1 final">
       <action type="fix" dev="Juergen Donnerstag" issue="1339686" 
due-to="Janne Hietamäki">fixed: Invalid Panel markup throws weird 
exception</action>

Reply via email to