Thanks for the info.  Since this is an archived email list, and since I learned 
a few things in the process I will just summarize what I learned for future 
reference.  If I get something wrong please feel free to correct me.
uiLabelMap is used all over OfBiz.  It's main purpose is to allow resource 
bundles to be used for internationalization of languages within OfBiz.   The 
standard way of implementing it is to create your resources in either 
.properties files or .xml files in the config directory of a component.  In 
order to use the properties you need to include the config folder in a class 
path statement in ofbiz-component.xml like this  <classpath type="dir" 
location="config”/>.  Also, the specific property file needs to be loaded.  A 
common place to do this is in CommonScreens.xml of your component, although it 
can be done from any widget actions element.  Inserting it in CommonScreens.xml 
main-application-decorator is a method which makes the values available to all 
your widgets which is usually desirable.Example:<actions>
<property-map resource="YourFileUiLabels" map-name="uiLabelMap" 
global="true"/></actions>To Add your label file, just add <property-map 
resource="YourFileUiLabels" map-name="uiLabelMap" global="true"/> 
(YourFileUiLabels.xml or YourFileUiLabels.properties has to be in config folder 
of your component.)
The effect is cumulative.  uiLabelMap is being used by most OfBiz components, 
so anything you add is meshed in with what is already there.  There is a pretty 
thorough wiki entry here 
https://cwiki.apache.org/confluence/display/OFBIZ/Text+Translation but it does 
not mention the classpath aspect of making this work.
damon
> Subject: Re: uiLabelMap
> From: deepak.di...@hotwaxsystems.com
> Date: Wed, 5 Aug 2015 11:26:24 +0530
> CC: deepak.di...@hotwaxsystems.com
> To: user@ofbiz.apache.org
> 
> You need to include config folder into class path in ofbiz-component.xml
> 
> <classpath type="dir" location="config”/>
> 
> Thanks & Regards
> —
> Deepak Dixit
> 
> 
> > On Aug 4, 2015, at 11:10 PM, damon henry <damonhe...@hotmail.com> wrote:
> > 
> > I have a custom app that I am building.  I started with an existing app 
> > which I copied to hot-deploy and have been modifying as needed.  I'm having 
> > a hard time figuring out where uiLabelMap is being loaded from.  My app is 
> > still utilizing the properties in the original component for it's 
> > uiLabelMap values, and I would like it to point to the ones in the new 
> > component I am modifying.  Can someone point me in the right direction?  If 
> > it matters, it is the Warehouse component that I started with.
> > thanksDamon                                           
> 
                                          

Reply via email to