Revision: 915
http://stripes.svn.sourceforge.net/stripes/?rev=915&view=rev
Author: bengunter
Date: 2008-05-20 07:08:24 -0700 (Tue, 20 May 2008)
Log Message:
-----------
Further fix for STS-496 to make it work when the link tag has param tags inside
it. Write the URL if the body is null, 0-length or just whitespace.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java 2008-05-20
13:36:17 UTC (rev 914)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java 2008-05-20
14:08:24 UTC (rev 915)
@@ -65,7 +65,7 @@
set("href", buildUrl());
writeOpenTag(getPageContext().getOut(), "a");
String body = getBodyContentAsString();
- if (body == null) {
+ if (body == null || body.trim().length() == 0) {
body = get("href");
}
if (body != null) {
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development