Author: hlship
Date: Thu Aug 14 16:13:01 2008
New Revision: 686083
URL: http://svn.apache.org/viewvc?rev=686083&view=rev
Log:
TAPESTRY-2585: Email validator requires Void constraint type, should be null
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Parameter.java
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/OutputRaw.java
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/validator/Email.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Parameter.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Parameter.java?rev=686083&r1=686082&r2=686083&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Parameter.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Parameter.java
Thu Aug 14 16:13:01 2008
@@ -84,10 +84,14 @@
* have more than a single principal parameter.
*/
boolean principal() default false;
-
+
/**
- * Used to create a binding to be used as a parameter default without to
provide a default binding method.
- * If true, then the container's property matching the component id is
used to bind the parameter.
+ * Used to create a default binding, connecting the parameter to a
property of the container whose property name
+ * matches the id of the component. This is frequently used for form
element components. This default binding is
+ * only used parameter is not bound.
+ *
+ * @see
org.apache.tapestry5.services.ComponentDefaultProvider#defaultBinding(String,
+ * org.apache.tapestry5.ComponentResources)
*/
boolean autoconnect() default false;
}
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/OutputRaw.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/OutputRaw.java?rev=686083&r1=686082&r2=686083&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/OutputRaw.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/OutputRaw.java
Thu Aug 14 16:13:01 2008
@@ -1,4 +1,4 @@
-// Copyright 2007 The Apache Software Foundation
+// Copyright 2007, 2008 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/validator/Email.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/validator/Email.java?rev=686083&r1=686082&r2=686083&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/validator/Email.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/validator/Email.java
Thu Aug 14 16:13:01 2008
@@ -38,7 +38,7 @@
public Email()
{
- super(Void.class, String.class, "invalid-email");
+ super(null, String.class, "invalid-email");
}
public void render(Field field, Void constraintValue, MessageFormatter
formatter, MarkupWriter markupWriter,