Revision: 1208
http://stripes.svn.sourceforge.net/stripes/?rev=1208&view=rev
Author: bengunter
Date: 2009-10-27 19:28:47 +0000 (Tue, 27 Oct 2009)
Log Message:
-----------
Applied fix for STS-631 from trunk
Modified Paths:
--------------
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
Modified:
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
===================================================================
--- branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2009-10-27 19:27:08 UTC (rev 1207)
+++ branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2009-10-27 19:28:47 UTC (rev 1208)
@@ -19,6 +19,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTag;
import java.io.IOException;
+import net.sourceforge.stripes.localization.LocalizationUtility;
/**
* <p>Tag handler for a tag that produces an HTML label tag which is capable
of looking up
@@ -106,7 +107,12 @@
}
if (label == null) {
- label = "Label could not find localized field name and had no
body.";
+ if (fieldName != null) {
+ label =
LocalizationUtility.makePseudoFriendlyName(fieldName);
+ }
+ else {
+ label = "Label could not find localized field name and had
no body nor name attribute.";
+ }
}
// Write out the tag
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development