[
https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673305#action_12673305
]
Juergen Donnerstag commented on WICKET-2084:
--------------------------------------------
A patch you does the trick. I leave to the Javascript wizards to validate. BTW
FirebugLight provide a console feature for IE etc as well.
### Eclipse Workspace Patch 1.0
#P wicket
Index: src/main/java/org/apache/wicket/ajax/wicket-ajax-debug.js
===================================================================
--- src/main/java/org/apache/wicket/ajax/wicket-ajax-debug.js (revision
743882)
+++ src/main/java/org/apache/wicket/ajax/wicket-ajax-debug.js (working copy)
@@ -46,6 +46,21 @@
},
log : function(msg, label) {
+ if (console.log) {
+ if ( label.substring(4, 0).toUpperCase() == "INFO")
+ console.info(msg);
+ else if ( label.substring(5, 0).toUpperCase() == "DEBUG")
+ console.info(msg);
+ else if ( label.substring(5, 0).toUpperCase() == "ERROR")
+ console.info(msg);
+ else if ( label.substring(3, 0).toUpperCase() == "LOG")
+ console.info(msg);
+ else if ( label.substring(4, 0).toUpperCase() == "WARN")
+ console.info(msg);
+ else
+ console.log(label + ": " + msg);
+ }
+
WicketAjaxDebug.init();
var d = wicketGet(WicketAjaxDebug.debugWindowLogId);
var c = document.createElement("div");
> Integrate Wicket Ajax debug console to Firebug
> ----------------------------------------------
>
> Key: WICKET-2084
> URL: https://issues.apache.org/jira/browse/WICKET-2084
> Project: Wicket
> Issue Type: New Feature
> Components: wicket
> Reporter: Timo Rantalaiho
> Assignee: Timo Rantalaiho
> Fix For: 1.5-M1
>
>
> If the Firebug function called "console" exists, provide the ajax debug
> console messages also there.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.