Revision: 612
http://stripes.svn.sourceforge.net/stripes/?rev=612&view=rev
Author: bengunter
Date: 2007-10-09 08:02:58 -0700 (Tue, 09 Oct 2007)
Log Message:
-----------
Per conversation in STS-208 (<stripes:option> broken when value attribute
omitted) we need to differentiate between empty string and null in HTML
attribute values.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
2007-10-09 14:43:45 UTC (rev 611)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
2007-10-09 15:02:58 UTC (rev 612)
@@ -198,7 +198,7 @@
for (Map.Entry<String,String> attr: getAttributes().entrySet() ) {
// Skip the output of blank attributes!
String value = attr.getValue();
- if (value == null || value.length() == 0) continue;
+ if (value == null) continue;
writer.print(" ");
writer.print(attr.getKey());
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development