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:
parent
8cd54743d5
commit
1081648126
2 changed files with 23 additions and 16 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue