Pass the event to the event handler in HeaderResponse.renderOnEventJavascript 
------------------------------------------------------------------------------

                 Key: WICKET-1553
                 URL: https://issues.apache.org/jira/browse/WICKET-1553
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.3.2
         Environment: Any
            Reporter: Martin Grigorov
            Priority: Trivial



Index: 
wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/internal/HeaderResponse.java
===================================================================
--- 
wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/internal/HeaderResponse.java
        (revision 648178)
+++ 
wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/internal/HeaderResponse.java
        (working copy)
@@ -312,7 +312,7 @@
                        {
                                
renderJavascriptReference(WicketEventReference.INSTANCE);
                                JavascriptUtils.writeJavascript(getResponse(), 
"Wicket.Event.add(" + target +
-                                       ", \"" + event + "\", function() { " + 
javascript + ";});");
+                                       ", \"" + event + "\", function(event) { 
" + javascript + ";});");
                                markRendered(token);
                        }
                }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to