Author: hlship
Date: Tue Nov  1 23:12:27 2011
New Revision: 1196380

URL: http://svn.apache.org/viewvc?rev=1196380&view=rev
Log:
Remove the BindingsMessages class

Removed:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/BindingsMessages.java
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/internal/bindings/BindingsStrings.properties
Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/AbstractBinding.java
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ValidateBindingFactory.java

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/AbstractBinding.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/AbstractBinding.java?rev=1196380&r1=1196379&r2=1196380&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/AbstractBinding.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/AbstractBinding.java
 Tue Nov  1 23:12:27 2011
@@ -1,4 +1,4 @@
-// Copyright 2006 The Apache Software Foundation
+// Copyright 2006, 2011 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.
@@ -42,7 +42,7 @@ public abstract class AbstractBinding ex
      */
     public void set(Object value)
     {
-        throw new TapestryException(BindingsMessages.bindingIsReadOnly(this), 
this, null);
+        throw new TapestryException(String.format("Binding %s is read-only.", 
this), this, null);
     }
 
     /**

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ValidateBindingFactory.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ValidateBindingFactory.java?rev=1196380&r1=1196379&r2=1196380&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ValidateBindingFactory.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ValidateBindingFactory.java
 Tue Nov  1 23:12:27 2011
@@ -1,4 +1,4 @@
-// Copyright 2006, 2008, 2009 The Apache Software Foundation
+// Copyright 2006, 2008, 2009, 2011 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.
@@ -47,7 +47,7 @@ public class ValidateBindingFactory impl
         Object fieldAsObject = component.getComponent();
 
         if (!Field.class.isInstance(fieldAsObject))
-            throw new 
TapestryException(BindingsMessages.validateBindingForFieldsOnly(component),
+            throw new TapestryException(String.format("Component '%s' is not a 
field (it does not implement the Field interface) and may not be used with the 
validate: binding prefix.", component.getCompleteId()),
                                         location, null);
 
         final Field field = (Field) fieldAsObject;


Reply via email to