O'Reilly logo

JavaServer Faces by Hans Bergsten

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<description>, <display-name>, and <icon>

Synopsis

These three elements provide information a development tool can use to describe the application. These three elements are not top-level elements themselves but can be nested within most top-level elements.

Syntax

<description [xml:lang="lang"]>description</description>
<display-name [xml:lang="lang"]>displayName</display-name>
<icon [xml:lang="lang"]>
  [<small-icon>iconPath</small-icon>]
  [<large-icon>iconPath</large-icon>]
</icon>

The <icon> element can contain a <small-icon> and a <large-icon> element, each with a context-relative path to an image file (GIF and JPEG formats are supported). The small icon must be 16x16 pixels, and the large 32x32. The <display-name> element can specify a name for the entity described by the parent element, and the <description> element a longer description.

You can use different versions of all these elements for multiple languages, each with a unique xml:lang attribute value (“en”, for English, is the default value):

<icon>
  <small-icon>/images/small.gif</small-icon>
  <large-icon>/images/large.gif</large-icon>
</icon>
<display-name>The application name</display-name>
<description>
  A longer description of
  the application.
</description>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required