NIHVIVO-200 Redid previous commit so span tag is not in the custom tag itself, since it messes up other front end links. Just test the value in the JSP before outputting the span tag.

This commit is contained in:
rjy7 2010-03-19 15:50:43 +00:00
parent 8cd54743d5
commit 1081648126
2 changed files with 23 additions and 16 deletions

View file

@ -146,15 +146,12 @@ public class PropertyEditLinks extends TagSupport{
} else {
try{
JspWriter out = pageContext.getOut();
if( links != null && links.length > 0){
// Include the wrapping span here, rather than in the JSP, so if there are no links we don't get the span.
out.print("<span class=\"editLinks\">");
if( links != null){
for( LinkStruct ln : links ){
if( ln != null ){
out.print( makeElement( ln ) + '\n' );
}
}
out.print("</span>");
}
} catch(IOException ioe){
log.error( ioe );