You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by an...@apache.org on 2007/12/17 23:52:05 UTC
svn commit: r605028 - in /tapestry/tapestry4/trunk/tapestry-framework/src:
java/org/apache/tapestry/form/validator/Email.java
test/org/apache/tapestry/form/validator/TestEmail.java
Author: andyhot
Date: Mon Dec 17 14:52:02 2007
New Revision: 605028
URL: http://svn.apache.org/viewvc?rev=605028&view=rev
Log:
TAPESTRY-1902: removed require - it's already in js
Modified:
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Email.java
tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/form/validator/TestEmail.java
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Email.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Email.java?rev=605028&r1=605027&r2=605028&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Email.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/validator/Email.java Mon Dec 17 14:52:02 2007
@@ -86,9 +86,7 @@
public void renderContribution(IMarkupWriter writer, IRequestCycle cycle,
FormComponentContributorContext context, IFormComponent field)
- {
- context.addInitializationScript(field, "dojo.require(\"dojo.validate.web\");");
-
+ {
JSONObject profile = context.getProfile();
if (!profile.has(ValidationConstants.CONSTRAINTS)) {
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/form/validator/TestEmail.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/form/validator/TestEmail.java?rev=605028&r1=605027&r2=605028&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/form/validator/TestEmail.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/form/validator/TestEmail.java Mon Dec 17 14:52:02 2007
@@ -113,8 +113,6 @@
IFormComponent field = newField("Fred", "myfield");
- context.addInitializationScript(field, "dojo.require(\"dojo.validate.web\");");
-
expect(context.getProfile()).andReturn(json);
trainFormatMessage(context, null, ValidationStrings.INVALID_EMAIL,
@@ -140,8 +138,6 @@
FormComponentContributorContext context = newMock(FormComponentContributorContext.class);
IFormComponent field = newField("Fred", "barney");
-
- context.addInitializationScript(field, "dojo.require(\"dojo.validate.web\");");
expect(context.getProfile()).andReturn(json);