Revision: 1142
          http://stripes.svn.sourceforge.net/stripes/?rev=1142&view=rev
Author:   fdaoud
Date:     2009-09-16 21:18:16 +0000 (Wed, 16 Sep 2009)

Log Message:
-----------
Fix for STS-702

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java    
2009-09-16 21:17:03 UTC (rev 1141)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java    
2009-09-16 21:18:16 UTC (rev 1142)
@@ -27,7 +27,7 @@
  * <ul>
  *   <li>formName.buttonName from the localized resource bundle</li>
  *   <li>buttonName from the localized resource bundle</li>
- *   <li>the body of the tag</li>
+ *   <li>the trimmed body of the tag</li>
  *   <li>the value attribute of the tag</li>
  * </ul>
  *
@@ -79,7 +79,7 @@
             getAttributes().put("value", localizedValue);
         }
         else if (body != null) {
-            getAttributes().put("value", body);
+            getAttributes().put("value", body.trim());
         }
         else if (this.value != null) {
             getAttributes().put("value", this.value);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to