Author: vgritsenko
Date: Mon May  2 13:34:49 2005
New Revision: 165679

URL: http://svn.apache.org/viewcvs?rev=165679&view=rev
Log:
output widget does not support validators

Modified:
    
cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/formmodel/OutputDefinition.java

Modified: 
cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/formmodel/OutputDefinition.java
URL: 
http://svn.apache.org/viewcvs/cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/formmodel/OutputDefinition.java?rev=165679&r1=165678&r2=165679&view=diff
==============================================================================
--- 
cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/formmodel/OutputDefinition.java
 (original)
+++ 
cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/formmodel/OutputDefinition.java
 Mon May  2 13:34:49 2005
@@ -1,12 +1,12 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ * Copyright 1999-2005 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.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -15,13 +15,19 @@
  */
 package org.apache.cocoon.forms.formmodel;
 
+import org.apache.cocoon.forms.validation.WidgetValidator;
+
 /**
  * The [EMAIL PROTECTED] WidgetDefinition} part of a [EMAIL PROTECTED] Output} 
widget.
- * 
+ *
  * @version $Id$
  */
 public class OutputDefinition extends AbstractDatatypeWidgetDefinition {
     public Widget createInstance() {
         return new Output(this);
+    }
+
+    public void addValidator(WidgetValidator validator) {
+        throw new UnsupportedOperationException("Output widget does not 
support validators");
     }
 }


Reply via email to