Defining image display property

You can associate images with a model, option class, or option item simply by specifying the Image display property.

The image display property takes relative URLs or absolute URLs as values:

  • If you begin the URL with “http://”, then the URL is assumed to be absolute;
  • If you begin the URL with “/”, then the URL is interpreted relative to the servlet container;
  • If you begin the URL without either, then the URL is interpreted relative to the current URL:.
    Image Value URL
    http://webserver:port/images/4Stars.gif http://webserver:port/images/4Stars.gif
    /images/4Stars.gif http://server:port/images/4Stars.gif
    4Stars.gif http://server:port/en/US/images/4Stars.gif

At the model or option class level, the Image display property corresponds to the UI: ICON GRAPHIC property. At the option item level, the Image display property corresponds to the UI: ITEM IMAGE NAME property. Note that if you define an Image display property at the option item level, then you must also set the UI: SHOW ITEM IMAGES property to be true at the option class level.