Update of /var/cvs/applications/taglib/META-INF/tags/mm/u
In directory james.mmbase.org:/tmp/cvs-serv16651
Modified Files:
Tag: MMBase-1_8
option.tagx
Log Message:
MMB-1692
See also: http://cvs.mmbase.org/viewcvs/applications/taglib/META-INF/tags/mm/u
See also: http://www.mmbase.org/jira/browse/MMB-1692
Index: option.tagx
===================================================================
RCS file: /var/cvs/applications/taglib/META-INF/tags/mm/u/option.tagx,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -b -r1.2.2.1 -r1.2.2.2
--- option.tagx 2 Jul 2007 10:14:01 -0000 1.2.2.1
+++ option.tagx 23 Jul 2008 09:17:15 -0000 1.2.2.2
@@ -16,6 +16,7 @@
<jsp:directive.attribute name="value" required="true" />
<jsp:directive.attribute name="compare" />
+ <jsp:directive.attribute name="compareset" type="java.util.Collection" />
<jsp:directive.attribute name="referid" />
<!-- other attribute are simply copied -->
@@ -48,6 +49,9 @@
<c:if test="${empty selected and value eq compare}">
<xsl:attribute name="selected">selected</xsl:attribute>
</c:if>
+ <c:if test="${empty selected and (! empty compareset) and
mm:contains(compareset, value)}">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </c:if>
<c:if test="${! empty disabled}">
<xsl:attribute name="disabled">${disabled}</xsl:attribute>
</c:if>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs