You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michal Hybler <m....@email.cz> on 2009/02/09 14:50:36 UTC
InMethod DataGrid Localization
Hi,
is there any support for localization in DataGrid? I need to substitute cell
content of explicit column.
For example:
I have row state and it can reach 3 values (created, updated, deleted) in my
database but I want show substitutes for that values in my dataGrid (in
other language).
Is there any examples?
Thnx for any suggestions.
Michal
--
View this message in context: http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: InMethod DataGrid Localization
Posted by Michal Hybler <m....@email.cz>.
Thnx for help this should be sufficient.
ryantxu wrote:
>
> For that you may want to try overriding newCell in
> AbstractLightWeightColumn
>
> public IRenderable newCell(IModel rowModel) {
> return new IRenderable() {
> public void render(IModel rowModel, Response response) {
> return "your localized text"
> }
> };
> }
>
>
> On Feb 9, 2009, at 10:02 AM, Michal Hybler wrote:
>
>>
>> Thanks for your help but I dont need to substitute header but the
>> content of
>> rows in explicit collumn.
>>
>> id | color | state
>> ------------------------------------------
>> 1 | red | created
>> 2 | blue | updated
>>
>> In this example page which describes database table I need to
>> substitute the
>> bold strings. Instead of "created" i want "new" for example. Is
>> there way to
>> do this by using *.properties file like in case of "state" header?
>>
>>
>> Thnx for help.
>> Michal
>>
>>
>> ryantxu wrote:
>>>
>>> Yes -- check the examples. I think all of them use an external
>>> properties file to declare the header row display.
>>>
>>>
>>> On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:
>>>
>>>>
>>>> Hi,
>>>> is there any support for localization in DataGrid? I need to
>>>> substitute cell
>>>> content of explicit column.
>>>>
>>>> For example:
>>>>
>>>> I have row state and it can reach 3 values (created, updated,
>>>> deleted) in my
>>>> database but I want show substitutes for that values in my dataGrid
>>>> (in
>>>> other language).
>>>>
>>>> Is there any examples?
>>>>
>>>> Thnx for any suggestions.
>>>>
>>>> Michal
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21915240.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: InMethod DataGrid Localization
Posted by Ryan McKinley <ry...@gmail.com>.
For that you may want to try overriding newCell in
AbstractLightWeightColumn
public IRenderable newCell(IModel rowModel) {
return new IRenderable() {
public void render(IModel rowModel, Response response) {
return "your localized text"
}
};
}
On Feb 9, 2009, at 10:02 AM, Michal Hybler wrote:
>
> Thanks for your help but I dont need to substitute header but the
> content of
> rows in explicit collumn.
>
> id | color | state
> ------------------------------------------
> 1 | red | created
> 2 | blue | updated
>
> In this example page which describes database table I need to
> substitute the
> bold strings. Instead of "created" i want "new" for example. Is
> there way to
> do this by using *.properties file like in case of "state" header?
>
>
> Thnx for help.
> Michal
>
>
> ryantxu wrote:
>>
>> Yes -- check the examples. I think all of them use an external
>> properties file to declare the header row display.
>>
>>
>> On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:
>>
>>>
>>> Hi,
>>> is there any support for localization in DataGrid? I need to
>>> substitute cell
>>> content of explicit column.
>>>
>>> For example:
>>>
>>> I have row state and it can reach 3 values (created, updated,
>>> deleted) in my
>>> database but I want show substitutes for that values in my dataGrid
>>> (in
>>> other language).
>>>
>>> Is there any examples?
>>>
>>> Thnx for any suggestions.
>>>
>>> Michal
>>> --
>>> View this message in context:
>>> http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: InMethod DataGrid Localization
Posted by Michal Hybler <m....@email.cz>.
Thanks for your help but I dont need to substitute header but the content of
rows in explicit collumn.
id | color | state
------------------------------------------
1 | red | created
2 | blue | updated
In this example page which describes database table I need to substitute the
bold strings. Instead of "created" i want "new" for example. Is there way to
do this by using *.properties file like in case of "state" header?
Thnx for help.
Michal
ryantxu wrote:
>
> Yes -- check the examples. I think all of them use an external
> properties file to declare the header row display.
>
>
> On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:
>
>>
>> Hi,
>> is there any support for localization in DataGrid? I need to
>> substitute cell
>> content of explicit column.
>>
>> For example:
>>
>> I have row state and it can reach 3 values (created, updated,
>> deleted) in my
>> database but I want show substitutes for that values in my dataGrid
>> (in
>> other language).
>>
>> Is there any examples?
>>
>> Thnx for any suggestions.
>>
>> Michal
>> --
>> View this message in context:
>> http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: InMethod DataGrid Localization
Posted by Ryan McKinley <ry...@gmail.com>.
Yes -- check the examples. I think all of them use an external
properties file to declare the header row display.
On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:
>
> Hi,
> is there any support for localization in DataGrid? I need to
> substitute cell
> content of explicit column.
>
> For example:
>
> I have row state and it can reach 3 values (created, updated,
> deleted) in my
> database but I want show substitutes for that values in my dataGrid
> (in
> other language).
>
> Is there any examples?
>
> Thnx for any suggestions.
>
> Michal
> --
> View this message in context: http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org