Re: T5: Can Grid support custom label in UTF-8 encoding?

2008-03-25 Thread Yura Tkachenko
Hi,

If you are using message catalog then Tapestry should be able to load proper
value fir the grid column.
So let's assume that in your data dource object you have property
firstName, i.e. you have method in POJO getFirstName()
Add such record to the UserList.properties:

firstName-label=Customer First Name

That's it Tapestry should be able replace grid column title automatically.

/Yura.

On Mon, Mar 24, 2008 at 10:57 PM, yuan gogo [EMAIL PROTECTED] wrote:

 I have UserList.java UserList.tml UserList.properties.
 In UserList I used a grid to show all registerd users and I'd like to
 custom
 the Grid header.
 So I defined some column titles in UserList.properties (of course, in
 Chinese and the file is UTF-8 encoding), but it can not be displayed
 correctly. English chars has no such problems.

 Anybody helps?

 TIA and Best regards!



Re: T5: Can Grid support custom label in UTF-8 encoding?

2008-03-25 Thread Yura Tkachenko
Also don't forget to encode property file in UTF-8. You can use native2ascii
tool from JDK to convert native encoded file to Unicode encoded file.

On Tue, Mar 25, 2008 at 12:15 AM, Yura Tkachenko 
[EMAIL PROTECTED] wrote:

 Hi,

 If you are using message catalog then Tapestry should be able to load
 proper value fir the grid column.
 So let's assume that in your data dource object you have property
 firstName, i.e. you have method in POJO getFirstName()
 Add such record to the UserList.properties:

 firstName-label=Customer First Name

 That's it Tapestry should be able replace grid column title automatically.

 /Yura.


 On Mon, Mar 24, 2008 at 10:57 PM, yuan gogo [EMAIL PROTECTED] wrote:

  I have UserList.java UserList.tml UserList.properties.
  In UserList I used a grid to show all registerd users and I'd like to
  custom
  the Grid header.
  So I defined some column titles in UserList.properties (of course, in
  Chinese and the file is UTF-8 encoding), but it can not be displayed
  correctly. English chars has no such problems.
 
  Anybody helps?
 
  TIA and Best regards!
 




Re: T5: Can Grid support custom label in UTF-8 encoding?

2008-03-25 Thread yuan gogo
Thank you, but did u read my post carefully?
I DID add a properties file encoding in UTF-8, and add a something-lable
which matches the data source column name.
It changed the column's title, but displayed some text which I don't expect.



2008/3/25, Yura Tkachenko [EMAIL PROTECTED]:

 Hi,

 If you are using message catalog then Tapestry should be able to load
 proper
 value fir the grid column.
 So let's assume that in your data dource object you have property
 firstName, i.e. you have method in POJO getFirstName()
 Add such record to the UserList.properties:

 firstName-label=Customer First Name

 That's it Tapestry should be able replace grid column title automatically.


 /Yura.


 On Mon, Mar 24, 2008 at 10:57 PM, yuan gogo [EMAIL PROTECTED] wrote:

  I have UserList.java UserList.tml UserList.properties.
  In UserList I used a grid to show all registerd users and I'd like to
  custom
  the Grid header.
  So I defined some column titles in UserList.properties (of course, in
  Chinese and the file is UTF-8 encoding), but it can not be displayed
  correctly. English chars has no such problems.
 
  Anybody helps?
 
  TIA and Best regards!
 



T5: Can Grid support custom label in UTF-8 encoding?

2008-03-24 Thread yuan gogo
I have UserList.java UserList.tml UserList.properties.
In UserList I used a grid to show all registerd users and I'd like to custom
the Grid header.
So I defined some column titles in UserList.properties (of course, in
Chinese and the file is UTF-8 encoding), but it can not be displayed
correctly. English chars has no such problems.

Anybody helps?

TIA and Best regards!