You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Volker Weber <us...@weber-oldenburg.de> on 2006/01/04 20:22:19 UTC

Re: svn commit: r365935 - /incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js

Arvid,

if you removed this because log() is undefined:

In tobago javascript you can use LOG.debug(), LOG.info(), LOG.warn(),
and LOG.error() for logging on client side.

Currently the error level mades no difference, but this is a todo.

If the client is in debug mode (to force this add a accepted language of
'to_ba_go' in your browser config) a normaly hidden logging panel is
rendered which can be opened by LOG.show() eg. type
"javascript:LOG.show()" in the address bar.

@Udo: This is the place where the debug output goes which i removed last
week from the created html source.

Regards,
  Volker

idus@apache.org wrote:
> Author: idus
> Date: Wed Jan  4 08:33:08 2006
> New Revision: 365935
> 
> URL: http://svn.apache.org/viewcvs?rev=365935&view=rev
> Log:
> removed debug stuff
> 
> Modified:
>     incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js
> 
> Modified: incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js
> URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js?rev=365935&r1=365934&r2=365935&view=diff
> ==============================================================================
> --- incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js (original)
> +++ incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js Wed Jan  4 08:33:08 2006
> @@ -241,9 +241,6 @@
>        if (patternSub.length == 3) {
>          var fragment = dateStr.substr(dateIndex, 3);
>          var index = this._indexOf(this.dateFormatSymbols.shortMonths, fragment);
> -        log("shortMonths: " + this.dateFormatSymbols.shortMonths);
> -        log("fragment: " + fragment);
> -        log("index: " + index);
>          if (index != -1) {
>            context.month = index;
>            context.newIndex = dateIndex + 3;
> @@ -260,7 +257,6 @@
>          this._parseNum(context, dateStr, 2, dateIndex);
>          context.month = context.retValue - 1;
>        }
> -      log("month: " + context.month);
>      } else {
>        if (patternSub.length == 3) {
>          context.dateStr += this.dateFormatSymbols.shortMonths[context.month];
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: svn commit: r365935 - /incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js

Posted by Arvid Hülsebus <ar...@atanion.com>.
Hello Volker,

the log function was used in the unit test to track down my localization 
problems --  i.e. invoking JavaScript per Rhino. I doubt that currently 
the LOG from Tobago will work inside this limited environment. Perhaps 
something like HttpUnit will provide enough DOM Level 0 and higher 
support to make this work. I will check this...

Regards,
Arvid

Volker Weber wrote:

>Arvid,
>
>if you removed this because log() is undefined:
>
>In tobago javascript you can use LOG.debug(), LOG.info(), LOG.warn(),
>and LOG.error() for logging on client side.
>
>Currently the error level mades no difference, but this is a todo.
>
>If the client is in debug mode (to force this add a accepted language of
>'to_ba_go' in your browser config) a normaly hidden logging panel is
>rendered which can be opened by LOG.show() eg. type
>"javascript:LOG.show()" in the address bar.
>
>@Udo: This is the place where the debug output goes which i removed last
>week from the created html source.
>
>Regards,
>  Volker
>
>idus@apache.org wrote:
>  
>
>>Author: idus
>>Date: Wed Jan  4 08:33:08 2006
>>New Revision: 365935
>>
>>URL: http://svn.apache.org/viewcvs?rev=365935&view=rev
>>Log:
>>removed debug stuff
>>
>>Modified:
>>    incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js
>>
>>Modified: incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js
>>URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js?rev=365935&r1=365934&r2=365935&view=diff
>>==============================================================================
>>--- incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js (original)
>>+++ incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js Wed Jan  4 08:33:08 2006
>>@@ -241,9 +241,6 @@
>>       if (patternSub.length == 3) {
>>         var fragment = dateStr.substr(dateIndex, 3);
>>         var index = this._indexOf(this.dateFormatSymbols.shortMonths, fragment);
>>-        log("shortMonths: " + this.dateFormatSymbols.shortMonths);
>>-        log("fragment: " + fragment);
>>-        log("index: " + index);
>>         if (index != -1) {
>>           context.month = index;
>>           context.newIndex = dateIndex + 3;
>>@@ -260,7 +257,6 @@
>>         this._parseNum(context, dateStr, 2, dateIndex);
>>         context.month = context.retValue - 1;
>>       }
>>-      log("month: " + context.month);
>>     } else {
>>       if (patternSub.length == 3) {
>>         context.dateStr += this.dateFormatSymbols.shortMonths[context.month];
>>
>>
>>    
>>
>
>  
>