Dev - Properties File

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - Properties File

Kesslers
I have been setting up a new app in OFBiz.  I can not get my app to see my
properties file.
 
1. created properties file in: \ofbiz_7234\hot-deploy\newapp\config\
AccessPointUiLabels.properties

2. created XML for widgets in:
\ofbiz_7234\hot-deploy\newapp\widget\newapp\screens\common\CommonScreens.xml

<<<<<<<<<< contents >>>>>>>>>>>

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
    <screen name="accesspoint-decorator">
         <section>
       <actions>
                  <property-map resource="CommonUiLabels"
map-name="uiLabelMap" global="true"/>
            <property-map resource="AccessPointUiLabels"
map-name="uiLabelMap" global="true"/>
       
            <!-- labels for the header -->
                  <set field="layoutSettings.companyName"
from-field="uiLabelMap.AccesspointAccessPointApplicati" global="true"/>
            <set field="layoutSettings.headerImageUrl"
value="/images/ofbiz_logo.jpg" global="true"/>

            <set field="activeApp" value="access-point" global="true"/>
        </actions>
        <widgets>
...
<<<<<<<<<< contents >>>>>>>>>>>

3. Setup the rest of the app to display a welcome page.

4. Fire up OFBiz and get the following error when I attempt to access my
welcome page.

<<<<<<<<<< contents >>>>>>>>>>>
:ERROR MESSAGE:
 
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#login]:
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#accesspoint-decorator]:
java.lang.IllegalArgumentException: Could not find resource bundle
[AccessPointUiLabels] in the locale [] (Could not find resource bundle
[AccessPointUiLabels] in the locale []) (Error rendering screen
[component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#accesspoint-decorator]:
java.lang.IllegalArgumentException: Could not find resource bundle
[AccessPointUiLabels] in the locale [] (Could not find resource bundle
[AccessPointUiLabels] in the locale []))
<<<<<<<<<< contents >>>>>>>>>>>

Any ideas?  How can I get OFBiz to see AccessPointUiLabels.properties?

Thank you.

David Kessler


 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Properties File

Jacopo Cappellato
Add the following line to the ofbiz-component.xml file:

<classpath type="dir" location="config"/>

Jacopo

kesslerdn wrote:

> I have been setting up a new app in OFBiz.  I can not get my app to see my
> properties file.
>  
> 1. created properties file in: \ofbiz_7234\hot-deploy\newapp\config\
> AccessPointUiLabels.properties
>
> 2. created XML for widgets in:
> \ofbiz_7234\hot-deploy\newapp\widget\newapp\screens\common\CommonScreens.xml
>
> <<<<<<<<<< contents >>>>>>>>>>>
>
> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
>     <screen name="accesspoint-decorator">
>          <section>
>        <actions>
>                   <property-map resource="CommonUiLabels"
> map-name="uiLabelMap" global="true"/>
>             <property-map resource="AccessPointUiLabels"
> map-name="uiLabelMap" global="true"/>
>        
>             <!-- labels for the header -->
>                   <set field="layoutSettings.companyName"
> from-field="uiLabelMap.AccesspointAccessPointApplicati" global="true"/>
>             <set field="layoutSettings.headerImageUrl"
> value="/images/ofbiz_logo.jpg" global="true"/>
>
>             <set field="activeApp" value="access-point" global="true"/>
>         </actions>
>         <widgets>
> ...
> <<<<<<<<<< contents >>>>>>>>>>>
>
> 3. Setup the rest of the app to display a welcome page.
>
> 4. Fire up OFBiz and get the following error when I attempt to access my
> welcome page.
>
> <<<<<<<<<< contents >>>>>>>>>>>
> :ERROR MESSAGE:
>  
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#login]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#accesspoint-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [AccessPointUiLabels] in the locale [] (Could not find resource bundle
> [AccessPointUiLabels] in the locale []) (Error rendering screen
> [component://accesspoint/widget/accesspoint/screens/common/CommonScreens.xml#accesspoint-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [AccessPointUiLabels] in the locale [] (Could not find resource bundle
> [AccessPointUiLabels] in the locale []))
> <<<<<<<<<< contents >>>>>>>>>>>
>
> Any ideas?  How can I get OFBiz to see AccessPointUiLabels.properties?
>
> Thank you.
>
> David Kessler
>
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev