Hi,
I would like to know where we define the attributes of an entity in ftl file ex: ${uiLabelMap.CommonUsername} where "uiLabelMap" is a map-name but i don't know what the "CommonUsername". Any one has an idea? Thks & best regards. Lahmar. |
Hello Lahmar !
I usually declare my property files in the action section of the decorator, so that every screen using this decorator has access to the property file: <screen name="my-decorator"> <section> <actions> <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/> ... Then the file itself, EcommerceUiLabels.properties is in /ecommerce/ecommerce/config Hope this helps, Olivier Michel Cypoint AB http://www.cypoint.se On Tue, Mar 24, 2009 at 3:29 PM, lahmar <[hidden email]>wrote: > > Hi, > > I would like to know where we define the attributes of an entity in ftl > file > ex: > ${uiLabelMap.CommonUsername} where "uiLabelMap" is a map-name but i don't > know what the "CommonUsername". > > Any one has an idea? > > Thks & best regards. > Lahmar. > -- > View this message in context: > http://www.nabble.com/attributes-in-.ftl-file-tp22681626p22681626.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Hello Lahmar,
You can find the key "CommonUsername" and its corresponding value in CommonUiLabels.xml. UiLabels are mapped in the screens. Thanks & Regards, -- Ashish Nagar Olivier Michel wrote: > Hello Lahmar ! > > I usually declare my property files in the action section of the decorator, > so that every screen using this decorator has access to the property file: > > <screen name="my-decorator"> > <section> > <actions> > <property-map resource="EcommerceUiLabels" > map-name="uiLabelMap" global="true"/> > ... > > Then the file itself, EcommerceUiLabels.properties is in > /ecommerce/ecommerce/config > > Hope this helps, > > Olivier Michel > Cypoint AB > http://www.cypoint.se > > > On Tue, Mar 24, 2009 at 3:29 PM, lahmar <[hidden email]>wrote: > > >> Hi, >> >> I would like to know where we define the attributes of an entity in ftl >> file >> ex: >> ${uiLabelMap.CommonUsername} where "uiLabelMap" is a map-name but i don't >> know what the "CommonUsername". >> >> Any one has an idea? >> >> Thks & best regards. >> Lahmar. >> -- >> View this message in context: >> http://www.nabble.com/attributes-in-.ftl-file-tp22681626p22681626.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> > > |
In reply to this post by lahmar
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I would suggest if you have not already to get the Eclipse IDE to do you programming in. it is free and runs on windows Mac, and Linux. Eclipse will let you go through the code and find most of your answers. it has a search feature the find like CommonUsername it will also let you search the code for properties or uiLabelMap to let you see how the code uses such. also suggest going over the videos. I had to review them many time to get everything out of them. Hope this helps. lahmar sent the following on 3/24/2009 7:29 AM: > Hi, > > I would like to know where we define the attributes of an entity in ftl file > ex: > ${uiLabelMap.CommonUsername} where "uiLabelMap" is a map-name but i don't > know what the "CommonUsername". > > Any one has an idea? > > Thks & best regards. > Lahmar. Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJyP7OrP3NbaWWqE4RAvj/AJ9xBCmuyFT9iYPe5UXEIrTGfjlPZQCdGfUd ldvWMRZz2Swg4CThwdHRk4I= =rPJR -----END PGP SIGNATURE----- |
In reply to this post by Ashish Nagar
Hello Ashish,
where i can find "CommonUiLabels.xml" because i don't find it. Thks. |
It is located in framework/common/config
|
Administrator
|
The problem is that Lahmar is using OFBiz-Neogia I guess. And OFBiz-Neogia is still using .properties files for translation
Lahmar, as I said before, you should better use the Neogia mailing list than OFBiz, since it's not the same thing. Hopefully, in a not so far future, Neogia specific components will be added to OFBiz as regular components (in specialpurpose), but it's still not the case. Jacques From: "cjhorton" <[hidden email]> > > It is located in framework/common/config > > > > lahmar wrote: >> >> Hello Ashish, >> >> where i can find "CommonUiLabels.xml" because i don't find it. >> >> Thks. >> > > -- > View this message in context: http://www.nabble.com/attributes-in-.ftl-file-tp22681626p22685310.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Free forum by Nabble | Edit this page |