You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John Coleman <jo...@sopranewellandbudge.com> on 2006/11/22 17:03:34 UTC

how to internationalise titles

Has anyone found out how to internationalise title attributes?

eg:
<table class="datalist" title="List of Agencies">

how about this:

<table class="datalist" title="<span key="msgkey">List of Agencies</span>">

Looks terrible, not valid markup.




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


Re: how to internationalise titles

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Read these docs:
http://tapestry.apache.org/tapestry4.1/usersguide/template.html#Specifying%20parameters
http://tapestry.apache.org/tapestry4.1/usersguide/template.html#Formal%20and%20informal%20parameters

Parameters in the .page/.jwc file (or annotations, I presume)
override literal attributes in the template.

So in the template you would have:
<table jwcid="myTable" title="Preview Title"> ...

And in a .page file:
<component id="myTable" type="Any">
     <binding name="title" expression="message:title">
</component>

Cheers,
Nick.


John Coleman wrote:
> Jesse Kuhnert <jkuhnert <at> gmail.com> writes:
> 
>> Do you mean something like?:
>>
>> <table jwcid=" <at> Any" title="message:title" >
>>
> 
> Thanks. But if I use @Any, then I can't have a static value to represent the 
> dynamic value when I view the template in a browser.
> 
> Some components (like buttons) support a dynamic label attribute that will 
> replace the value at run time. Is there anything like that.
> 
> It seems I may need to make my own @Any-ish component to replace the alt and 
> title attributes dynamically when I need to.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

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


Re: how to internationalise titles

Posted by John Coleman <jo...@sopranewellandbudge.com>.
Jesse Kuhnert <jkuhnert <at> gmail.com> writes:

> 
> Do you mean something like?:
> 
> <table jwcid=" <at> Any" title="message:title" >
> 

Thanks. But if I use @Any, then I can't have a static value to represent the 
dynamic value when I view the template in a browser.

Some components (like buttons) support a dynamic label attribute that will 
replace the value at run time. Is there anything like that.

It seems I may need to make my own @Any-ish component to replace the alt and 
title attributes dynamically when I need to.


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


Re: how to internationalise titles

Posted by Jesse Kuhnert <jk...@gmail.com>.
Do you mean something like?:

<table jwcid="@Any" title="message:title" >

On 11/22/06, John Coleman <jo...@sopranewellandbudge.com> wrote:
> Has anyone found out how to internationalise title attributes?
>
> eg:
> <table class="datalist" title="List of Agencies">
>
> how about this:
>
> <table class="datalist" title="<span key="msgkey">List of Agencies</span>">
>
> Looks terrible, not valid markup.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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


Re: how to internationalise titles

Posted by Rodrigo Barberá <rb...@tecgraf.puc-rio.br>.
I'd use the @Any component:

<table jwcid="@Any" class="datalist" title="message:msgkey">


Cheers
Rodrigo



John Coleman wrote:
> Has anyone found out how to internationalise title attributes?
>
> eg:
> <table class="datalist" title="List of Agencies">
>
> how about this:
>
> <table class="datalist" title="<span key="msgkey">List of Agencies</span>">
>
> Looks terrible, not valid markup.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   


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