I am working on maven based GWT/MVP4G project. I have one property file and its corresponding interface at client side, both are named as MyConstants.properties
and MyConstants.java
and both are placed in a client folder. Interface is extended from Constants
class of i18n library. I am taking required values from that property file by making its instance using GWT.create(MyConstants.class)
. Whenever I compile and run the code it is working fine, giving me the required output.
But my main issue is, after creation of war
of that project, if I edited that property file MyContstants.properties
by extracting war
and changed some content in it, then unable to access those newly edited changes.
Because I have to make those changes in project's MyConstants.properties
file, then after recompilation and again creating new war
then only I can access the edited changes. Is there any way to bind values dynamically to that property file, means is there any way without recompiling project can I reflect those war changes?
Please help me to get out of this problem, working on it, but unable to get the solution.