attributes in .ftl file

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

attributes in .ftl file

lahmar
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.
Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

Olivier Michel-4
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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

Ashish Nagar
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.
>>
>>
>>    
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

BJ Freeman
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJyP7OrP3NbaWWqE4RAvj/AJ9xBCmuyFT9iYPe5UXEIrTGfjlPZQCdGfUd
ldvWMRZz2Swg4CThwdHRk4I=
=rPJR
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

lahmar
In reply to this post by Ashish Nagar
Hello Ashish,

where i can find "CommonUiLabels.xml" because i don't find it.

Thks.
Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

cjhorton
It is located in framework/common/config


lahmar wrote
Hello Ashish,

where i can find "CommonUiLabels.xml" because i don't find it.

Thks.
Reply | Threaded
Open this post in threaded view
|

Re: attributes in .ftl file

Jacques Le Roux
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.
>