Revision: 1145
http://stripes.svn.sourceforge.net/stripes/?rev=1145&view=rev
Author: fdaoud
Date: 2009-09-16 21:22:09 +0000 (Wed, 16 Sep 2009)
Log Message:
-----------
Fix for STS-631
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2009-09-16 21:21:18 UTC (rev 1144)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2009-09-16 21:22:09 UTC (rev 1145)
@@ -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® 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/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development