Re: uiLabelMap access from a service?

2008-03-20 Thread Peter Felts
10:35:08 PM Subject: Re: uiLabelMap access from a service? Peter, Are you writing your service in Java or Minilang?? 1) If you are writing the service in Java then you can use * org.ofbiz.base.util.UtilProperties* class and its methods to access the properties files. If you specifically want to g

Re: uiLabelMap access from a service?

2008-03-19 Thread Mridul Pathak
Peter, Are you writing your service in Java or Minilang?? 1) If you are writing the service in Java then you can use * org.ofbiz.base.util.UtilProperties* class and its methods to access the properties files. If you specifically want to get a map of all the properties in a field you can use *Uti

Re: uiLabelMap access from a service?

2008-03-19 Thread Scott Gray
Hi Peter You're not looking hard enough :-) there are a million examples of this. This example is from the first java file I opened (AgreementServices.java): errMsg = UtilProperties.getMessage(resource, "AccountingDataSourceError", messageMap, locale); return ServiceUtil.r

uiLabelMap access from a service?

2008-03-19 Thread Peter Felts
Does anyone know if there is a way to access a uiLabelMap (the list of local text strings, etc. associated with a language in an application /Module/config/.properties) from within a service that only has access to the DispatchContext and the Map objects? What I am trying to do is return error