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

Modified Files:
        option.tagx radio.tagx 
Log Message:
made it possible to use explicit boolean value for selected,checked attributes


See also: http://cvs.mmbase.org/viewcvs/applications/taglib/META-INF/tags/mm/u


Index: option.tagx
===================================================================
RCS file: /var/cvs/applications/taglib/META-INF/tags/mm/u/option.tagx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- option.tagx 25 Aug 2008 12:49:41 -0000      1.5
+++ option.tagx 8 Nov 2008 10:21:22 -0000       1.6
@@ -46,7 +46,7 @@
     <mm:xslt xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
       <xsl:template match="option">
         <option value="${value}">
-          <c:if test="${! empty selected}">
+          <c:if test="${! empty selected and (selected eq true  or selected eq 
'true' or selected eq 'selected') }">
             <xsl:attribute name="selected">${selected}</xsl:attribute>
           </c:if>
           <c:if test="${empty selected and value eq compare}">


Index: radio.tagx
===================================================================
RCS file: /var/cvs/applications/taglib/META-INF/tags/mm/u/radio.tagx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- radio.tagx  1 Sep 2008 14:19:43 -0000       1.4
+++ radio.tagx  8 Nov 2008 10:21:22 -0000       1.5
@@ -49,7 +49,7 @@
     <mm:xslt xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
       <xsl:template match="input">
         <input value="${value}" type="${empty type ? 'radio' : type}">
-          <c:if test="${! empty checked}">
+          <c:if test="${! empty checked and (checked eq true  or checked eq 
'true' or checked eq 'checked') }">
             <xsl:attribute name="checked">${checked}</xsl:attribute>
           </c:if>
           <c:if test="${empty checked and value eq compare}">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to