You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Timo Rantalaiho (JIRA)" <ji...@apache.org> on 2009/02/06 00:15:59 UTC

[jira] Created: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

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.


[jira] Updated: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-2084:
----------------------------------

    Fix Version/s: 1.5-M3
                       (was: 1.5-M2)

> 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-M3
>
>
> 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.


[jira] Commented: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924329#action_12924329 ] 

Hudson commented on WICKET-2084:
--------------------------------

Integrated in Apache Wicket 1.5.x #450 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/450/])
    WICKET-2084 Integrate Wicket Ajax debug console to Firebug

Log errors in browsers' console if available (Firebug and similar). This way errors will get developers' attention easier and sooner.


> 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: Martin Grigorov
>             Fix For: 1.5-M3
>
>
> 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.


[jira] Commented: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Assigned: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-2084:
---------------------------------------

    Assignee: Martin Grigorov  (was: Timo Rantalaiho)

> 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: Martin Grigorov
>             Fix For: 1.5-M3
>
>
> 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.


[jira] Updated: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-2084:
----------------------------------

    Fix Version/s: 1.5-M2
                       (was: 1.5-M1)

> 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-M2
>
>
> 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.


[jira] Resolved: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-2084.
-------------------------------------

    Resolution: Fixed

With r1026808 I added logic to log just errors in browsers' console if available.
Wicket supports just INFO and ERROR. I think INFO will be too much to be logged in the console that's why only ERROR is logged.
Please re-open the ticket if something else is needed.

> 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: Martin Grigorov
>             Fix For: 1.5-M3
>
>
> 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.


[jira] Commented: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673505#action_12673505 ] 

Martin Grigorov commented on WICKET-2084:
-----------------------------------------

A little correction for the patch above: console.*info* is used for all the logging levels, it should be console.info(), console.debug(), console.error(), console.warn() ...

Apart of that I'm a bit concerned about info, debug and log. Console API doesn't provide means how to set the minimal logging level and I think it would be too much to log anything but warn and error. If you want to see all the details then you could open the Debug window but it would be useful to see the red icon of Firebug blinking when there are errors in the Ajax response processing.

> 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.


[jira] Commented: (WICKET-2084) Integrate Wicket Ajax debug console to Firebug

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671034#action_12671034 ] 

Martin Grigorov commented on WICKET-2084:
-----------------------------------------

This will be useful for IE8 as well.

> 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.