You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/06/18 04:15:17 UTC

t5: how to use Blackbird?

Hi,

after upgrading my app to T5.1.0.5, I see this blackbird.js in the browser,
how to use this to log some info instead of alert? thanks,

Angelo
-- 
View this message in context: http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24085319.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: how to use Blackbird?

Posted by Andrew Court <an...@gmail.com>.
Blackbird use is in the documentation
http://tapestry.apache.org/tapestry5.1/guide/ajax.html under Client-side
Logging




Angelo Chen wrote:
> 
> Hi,
> 
> cool, this works, is there a way to turn this off in the production mode?
> otherwise we have to remove those Logging.info("you are impossible to see
> this"), my users do see this:), anyway it's a nice feature, I like this
> logging thing.
> 
> Angelo
> 
> 
> Ray Fortycoats wrote:
>> 
>> To use the Blackbird logging in Tapestry, you need to use
>> 'Tapestry.Logging'
>> instead of the 'log' prefix
>> 
>> e.g  Tapestry.Logging.info('test');
>> 
>> This is defined in the blackbird.js file in the core Tapestry package.
>> 
>> 
>> 
>> On Thu, Jun 18, 2009 at 6:05 AM, Angelo Chen
>> <an...@yahoo.com.hk>wrote:
>> 
>>>
>>> i did:
>>> log.info('test')
>>> but Firebug says: log undefined.
>>>
>>>
>>> Thiago H. de Paula Figueiredo wrote:
>>> >
>>> > Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen
>>> > <an...@yahoo.com.hk> escreveu:
>>> >
>>> >> after upgrading my app to T5.1.0.5, I see this blackbird.js in the
>>> >> browser,
>>> >> how to use this to log some info instead of alert? thanks,
>>> >
>>> > What about the Blackbrid documentation?
>>> > http://www.gscottolson.com/blackbirdjs/
>>> >
>>> > --
>>> > Thiago H. de Paula Figueiredo
>>> > Independent Java consultant, developer, and instructor
>>> > http://www.arsmachina.com.br/thiago
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> > For additional commands, e-mail: users-help@tapestry.apache.org
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24086448.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24144015.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: how to use Blackbird?

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi,

cool, this works, is there a way to turn this off in the production mode?
otherwise we have to remove those Logging.info("you are impossible to see
this"), my users do see this:), anyway it's a nice feature, I like this
logging thing.

Angelo


Ray Fortycoats wrote:
> 
> To use the Blackbird logging in Tapestry, you need to use
> 'Tapestry.Logging'
> instead of the 'log' prefix
> 
> e.g  Tapestry.Logging.info('test');
> 
> This is defined in the blackbird.js file in the core Tapestry package.
> 
> 
> 
> On Thu, Jun 18, 2009 at 6:05 AM, Angelo Chen
> <an...@yahoo.com.hk>wrote:
> 
>>
>> i did:
>> log.info('test')
>> but Firebug says: log undefined.
>>
>>
>> Thiago H. de Paula Figueiredo wrote:
>> >
>> > Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen
>> > <an...@yahoo.com.hk> escreveu:
>> >
>> >> after upgrading my app to T5.1.0.5, I see this blackbird.js in the
>> >> browser,
>> >> how to use this to log some info instead of alert? thanks,
>> >
>> > What about the Blackbrid documentation?
>> > http://www.gscottolson.com/blackbirdjs/
>> >
>> > --
>> > Thiago H. de Paula Figueiredo
>> > Independent Java consultant, developer, and instructor
>> > http://www.arsmachina.com.br/thiago
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24086448.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24130325.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: how to use Blackbird?

Posted by 王刚 <ja...@gmail.com>.
so you can define a variable to shorten that statementvar log =
Tapestry.Logging;


On Fri, Jun 19, 2009 at 4:43 PM, Ray <fo...@gmail.com> wrote:

> To use the Blackbird logging in Tapestry, you need to use
> 'Tapestry.Logging'
> instead of the 'log' prefix
>
> e.g  Tapestry.Logging.info('test');
>
> This is defined in the blackbird.js file in the core Tapestry package.
>
>
>
> On Thu, Jun 18, 2009 at 6:05 AM, Angelo Chen <angelochen960@yahoo.com.hk
> >wrote:
>
> >
> > i did:
> > log.info('test')
> > but Firebug says: log undefined.
> >
> >
> > Thiago H. de Paula Figueiredo wrote:
> > >
> > > Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen
> > > <an...@yahoo.com.hk> escreveu:
> > >
> > >> after upgrading my app to T5.1.0.5, I see this blackbird.js in the
> > >> browser,
> > >> how to use this to log some info instead of alert? thanks,
> > >
> > > What about the Blackbrid documentation?
> > > http://www.gscottolson.com/blackbirdjs/
> > >
> > > --
> > > Thiago H. de Paula Figueiredo
> > > Independent Java consultant, developer, and instructor
> > > http://www.arsmachina.com.br/thiago
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24086448.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: t5: how to use Blackbird?

Posted by Ray <fo...@gmail.com>.
To use the Blackbird logging in Tapestry, you need to use 'Tapestry.Logging'
instead of the 'log' prefix

e.g  Tapestry.Logging.info('test');

This is defined in the blackbird.js file in the core Tapestry package.



On Thu, Jun 18, 2009 at 6:05 AM, Angelo Chen <an...@yahoo.com.hk>wrote:

>
> i did:
> log.info('test')
> but Firebug says: log undefined.
>
>
> Thiago H. de Paula Figueiredo wrote:
> >
> > Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen
> > <an...@yahoo.com.hk> escreveu:
> >
> >> after upgrading my app to T5.1.0.5, I see this blackbird.js in the
> >> browser,
> >> how to use this to log some info instead of alert? thanks,
> >
> > What about the Blackbrid documentation?
> > http://www.gscottolson.com/blackbirdjs/
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java consultant, developer, and instructor
> > http://www.arsmachina.com.br/thiago
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24086448.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: t5: how to use Blackbird?

Posted by Angelo Chen <an...@yahoo.com.hk>.
i did:
log.info('test')
but Firebug says: log undefined.


Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen  
> <an...@yahoo.com.hk> escreveu:
> 
>> after upgrading my app to T5.1.0.5, I see this blackbird.js in the  
>> browser,
>> how to use this to log some info instead of alert? thanks,
> 
> What about the Blackbrid documentation?  
> http://www.gscottolson.com/blackbirdjs/
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/t5%3A-how-to-use-Blackbird--tp24085319p24086448.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: how to use Blackbird?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 17 Jun 2009 23:15:17 -0300, Angelo Chen  
<an...@yahoo.com.hk> escreveu:

> after upgrading my app to T5.1.0.5, I see this blackbird.js in the  
> browser,
> how to use this to log some info instead of alert? thanks,

What about the Blackbrid documentation?  
http://www.gscottolson.com/blackbirdjs/

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org