Update of /var/cvs/applications/taglib/META-INF/tags/mm/u
In directory james.mmbase.org:/tmp/cvs-serv3094

Modified Files:
        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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- radio.tagx  25 Aug 2008 12:49:42 -0000      1.3
+++ radio.tagx  1 Sep 2008 14:19:43 -0000       1.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

Reply via email to