What is the good practice for reload a properties with tapestry ?

Example : Home.page Home.html Home_fr.properties Home_en.properties

In my Home.html, I have :  <span key="MyName"/>
I would like change this key in Home_fr.properties but no restart tomcat 
it's possible ?


Cordialement - Best regards

BRAJUS Cédric
SETVAL-CTIV
http://www.ctiv.vallourec.fr/
Office : + 33 (0)3 27 22 76 67 
   Fax : + 33 (0)3 27 22 23 00



Shing Hing Man <[EMAIL PROTECTED]> 
04/01/2007 18:10
Veuillez répondre à
"Tapestry users" <users@tapestry.apache.org>


A
Tapestry users <users@tapestry.apache.org>
cc

Objet
Re: how to retrieve an Application State Object (ASO) with an application 
scope from the ServletContext ?






I have used the following piece of code to retrieved
an 
application ASO  in a
HttpSessionListener.sessionCreated method.
It might work in ServletContextListener as well.

// context is the servlet context
Registry registry = (Registry) context
 
..getAttribute(ApplicationServlet.REGISTRY_KEY_PREFIX_PUBLIC
                 + "(the name of ApplicationServlet given in
web.xml");
 
                                 ApplicationStateManager manager  =
(ApplicationStateManager)
 
registry.getService("tapestry.state.ApplicationStateManager",
ApplicationStateManager.class);
                 MyApplicationObject myASO =
(MyApplicationObject)manager.get("myApplicationObject");


HTH
Shing


--- Tapestry User List <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> Happy new year !!!!
> 
> I have created a class that implements
> ServletContextListener.
> In the method public void
> contextDestroyed(ServletContextEvent event),
> I need to retrieve an Application State Object (ASO)
> of tapestry 4
> with an application scope (not session).
> 
> My question is how to retrieve an Application State
> Object (ASO) from
> the ServletContext ?
> 
> 
> public void contextDestroyed(ServletContextEvent
> event) {
>       ServletContext context =
> event.getServletContext();
>       // retrieve myApplicationObject here
> }
> 
> In hivemodule.xml:
> ...
> <contribution
>
configuration-id="tapestry.state.ApplicationObjects">
>                                <state-object name="myApplicationObject"
> scope="application">
>                                                <create-instance 
class="ns.MyApplicationObject"/>
>                                </state-object>  
> </contribution>
> ...
> 
> Thanks so much,
> 
> D.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to