RE: uiLabelMap

2015-08-05 Thread damon henry
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//actionsTo 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   
 
  

Re: uiLabelMap

2015-08-04 Thread Deepak Dixit
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 



Re: uiLabelMap

2015-08-04 Thread Taher Alkhateeb
Hi,

All setup and mapping is done in ofbiz-component.xml fix everything you
need there.

Taher Alkhateeb
On Aug 4, 2015 8:40 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


uiLabelMap

2015-08-04 Thread damon henry
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   

Re: uiLabelMap

2015-08-04 Thread gil portenseigne
Yes and moreover in the CommonScreens.xml of each component you got the 
application decorators where you can find some :


property-map resource=AccountingUiLabels map-name=uiLabelMap 
global=true/


To Add your label file, just add property-map 
resource=YourFileUiLabels map-name=uiLabelMap global=true/ 
(YourFileUiLabels.xml have to be in config folder if you kept default 
config)


Adding it after the other overload already existing properties.

HTH

Gil

On 04/08/2015 19:47, Taher Alkhateeb wrote:

Hi,

All setup and mapping is done in ofbiz-component.xml fix everything you
need there.

Taher Alkhateeb
On Aug 4, 2015 8:40 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




Re: uiLabelMap

2015-08-04 Thread Michael Brohl
I recommend using ant create-component, this will create a new 
component in hot-deploy with all necessary files and folders and 
prevents you from the complexity of an existing component.


Regards,

Michael Brohl
ecomify GmbH
www.ecomify.de

Am 04.08.15 um 19:40 schrieb damon henry:

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 





smime.p7s
Description: S/MIME Cryptographic Signature


RE: uiLabelMap

2015-08-04 Thread damon henry
Thanks for the tip.  If I were starting from scratch I would probably go that 
route, but in this case I was specifically looking to create a customer view 
component with a very limited subset of features in the existing component.  It 
seemed easiest just to reuse the existing code and strip out all the request 
mappings for functionality I did not want to expose, as well as modify the UI a 
bit.
damon

 Date: Tue, 4 Aug 2015 22:08:19 +0200
 From: michael.br...@ecomify.de
 To: user@ofbiz.apache.org
 Subject: Re: uiLabelMap
 
 I recommend using ant create-component, this will create a new 
 component in hot-deploy with all necessary files and folders and 
 prevents you from the complexity of an existing component.
 
 Regards,
 
 Michael Brohl
 ecomify GmbH
 www.ecomify.de
 
 Am 04.08.15 um 19:40 schrieb damon henry:
  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 
 
 
  

RE: uiLabelMap

2015-08-04 Thread damon henry
Thanks, this was just the info I needed.  I thought I needed to disconnect the 
old UILabelMap and start over with something new, but by adding my own 
property-map, I can leave all the existing UiLabelMap in place and just put 
anything new that I need in a separate property file and load it from the 
CommonScreens.xml file as you have indicated below.  It works perfect.
damon 

Date: Tue, 4 Aug 2015 21:02:45 +0200
From: gil.portensei...@nereide.fr
To: user@ofbiz.apache.org
Subject: Re: uiLabelMap


  

  
  
Yes and moreover in
the CommonScreens.xml of each component you got the application
decorators where you can find some :



property-map resource=AccountingUiLabels map-name=uiLabelMap
global=true/



To Add your label file, just add property-map
resource=YourFileUiLabels map-name=uiLabelMap global=true/
(YourFileUiLabels.xml have to be in config folder if you kept
default config)



Adding it after the other overload already existing properties.



HTH



Gil



On 04/08/2015 19:47, Taher Alkhateeb
  wrote:



  Hi,

All setup and mapping is done in ofbiz-component.xml fix everything you
need there.

Taher Alkhateeb
On Aug 4, 2015 8:40 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

  
  


  

Language Code at uiLabelMap

2010-01-08 Thread Charles TJ - SELC Sales Div

Hi Erwan,

You mean like this
Thanks.

- Charles TJ

---

Hi,

your message seems to be lost in another non related thread. Could you
just resend it, but from creating a *new* message, and not from using
another one as template ?

Thanks,

Le 07/01/2010 13:28, Charles TJ - SELC Sales Div a écrit :

 Hi All,

 Wondering the language code at the uiLabelMap for INDIA and INDONESIA.
 INDONESIAN is using in instead of id inside uiLabelMap. Meanwhile,
in - setSession -
 is used id for INDONESIAN as GeoData. As standard in code is for
INDIA.

 If in is used for Indonesian, then, for INDIA ... using .. en_IN
English INDIA???
 Forbidden using in_HI ...for dialect; it will goes to INDONESIAN
dialect.

 Any opinion?
 Thanks


 - Charles TJ

 ===



Language Code at uiLabelMap

2010-01-07 Thread Charles TJ - SELC Sales Div

Hi All,

Wondering the language code at the uiLabelMap for INDIA and INDONESIA.
INDONESIAN is using in instead of id inside uiLabelMap. Meanwhile, in - 
setSession -
is used id for INDONESIAN as GeoData. As standard in code is for INDIA.

If in is used for Indonesian, then, for INDIA ... using .. en_IN English 
INDIA???
Forbidden using in_HI ...for dialect; it will goes to INDONESIAN dialect.

Any opinion?
Thanks


- Charles TJ

===





Re: Language Code at uiLabelMap

2010-01-07 Thread Erwan de FERRIERES

Hi,

your message seems to be lost in another non related thread. Could you 
just resend it, but from creating a *new* message, and not from using 
another one as template ?


Thanks,

Le 07/01/2010 13:28, Charles TJ - SELC Sales Div a écrit :


Hi All,

Wondering the language code at the uiLabelMap for INDIA and INDONESIA.
INDONESIAN is using in instead of id inside uiLabelMap. Meanwhile, in - 
setSession -
is used id for INDONESIAN as GeoData. As standard in code is for INDIA.

If in is used for Indonesian, then, for INDIA ... using .. en_IN English 
INDIA???
Forbidden using in_HI ...for dialect; it will goes to INDONESIAN dialect.

Any opinion?
Thanks


- Charles TJ

===






--
Erwan de FERRIERES
www.nereide.biz


Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Adrian Crum
You will have to pass all localized text to the JavaScript function. For 
an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a show/hide 
of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i  errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join(br/);
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of The Following Errors 
Occurred: with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I realize 
its on the server side of things and I want the value in the client side 
javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters



Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Stephen Rufle

Are the expand/collapse links you are talking about the ones on?
https://demo.ofbiz.org/catalog/control/EditProduct?productId=WG-9943

Adrian Crum wrote:
You will have to pass all localized text to the JavaScript function. 
For an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a 
show/hide of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i  errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join(br/);
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of The Following Errors 
Occurred: with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I 
realize its on the server side of things and I want the value in the 
client side javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters






--
Stephen P Rufle
sru...@salmonllc.com
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle



Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Adrian Crum

Yes.

-Adrian

Stephen Rufle wrote:

Are the expand/collapse links you are talking about the ones on?
https://demo.ofbiz.org/catalog/control/EditProduct?productId=WG-9943

Adrian Crum wrote:
You will have to pass all localized text to the JavaScript function. 
For an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a 
show/hide of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i  errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join(br/);
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of The Following Errors 
Occurred: with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I 
realize its on the server side of things and I want the value in the 
client side javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters








Re: where is uilabelmap

2008-09-29 Thread Surya Kusumakar

adithi agarwal wrote:

Thankyou Surya and Brajesh  for your reply..but adding path 
like:@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl...did not work

Thanks
Adithi



- Original Message 
From: surya [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Saturday, September 27, 2008 12:32:01 AM
Subject: Re: where is uilabelmap

Brajesh Patel wrote:
  

Hi Adithi,
   Add path like
@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

 


Hi Brajesh,

I actually created image dir in my application, in my
webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
framework dir.

Thanks



- Original Message 
From: Brajesh Patel [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Friday, September 26, 2008 6:11:11 AM
Subject: Re: where is uilabelmap

 Hi Adithi,
In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]
   
  

wrote:
 
Hi Surya


I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
 


/a
   
  

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

 


if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find
   
  

the
   
  

code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:
   
  

Hi all

I want to display an image on the screen.in the header.ftl of my
 


application
   
  

I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
 


BORDER=0 ALT=
   
  

Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi




 

   
  

--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com





 



   
  
 


Hello Adithi ,

In FTL you have to use ofbizContentUrl  and keep the images directory 
in webapp directory for your customize application.

For e.g
img  
src=@*ofbizContentUrl*/myWebapp/images/myContent.jpg/@*ofbizContentUrl* 
  


--
Thanks  Regards
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com


  
  

Hello Adithi ,
I think you have not specified your application name , like if you have 
created Example application then you have to write like this :

img src=@ofbizContentUrl/example/images/save.png/@ofbizContentUrl

--
Thanks  Regards
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com




Re: where is uilabelmap

2008-09-27 Thread surya

Brajesh Patel wrote:

Hi Adithi,
   Add path like
@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  

Hi Brajesh,

I actually created image dir in my application, in my
webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
framework dir.

Thanks



- Original Message 
From: Brajesh Patel [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Friday, September 26, 2008 6:11:11 AM
Subject: Re: where is uilabelmap

 Hi Adithi,
In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]


wrote:
  
Hi Surya


I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
  

/a


Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  

if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find


the


code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:


Hi all

I want to display an image on the screen.in the header.ftl of my
  

application


I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  

BORDER=0 ALT=


Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi




  


--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com





  







  

Hello Adithi ,

In FTL you have to use ofbizContentUrl  and keep the images directory 
in webapp directory for your customize application.

For e.g
img  
src=@*ofbizContentUrl*/myWebapp/images/myContent.jpg/@*ofbizContentUrl* 



--
Thanks  Regards
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com




Re: where is uilabelmap

2008-09-27 Thread adithi agarwal
Thankyou Surya and Brajesh  for your reply..but adding path 
like:@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl...did not work

Thanks
Adithi



- Original Message 
From: surya [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Saturday, September 27, 2008 12:32:01 AM
Subject: Re: where is uilabelmap

Brajesh Patel wrote:
 Hi Adithi,
Add path like
 @ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


 On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  
 Hi Brajesh,

 I actually created image dir in my application, in my
 webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
 framework dir.

 Thanks



 - Original Message 
 From: Brajesh Patel [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Friday, September 26, 2008 6:11:11 AM
 Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
 images, first you create image directory in your application and put image
 there,  i think your problem will be solved.

 On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]

 wrote:
  
 Hi Surya

 I got the image but it is being displayed from images dir in framework
 dir but not from my application's images dir Can you tell me why is it
 refering that image.
 This is my img tag:
 a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
  
 /a

 Thankyou
 Adithi

 - Original Message 
 From: Surya Kusumakar [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Thursday, September 25, 2008 8:13:44 PM
 Subject: Re: where is uilabelmap

 Hello Adithi ,

 Yes you can use img tag in ftl .
 For e.g

 img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
 width=16 height=16 border=0 alt=Lookup

 or

 img src='/images/fieldlookup.gif' width='15' height='14' border='0'
 alt='Click here For Field Lookup'/

 On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  
 if you notice there is an logo image on each ofbiz page on the backend.
 that is a good example on how to display and image.
 now if you want to do this on the Ecommerce is is a little different.
 just find a page with the type of image you want to display and find

 the

 code that makes it happen.


 adithi agarwal sent the following on 9/25/2008 8:59 AM:

 Hi all

 I want to display an image on the screen.in the header.ftl of my
  
 application

 I was trying to do the same as we do in html like:
 IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  
 BORDER=0 ALT=

 Is this  not the way we display in ftl.
 Please clear my doubt

 Thanks
 Adithi




  

 --
 Thanks  Regards
 --
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com





  





  
Hello Adithi ,

In FTL you have to use ofbizContentUrl  and keep the images directory 
in webapp directory for your customize application.
For e.g
img  
src=@*ofbizContentUrl*/myWebapp/images/myContent.jpg/@*ofbizContentUrl* 


--
Thanks  Regards
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com


  

Re: where is uilabelmap

2008-09-27 Thread BJ Freeman
did you do the step
https://demo.hotwaxmedia.com/content/control/EditWebSite;?webSiteId=WebStore
Standard Content Prefix

adithi agarwal sent the following on 9/27/2008 3:24 PM:
 Thankyou Surya and Brajesh  for your reply..but adding path 
 like:@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl...did not 
 work
 
 Thanks
 Adithi
 
 
 
 - Original Message 
 From: surya [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Saturday, September 27, 2008 12:32:01 AM
 Subject: Re: where is uilabelmap
 
 Brajesh Patel wrote:
 Hi Adithi,
Add path like
 @ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


 On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  
 Hi Brajesh,

 I actually created image dir in my application, in my
 webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
 framework dir.

 Thanks



 - Original Message 
 From: Brajesh Patel [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Friday, September 26, 2008 6:11:11 AM
 Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
 images, first you create image directory in your application and put image
 there,  i think your problem will be solved.

 On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]

 wrote:
  
 Hi Surya

 I got the image but it is being displayed from images dir in framework
 dir but not from my application's images dir Can you tell me why is it
 refering that image.
 This is my img tag:
 a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
  
 /a

 Thankyou
 Adithi

 - Original Message 
 From: Surya Kusumakar [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Thursday, September 25, 2008 8:13:44 PM
 Subject: Re: where is uilabelmap

 Hello Adithi ,

 Yes you can use img tag in ftl .
 For e.g

 img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
 width=16 height=16 border=0 alt=Lookup

 or

 img src='/images/fieldlookup.gif' width='15' height='14' border='0'
 alt='Click here For Field Lookup'/

 On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  
 if you notice there is an logo image on each ofbiz page on the backend.
 that is a good example on how to display and image.
 now if you want to do this on the Ecommerce is is a little different.
 just find a page with the type of image you want to display and find

 the

 code that makes it happen.


 adithi agarwal sent the following on 9/25/2008 8:59 AM:

 Hi all

 I want to display an image on the screen.in the header.ftl of my
  
 application

 I was trying to do the same as we do in html like:
 IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  
 BORDER=0 ALT=

 Is this  not the way we display in ftl.
 Please clear my doubt

 Thanks
 Adithi




  

 --
 Thanks  Regards
 --
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com





  



  
 Hello Adithi ,
 
 In FTL you have to use ofbizContentUrl  and keep the images directory 
 in webapp directory for your customize application.
 For e.g
 img  
 src=@*ofbizContentUrl*/myWebapp/images/myContent.jpg/@*ofbizContentUrl* 
 
 --
 Thanks  Regards
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com
 
 
   



Re: where is uilabelmap

2008-09-27 Thread BJ Freeman
another solution is to put you logo in the
and using widgets commonscreen.xml
   set field=layoutSettings.headerImageUrl
value=/images/yourlogoimage.png global=true/

this is the one I use. the Logo only shows on my app.

adithi agarwal sent the following on 9/27/2008 3:24 PM:
 Thankyou Surya and Brajesh  for your reply..but adding path 
 like:@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl...did not 
 work
 
 Thanks
 Adithi
 
 
 
 - Original Message 
 From: surya [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Saturday, September 27, 2008 12:32:01 AM
 Subject: Re: where is uilabelmap
 
 Brajesh Patel wrote:
 Hi Adithi,
Add path like
 @ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


 On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  
 Hi Brajesh,

 I actually created image dir in my application, in my
 webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
 framework dir.

 Thanks



 - Original Message 
 From: Brajesh Patel [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Friday, September 26, 2008 6:11:11 AM
 Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
 images, first you create image directory in your application and put image
 there,  i think your problem will be solved.

 On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]

 wrote:
  
 Hi Surya

 I got the image but it is being displayed from images dir in framework
 dir but not from my application's images dir Can you tell me why is it
 refering that image.
 This is my img tag:
 a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
  
 /a

 Thankyou
 Adithi

 - Original Message 
 From: Surya Kusumakar [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Thursday, September 25, 2008 8:13:44 PM
 Subject: Re: where is uilabelmap

 Hello Adithi ,

 Yes you can use img tag in ftl .
 For e.g

 img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
 width=16 height=16 border=0 alt=Lookup

 or

 img src='/images/fieldlookup.gif' width='15' height='14' border='0'
 alt='Click here For Field Lookup'/

 On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  
 if you notice there is an logo image on each ofbiz page on the backend.
 that is a good example on how to display and image.
 now if you want to do this on the Ecommerce is is a little different.
 just find a page with the type of image you want to display and find

 the

 code that makes it happen.


 adithi agarwal sent the following on 9/25/2008 8:59 AM:

 Hi all

 I want to display an image on the screen.in the header.ftl of my
  
 application

 I was trying to do the same as we do in html like:
 IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  
 BORDER=0 ALT=

 Is this  not the way we display in ftl.
 Please clear my doubt

 Thanks
 Adithi




  

 --
 Thanks  Regards
 --
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com





  



  
 Hello Adithi ,
 
 In FTL you have to use ofbizContentUrl  and keep the images directory 
 in webapp directory for your customize application.
 For e.g
 img  
 src=@*ofbizContentUrl*/myWebapp/images/myContent.jpg/@*ofbizContentUrl* 
 
 --
 Thanks  Regards
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com
 
 
   



Re: where is uilabelmap

2008-09-26 Thread adithi agarwal


Hi Surya

I got the image but it is being displayed from images dir in framework dir 
but not from my application's images dir Can you tell me why is it refering 
that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg /a

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

 if you notice there is an logo image on each ofbiz page on the backend.
 that is a good example on how to display and image.
 now if you want to do this on the Ecommerce is is a little different.
 just find a page with the type of image you want to display and find the
 code that makes it happen.


 adithi agarwal sent the following on 9/25/2008 8:59 AM:
  Hi all
 
  I want to display an image on the screen.in the header.ftl of my
 application
  I was trying to do the same as we do in html like:
  IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
 BORDER=0 ALT=
  Is this  not the way we display in ftl.
  Please clear my doubt
 
  Thanks
  Adithi
 
 
 
 




-- 
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com



  

Re: where is uilabelmap

2008-09-26 Thread Brajesh Patel
  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]wrote:



 Hi Surya

 I got the image but it is being displayed from images dir in framework
 dir but not from my application's images dir Can you tell me why is it
 refering that image.
 This is my img tag:
 a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
 /a

 Thankyou
 Adithi

 - Original Message 
 From: Surya Kusumakar [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Thursday, September 25, 2008 8:13:44 PM
 Subject: Re: where is uilabelmap

 Hello Adithi ,

 Yes you can use img tag in ftl .
 For e.g

 img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
 width=16 height=16 border=0 alt=Lookup

 or

 img src='/images/fieldlookup.gif' width='15' height='14' border='0'
 alt='Click here For Field Lookup'/

 On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  if you notice there is an logo image on each ofbiz page on the backend.
  that is a good example on how to display and image.
  now if you want to do this on the Ecommerce is is a little different.
  just find a page with the type of image you want to display and find the
  code that makes it happen.
 
 
  adithi agarwal sent the following on 9/25/2008 8:59 AM:
   Hi all
  
   I want to display an image on the screen.in the header.ftl of my
  application
   I was trying to do the same as we do in html like:
   IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  BORDER=0 ALT=
   Is this  not the way we display in ftl.
   Please clear my doubt
  
   Thanks
   Adithi
  
  
  
  
 
 


 --
 Thanks  Regards
 --
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com







Re: where is uilabelmap

2008-09-26 Thread adithi agarwal
Hi Brajesh,

I actually created image dir in my application, in my 
webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in 
framework dir.

Thanks



- Original Message 
From: Brajesh Patel [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Friday, September 26, 2008 6:11:11 AM
Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]wrote:



 Hi Surya

 I got the image but it is being displayed from images dir in framework
 dir but not from my application's images dir Can you tell me why is it
 refering that image.
 This is my img tag:
 a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
 /a

 Thankyou
 Adithi

 - Original Message 
 From: Surya Kusumakar [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Thursday, September 25, 2008 8:13:44 PM
 Subject: Re: where is uilabelmap

 Hello Adithi ,

 Yes you can use img tag in ftl .
 For e.g

 img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
 width=16 height=16 border=0 alt=Lookup

 or

 img src='/images/fieldlookup.gif' width='15' height='14' border='0'
 alt='Click here For Field Lookup'/

 On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

  if you notice there is an logo image on each ofbiz page on the backend.
  that is a good example on how to display and image.
  now if you want to do this on the Ecommerce is is a little different.
  just find a page with the type of image you want to display and find the
  code that makes it happen.
 
 
  adithi agarwal sent the following on 9/25/2008 8:59 AM:
   Hi all
  
   I want to display an image on the screen.in the header.ftl of my
  application
   I was trying to do the same as we do in html like:
   IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
  BORDER=0 ALT=
   Is this  not the way we display in ftl.
   Please clear my doubt
  
   Thanks
   Adithi
  
  
  
  
 
 


 --
 Thanks  Regards
 --
 Surya Kusumakar
 HotWax Media Pvt. Ltd.
 www.hotwaxmedia.com








  

Re: where is uilabelmap

2008-09-26 Thread Adrian Crum
Actually, that's not true. The url for the image must be enclosed in the 
@ofbizUrl transform. Also, make sure your application's image folder 
is accessible in the web.xml file.


-Adrian

Brajesh Patel wrote:

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]wrote:



Hi Surya

I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg

/a

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:


if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find the
code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:

Hi all

I want to display an image on the screen.in the header.ftl of my

application

I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69

BORDER=0 ALT=

Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi








--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com









Re: where is uilabelmap

2008-09-26 Thread Brajesh Patel
Hi Adithi,
   Add path like
@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:

 Hi Brajesh,

 I actually created image dir in my application, in my
 webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
 framework dir.

 Thanks



 - Original Message 
 From: Brajesh Patel [EMAIL PROTECTED]
 To: user@ofbiz.apache.org
 Sent: Friday, September 26, 2008 6:11:11 AM
 Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
 images, first you create image directory in your application and put image
 there,  i think your problem will be solved.

 On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]
 wrote:

 
 
  Hi Surya
 
  I got the image but it is being displayed from images dir in framework
  dir but not from my application's images dir Can you tell me why is it
  refering that image.
  This is my img tag:
  a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg
  /a
 
  Thankyou
  Adithi
 
  - Original Message 
  From: Surya Kusumakar [EMAIL PROTECTED]
  To: user@ofbiz.apache.org
  Sent: Thursday, September 25, 2008 8:13:44 PM
  Subject: Re: where is uilabelmap
 
  Hello Adithi ,
 
  Yes you can use img tag in ftl .
  For e.g
 
  img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
  width=16 height=16 border=0 alt=Lookup
 
  or
 
  img src='/images/fieldlookup.gif' width='15' height='14' border='0'
  alt='Click here For Field Lookup'/
 
  On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:
 
   if you notice there is an logo image on each ofbiz page on the backend.
   that is a good example on how to display and image.
   now if you want to do this on the Ecommerce is is a little different.
   just find a page with the type of image you want to display and find
 the
   code that makes it happen.
  
  
   adithi agarwal sent the following on 9/25/2008 8:59 AM:
Hi all
   
I want to display an image on the screen.in the header.ftl of my
   application
I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
   BORDER=0 ALT=
Is this  not the way we display in ftl.
Please clear my doubt
   
Thanks
Adithi
   
   
   
   
  
  
 
 
  --
  Thanks  Regards
  --
  Surya Kusumakar
  HotWax Media Pvt. Ltd.
  www.hotwaxmedia.com
 
 
 
 
 







Re: where is uilabelmap

2008-09-26 Thread Adrian Crum
That will point to the framework/images folder, *not* the application's 
folder.


-Adrian

Brajesh Patel wrote:

Hi Adithi,
   Add path like
@ofbizContentUrl/images/ofbiz_logo.gif/@ofbizContentUrl.


On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal [EMAIL PROTECTED]wrote:


Hi Brajesh,

I actually created image dir in my application, in my
webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in
framework dir.

Thanks



- Original Message 
From: Brajesh Patel [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Friday, September 26, 2008 6:11:11 AM
Subject: Re: where is uilabelmap

 Hi Adithi,
In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]

wrote:

Hi Surya

I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg

/a

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:


if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find

the

code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:

Hi all

I want to display an image on the screen.in the header.ftl of my

application

I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69

BORDER=0 ALT=

Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi








--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com














Re: where is uilabelmap

2008-09-26 Thread Raj Saini

Adithi,

You will need to change the Content Path prefix in the content 
application. You can do this by going to Content-Web site and setting 
the secure and non secure content path prefix. Suppose you want to serve 
the contents from images folder of your application, give content prefix 
as /your application mount point


Thanks,

Raj

adithi agarwal wrote:

Hi Brajesh,

I actually created image dir in my application, in my 
webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in 
framework dir.

Thanks



- Original Message 
From: Brajesh Patel [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Friday, September 26, 2008 6:11:11 AM
Subject: Re: where is uilabelmap

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  

Hi Surya

I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg


/a
  

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:



if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find the
code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:
  

Hi all

I want to display an image on the screen.in the header.ftl of my


application
  

I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69


BORDER=0 ALT=
  

Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi





  

--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com










  
  




Re: where is uilabelmap

2008-09-26 Thread surya

Brajesh Patel wrote:

  Hi Adithi,
 In ofbiz component one image  directory is there and that contain  all
images, first you create image directory in your application and put image
there,  i think your problem will be solved.

On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal [EMAIL PROTECTED]wrote:

  

Hi Surya

I got the image but it is being displayed from images dir in framework
dir but not from my application's images dir Can you tell me why is it
refering that image.
This is my img tag:
a  href=http://ofbiz.apache.org/;img  src=/images/ofbiz_logo.jpg


/a
  

Thankyou
Adithi

- Original Message 
From: Surya Kusumakar [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Thursday, September 25, 2008 8:13:44 PM
Subject: Re: where is uilabelmap

Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:



if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find the
code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:
  

Hi all

I want to display an image on the screen.in the header.ftl of my


application
  

I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69


BORDER=0 ALT=
  

Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi





  

--
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com








  

Hello Adithi ,
You are not specifying component specific path so  it is referring  to 
absolute path that is from framework component .In  framework component 
there is an directory named image within webapp.So you have to create 
image directory in your component too.


Thanks and Regards
Surya Kusumakar
HotWaxMedia Pvt Ltd
www.hotwaxmedia.com



where is uilabelmap

2008-09-25 Thread adithi agarwal
Hi all

I want to display an image on the screen.in the header.ftl of my application
I was trying to do the same as we do in html like:
IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69 BORDER=0 
ALT=
Is this  not the way we display in ftl.
Please clear my doubt

Thanks
Adithi



  

Re: where is uilabelmap

2008-09-25 Thread BJ Freeman
if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image.
now if you want to do this on the Ecommerce is is a little different.
just find a page with the type of image you want to display and find the
code that makes it happen.


adithi agarwal sent the following on 9/25/2008 8:59 AM:
 Hi all
 
 I want to display an image on the screen.in the header.ftl of my application
 I was trying to do the same as we do in html like:
 IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69 
 BORDER=0 ALT=
 Is this  not the way we display in ftl.
 Please clear my doubt
 
 Thanks
 Adithi
 
 
 
   



Re: where is uilabelmap

2008-09-25 Thread Surya Kusumakar
Hello Adithi ,

Yes you can use img tag in ftl .
For e.g

img src=@ofbizContentUrl/images/fieldlookup.gif/@ofbizContentUrl
width=16 height=16 border=0 alt=Lookup

or

img src='/images/fieldlookup.gif' width='15' height='14' border='0'
alt='Click here For Field Lookup'/

On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman [EMAIL PROTECTED] wrote:

 if you notice there is an logo image on each ofbiz page on the backend.
 that is a good example on how to display and image.
 now if you want to do this on the Ecommerce is is a little different.
 just find a page with the type of image you want to display and find the
 code that makes it happen.


 adithi agarwal sent the following on 9/25/2008 8:59 AM:
  Hi all
 
  I want to display an image on the screen.in the header.ftl of my
 application
  I was trying to do the same as we do in html like:
  IMG SRC=...//myapp/webapp/ofbiz_logo.jpeg WIDTH=209 HEIGHT=69
 BORDER=0 ALT=
  Is this  not the way we display in ftl.
  Please clear my doubt
 
  Thanks
  Adithi
 
 
 
 




-- 
Thanks  Regards
--
Surya Kusumakar
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com


Re: uiLabelMap access from a service?

2008-03-20 Thread Peter Felts
Thank you all. This list is awesome! I'll just need to make sure I look harder 
before I fall into the trap of asking the list to do my work for me :)









- Original Message 
From: Mridul Pathak [EMAIL PROTECTED]
To: user@ofbiz.apache.org
Sent: Wednesday, March 19, 2008 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 get a map of all the
properties in a field you can use *UtilProperties.getResourceBundleMap(String
resource, Locale locale)* method which will return all the properties from
the resource file in a Map.  There are other useful methods as well which
you can use according to your purpose.

2) If you are writing your service in minilang, than there are some special
tags availble which adds, checks and return errors in a service which also
uses localized strings from property files.  The below structure can be used
to return an error in a service containing a string from properties file:
*add-error
fail-property resource=  property= /
/add-error
check-errors/
*
There is another tag *property-to-field* which can be used to access
any property from a property file in our service.
If you want all the properties from a property file in a Map, than you
can use *call-class-method* tag to call the static method that I suggested
in first point above.

On Wed, Mar 19, 2008 at 9:53 PM, Peter Felts [EMAIL PROTECTED]
wrote:

 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/your language here.properties) from within a service that
 only has access to the DispatchContext and the Map  objects?

 What I am trying to do is return errors from a service containing
 localized strings. Any ideas?


 Thank you.







-- 
Thanks  Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892





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/your language here.properties) from within a service that only 
has access to the DispatchContext and the Map  objects?

What I am trying to do is return errors from a service containing localized 
strings. Any ideas?


Thank you.






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.returnError(errMsg);

Regards
Scott

On 20/03/2008, Peter Felts [EMAIL PROTECTED] wrote:

 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/your language here.properties) from within a service that
 only has access to the DispatchContext and the Map  objects?

 What I am trying to do is return errors from a service containing
 localized strings. Any ideas?


 Thank you.







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 *UtilProperties.getResourceBundleMap(String
resource, Locale locale)* method which will return all the properties from
the resource file in a Map.  There are other useful methods as well which
you can use according to your purpose.

2) If you are writing your service in minilang, than there are some special
tags availble which adds, checks and return errors in a service which also
uses localized strings from property files.  The below structure can be used
to return an error in a service containing a string from properties file:
*add-error
fail-property resource=  property= /
/add-error
check-errors/
*
There is another tag *property-to-field* which can be used to access
any property from a property file in our service.
If you want all the properties from a property file in a Map, than you
can use *call-class-method* tag to call the static method that I suggested
in first point above.

On Wed, Mar 19, 2008 at 9:53 PM, Peter Felts [EMAIL PROTECTED]
wrote:

 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/your language here.properties) from within a service that
 only has access to the DispatchContext and the Map  objects?

 What I am trying to do is return errors from a service containing
 localized strings. Any ideas?


 Thank you.







-- 
Thanks  Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


what is uiLabelMap used in form creation

2007-06-14 Thread amit charaya

what is uiLabelMap used in form creation like
${uiLabelMap.ProductProductType}
-- 
View this message in context: 
http://www.nabble.com/what-is-uiLabelMap-used-in-form-creation-tf3920426.html#a6181
Sent from the OFBiz - User mailing list archive at Nabble.com.



Expression UiLabelMap Undefined

2007-04-12 Thread chitrakala ramanujam
  
Hi All,

I am getting the following error while creating the new user from the 
lcnewcustomer.ftl page.


Expression uiLabelMap is undefined on line 112, column 39 in lcnewcustomer.ftl. 
The problematic instruction: -- == ${uiLabelMap.PartyFirstName} [on 
line 112, column 37 in lcnewcustomer.ftl] -- Java backtrace for 
programmers: -- freemarker.core.InvalidReferenceException: Expression 
uiLabelMap is undefined on line 112


Dont have idea to resolve this.

Someone please help me regarding this issue.

Thanks.
chitrkala

Re: Expression UiLabelMap Undefined

2007-04-12 Thread Scott Gray

You need to have this in your main-decorator screen:
   property-map resource=PartyUiLabels map-name=uiLabelMap
global=true/
Regards
Scott

On 13 Apr 2007 05:27:58 -, chitrakala ramanujam 
[EMAIL PROTECTED] wrote:



Hi All,

I am getting the following error while creating the new user from the
lcnewcustomer.ftl page.


Expression uiLabelMap is undefined on line 112, column 39 in
lcnewcustomer.ftl. The problematic instruction: -- == ${
uiLabelMap.PartyFirstName} [on line 112, column 37 in lcnewcustomer.ftl]
-- Java backtrace for programmers: --
freemarker.core.InvalidReferenceException: Expression uiLabelMap is
undefined on line 112


Dont have idea to resolve this.

Someone please help me regarding this issue.

Thanks.
chitrkala