[jbosstools-commits] JBoss Tools SVN: r23796 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Jul 29 10:32:29 EDT 2010
Author: dvinnichek
Date: 2010-07-29 10:32:29 -0400 (Thu, 29 Jul 2010)
New Revision: 23796
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
add template for <form:checkboxes> according to https://jira.jboss.org/browse/JBIDE-6711
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-29 14:20:12 UTC (rev 23795)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-29 14:32:29 UTC (rev 23796)
@@ -2,24 +2,21 @@
<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <vpe:template-taglib
- uri="http://www.springframework.org/tags/form"
+ <vpe:template-taglib uri="http://www.springframework.org/tags/form"
prefix="form" />
- <vpe:template-taglib
- uri="http://www.springframework.org/tags"
+ <vpe:template-taglib uri="http://www.springframework.org/tags"
prefix="spring" />
- <vpe:template-taglib
- uri="http://www.springframework.org/security/tags"
+ <vpe:template-taglib uri="http://www.springframework.org/security/tags"
prefix="security" />
<vpe:tag name="form:checkbox" case-sensitive="yes">
<vpe:if test="@disabled='true'">
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}"
- class="{@cssClass}" disabled="disabled"/>
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" />
<label>
- <vpe:value expr="{@label}"/>
+ <vpe:value expr="{@label}" />
</label>
</span>
<vpe:dnd>
@@ -29,10 +26,9 @@
</vpe:if>
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}"
- class="{@cssClass}"/>
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
<label>
- <vpe:value expr="{@label}"/>
+ <vpe:value expr="{@label}" />
</label>
</span>
<vpe:dnd>
@@ -41,9 +37,64 @@
</vpe:template>
</vpe:tag>
+ <vpe:tag name="form:checkboxes" case-sensitive="yes">
+ <vpe:if test="@disabled='true'">
+ <vpe:if test="attrpresent('itemLabel')">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" />
+ <label>
+ <vpe:value expr="{@items}.{@itemLabel}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" />
+ <label>
+ <vpe:value expr="{@items}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="attrpresent('itemLabel')">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
+ <label>
+ <vpe:value expr="{@items}.{@itemLabel}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
+ <label>
+ <vpe:value expr="{@items}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
<vpe:tag name="form:form" case-sensitive="yes">
<vpe:template children="yes" modify="yes">
- <form id="{@id}" style="{@cssStyle}" class="{@cssClass}"/>
+ <form id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
<vpe:dnd>
<vpe:drag start-enable="yes" />
<vpe:drop container="yes" />
More information about the jbosstools-commits
mailing list