Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/WEB-INF/tags/edit
In directory
james.mmbase.org:/tmp/cvs-serv2575/cmsc/edit-webapp/src/webapp/WEB-INF/tags/edit
Modified Files:
ui-tab.tag
Log Message:
CMSC-990 add title support of ui-tab tag.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/WEB-INF/tags/edit
See also: http://www.mmbase.org/jira/browse/CMSC-990
Index: ui-tab.tag
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/WEB-INF/tags/edit/ui-tab.tag,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ui-tab.tag 27 Jul 2008 09:08:05 -0000 1.3
+++ ui-tab.tag 31 Jul 2008 05:42:24 -0000 1.4
@@ -1,5 +1,6 @@
<%@ tag body-content="scriptless" %>
<%@ attribute name="key" rtexprvalue="true" required="true" %>
+<%@ attribute name="title" rtexprvalue="true" required="true" %>
<%@ attribute name="active" rtexprvalue="true" required="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
@@ -11,7 +12,16 @@
<div class="${class}">
<div class="body">
<div>
+ <c:choose>
+ <c:when test="${empty title}">
<a href="${action}"><fmt:message key="${key}"/></a>
+ </c:when>
+ <c:otherwise>
+ <a href="${action}">${title}</a>
+ </c:otherwise>
+ </c:choose>
</div>
</div>
</div>
\ No newline at end of file
+
+
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs