### Eclipse Workspace Patch 1.0 #P stripes-svn-1.5.5.1 Index: stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java =================================================================== --- stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java (revision 1358) +++ stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java (working copy) @@ -412,7 +412,21 @@ this.errorRenderer.doBeforeStartTag(); } - return doStartInputTag(); + int result = doStartInputTag(); + + // Try looking up the title tag for any Input tag except a Label + if (!(this instanceof InputLabelTag)) { + String name = getAttributes().get("name"); + if (name != null) { // Skip title lookup if no name to lookup against + String title = getLocalizedFieldName(name + ".title"); + // If we got a non-blank title then set the attribute + if ((title != null) && (title.length() > 0)) { setTitle(title); } + // Otherwise we have no title so if one was previously set then clear it + else if (getTitle() != null) { setTitle(null); } + } + } + + return result; } /** @@ -569,5 +583,7 @@ public void setSize(String size) { set("size", size); } public String getSize() { return get("size"); } + public void setTitle(String title) { set("title", title); } + public String getTitle() { return get("title"); } }