[jbosstools-commits] JBoss Tools SVN: r23831 - in trunk/vpe: tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data and 2 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jul 30 06:25:13 EDT 2010


Author: dvinnichek
Date: 2010-07-30 06:25:12 -0400 (Fri, 30 Jul 2010)
New Revision: 23831

Added:
   trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
   trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
Modified:
   trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
   trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java
Log:
add tests for form:checkboxes

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-30 09:43:02 UTC (rev 23830)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml	2010-07-30 10:25:12 UTC (rev 23831)
@@ -42,7 +42,7 @@
 			<vpe:if test="attrpresent('itemLabel')">
 				<vpe:template children="no" modify="no">
 					<span class="vpe-text">
-						<input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+						<input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}"
 							disabled="disabled" />
 						<label>
 							<vpe:value expr="{@items}.{@itemLabel}" />
@@ -55,7 +55,7 @@
 			</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}1" style="{@cssStyle}" class="{@cssClass}"
 						disabled="disabled" />
 					<label>
 						<vpe:value expr="{@items}" />
@@ -69,7 +69,7 @@
 		<vpe:if test="attrpresent('itemLabel')">
 			<vpe:template children="no" modify="no">
 				<span class="vpe-text">
-					<input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
+					<input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}" />
 					<label>
 						<vpe:value expr="{@items}.{@itemLabel}" />
 					</label>
@@ -81,7 +81,7 @@
 		</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}1" style="{@cssStyle}" class="{@cssClass}" />
 				<label>
 					<vpe:value expr="{@items}" />
 				</label>

Added: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java	                        (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java	2010-07-30 10:25:12 UTC (rev 23831)
@@ -0,0 +1,23 @@
+package org.jboss.tools.vpe.spring.test.springtest.data;
+
+public class User {
+
+	private String firstName;
+	private String lastName;
+
+	public String getFirstName() {
+		return firstName;
+	}
+
+	public void setFirstName(String firstName) {
+		this.firstName = firstName;
+	}
+
+	public String getLastName() {
+		return lastName;
+	}
+
+	public void setLastName(String lastName) {
+		this.lastName = lastName;
+	}
+}


Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Author Id Revision Date
Name: svn:eol-style
   + native

Added: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml	                        (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml	2010-07-30 10:25:12 UTC (rev 23831)
@@ -0,0 +1,20 @@
+<tests>
+	<test id="checkboxes1">
+		<span>
+			<input id="checkboxes11" name="selectedCategories" type="checkbox"/>
+			<label>${formBean.availableCategories}</label>
+		</span>
+	</test>
+	<test id="checkboxes2">
+		<span>
+			<input id="checkboxes21" name="selectedCategories" class="tall-checkbox" style="width: 30px;" type="checkbox"/>
+			<label>${formBean.availableCategories}</label>
+		</span>
+	</test>
+	<test id="checkboxes3">
+		<span>
+			<input id="checkboxes31" name="selectedCategories" disabled="disabled" type="checkbox"/>
+			<label>${formBean.availableCategories}.id</label>
+		</span>
+	</test>
+</tests>
\ No newline at end of file


Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java	2010-07-30 09:43:02 UTC (rev 23830)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java	2010-07-30 10:25:12 UTC (rev 23831)
@@ -37,6 +37,11 @@
 		performTestForVpeComponent((IFile)TestUtil.getResource(
 				"src/main/webapp/WEB-INF/jsp/checkbox.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
 	}
+	
+	public void testCheckboxes() throws Throwable {
+		performTestForVpeComponent((IFile)TestUtil.getResource(
+				"src/main/webapp/WEB-INF/jsp/checkboxes.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+	}
 
 	public void testForm() throws Throwable {
 		performTestForVpeComponent((IFile)TestUtil.getResource(



More information about the jbosstools-commits mailing list