Author: gseitz
Date: Fri Nov 23 13:03:39 2007
New Revision: 597737

URL: http://svn.apache.org/viewvc?rev=597737&view=rev
Log:
WICKET-1176: removed check in LabelAjaxBehavior#onEvent

Modified:
    
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java

Modified: 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java?rev=597737&r1=597736&r2=597737&view=diff
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java
 Fri Nov 23 13:03:39 2007
@@ -38,13 +38,13 @@
 /**
  * An implementation of ajaxified edit-in-place component using a [EMAIL 
PROTECTED] TextField} as it's editor.
  * <p>
- * There are several methods that can be overriden for customization.
+ * There are several methods that can be overridden for customization.
  * <ul>
  * <li>[EMAIL PROTECTED] #onEdit(AjaxRequestTarget)} is called when the label 
is clicked and the editor is to
- * be displayed. The default implementation switches the label for the editor 
and places the curret
+ * be displayed. The default implementation switches the label for the editor 
and places the caret
  * at the end of the text. </li>
  * <li>[EMAIL PROTECTED] #onSubmit(AjaxRequestTarget)} is called when in edit 
mode, the user submitted new
- * content, that content validated well, and the model value succesfully 
updated. This
+ * content, that content validated well, and the model value successfully 
updated. This
  * implementation also clears any <code>window.status</code> set. </li>
  * <li>[EMAIL PROTECTED] #onError(AjaxRequestTarget)} is called when in edit 
mode, the user submitted new
  * content, but that content did not validate. Get the current input by calling
@@ -58,7 +58,7 @@
  * <code>window.status</code>, redisplays the editor, selects the editor's 
content and sets the
  * focus on it.
  * <li>[EMAIL PROTECTED] #onCancel(AjaxRequestTarget)} is called when in edit 
mode, the user choose not to
- * submit the contents (he/she pressed espace). The default implementation 
displays the label again
+ * submit the contents (he/she pressed escape). The default implementation 
displays the label again
  * without any further action.</li>
  * </ul>
  * </p>
@@ -152,10 +152,7 @@
 
                protected void onEvent(AjaxRequestTarget target)
                {
-                       if (AjaxEditableLabel.this.isEnabled())
-                       {
-                               onEdit(target);
-                       }
+                       onEdit(target);
                }
        }
 
@@ -414,9 +411,9 @@
        }
 
        /**
-        * Invoked when the editor was succesfully updated. Use this method 
e.g. to persist the changed
-        * value. This implemention displays the label and clears any window 
status that might have been
-        * set in onError.
+        * Invoked when the editor was successfully updated. Use this method 
e.g. to persist the changed
+        * value. This implementation displays the label and clears any window 
status that might have
+        * been set in onError.
         * 
         * @param target
         *            The ajax request target


Reply via email to