You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by P....@albourne.com on 2009/06/24 08:47:56 UTC

How to add new entries to the global message catalog

Hi,

Is it possible to add and remove entries from the global message catalog? I thought of extending AbstractMessages with my own implementation since I couldn't find a way, but even if I do this how do I get Tapestry to detect / reconstruct the relevant properties map in the registry?

PS: If u think this is a bad idea, then pls offer an alternative suggestion, all I really need is property changes that get picked up at runtime (including new writes and deletes).

Thanks,
Peter



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


Re: How to add new entries to the global message catalog

Posted by Peter Stavrinides <P....@albourne.com>.
I think Peter wants to edit the message catalog programmatically.
>yes, sorry I see now that may not have been obvious


----- Original Message -----
From: "Ulrich Stärk" <ul...@spielviel.de>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Wednesday, 24 June, 2009 18:40:47 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: How to add new entries to the global message catalog

I think Peter wants to edit the message catalog programmatically.

On 24.06.2009 17:07 schrieb Thiago H. de Paula Figueiredo:
> On Wed, Jun 24, 2009 at 11:53 AM, Peter
> Stavrinides<P....@albourne.com> wrote:
>>> Not right. :) The whole properties file is reloaded.
>> Good, glad to be wrong :), so how then do you add (*not update) and remove entries from the global message catalog?
> 
> I just edit the properties file and save it. I'm not using any other
> source for the global message catalog besides app*.properties.
> 

---------------------------------------------------------------------
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 add new entries to the global message catalog

Posted by Ulrich Stärk <ul...@spielviel.de>.
I think Peter wants to edit the message catalog programmatically.

On 24.06.2009 17:07 schrieb Thiago H. de Paula Figueiredo:
> On Wed, Jun 24, 2009 at 11:53 AM, Peter
> Stavrinides<P....@albourne.com> wrote:
>>> Not right. :) The whole properties file is reloaded.
>> Good, glad to be wrong :), so how then do you add (*not update) and remove entries from the global message catalog?
> 
> I just edit the properties file and save it. I'm not using any other
> source for the global message catalog besides app*.properties.
> 

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


Re: How to add new entries to the global message catalog

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, Jun 24, 2009 at 11:53 AM, Peter
Stavrinides<P....@albourne.com> wrote:
>> Not right. :) The whole properties file is reloaded.
> Good, glad to be wrong :), so how then do you add (*not update) and remove entries from the global message catalog?

I just edit the properties file and save it. I'm not using any other
source for the global message catalog besides app*.properties.

-- 
Thiago

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


Re: How to add new entries to the global message catalog

Posted by Peter Stavrinides <P....@albourne.com>.
> Not right. :) The whole properties file is reloaded.
Good, glad to be wrong :), so how then do you add (*not update) and remove entries from the global message catalog?


----- Original Message -----
From: "Thiago H. de Paula Figueiredo" <th...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Wednesday, 24 June, 2009 17:43:32 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: How to add new entries to the global message catalog

On Wed, Jun 24, 2009 at 11:36 AM, Peter
Stavrinides<P....@albourne.com> wrote:
>> Tapestry already does live properties reloading and it works like a charm. :)
> So far as I know only to existing properties in the message catalog, right?

Not right. :) The whole properties file is reloaded. New components,
pages and mixins are not live reloaded, unless you change some class
in the same package (trick given by Howard some time ago).

-- 
Thiago

---------------------------------------------------------------------
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 add new entries to the global message catalog

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, Jun 24, 2009 at 11:36 AM, Peter
Stavrinides<P....@albourne.com> wrote:
>> Tapestry already does live properties reloading and it works like a charm. :)
> So far as I know only to existing properties in the message catalog, right?

Not right. :) The whole properties file is reloaded. New components,
pages and mixins are not live reloaded, unless you change some class
in the same package (trick given by Howard some time ago).

-- 
Thiago

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


Re: How to add new entries to the global message catalog

Posted by Peter Stavrinides <P....@albourne.com>.
> Tapestry already does live properties reloading and it works like a charm. :)
So far as I know only to existing properties in the message catalog, right?

----- Original Message -----
From: "Thiago H. de Paula Figueiredo" <th...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Wednesday, 24 June, 2009 17:19:21 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: How to add new entries to the global message catalog

On Wed, Jun 24, 2009 at 3:47 AM, <P....@albourne.com> wrote:
> Hi,

Hi!

> PS: If u think this is a bad idea, then pls offer an alternative suggestion, all I really need is property changes that get picked up at runtime (including
> new writes and deletes).

Tapestry already does live properties reloading and it works like a charm. :)

-- 
Thiago

---------------------------------------------------------------------
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 add new entries to the global message catalog

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, Jun 24, 2009 at 3:47 AM, <P....@albourne.com> wrote:
> Hi,

Hi!

> PS: If u think this is a bad idea, then pls offer an alternative suggestion, all I really need is property changes that get picked up at runtime (including
> new writes and deletes).

Tapestry already does live properties reloading and it works like a charm. :)

-- 
Thiago

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