Update of /var/cvs/applications/taglib/META-INF/tags/mm/u
In directory james.mmbase.org:/tmp/cvs-serv3051
Modified Files:
Tag: MMBase-1_8
radio.tagx
Log Message:
support for compareset
See also: http://cvs.mmbase.org/viewcvs/applications/taglib/META-INF/tags/mm/u
Index: radio.tagx
===================================================================
RCS file: /var/cvs/applications/taglib/META-INF/tags/mm/u/radio.tagx,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -b -r1.1.2.3 -r1.1.2.4
--- radio.tagx 25 Aug 2008 12:50:02 -0000 1.1.2.3
+++ radio.tagx 1 Sep 2008 14:18:58 -0000 1.1.2.4
@@ -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 -->
@@ -54,6 +55,9 @@
<c:if test="${empty checked and value eq compare}">
<xsl:attribute name="checked">checked</xsl:attribute>
</c:if>
+ <c:if test="${empty checked and (! empty compareset) and
mm:contains(compareset, value)}">
+ <xsl:attribute name="checked">checked</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