Editing Tiles Configuration Files with Struts Console


Metadata Tags

Several of the tags for the Tiles configuration file give you the option to nest metadata tags. The metadata tags exist solely for adding extra information to the configuration file that will show up in GUI tools and the like; the Tiles framework, itself, ignores the metadata tags. None of the metadata tags has any attributes; thus you just add text between opening and closing tags to specify their value, as shown here:

<action path="/search"         type="com.jamesholmes.minihr.SearchAction">   <icon>     <small-icon>small.gif</small-icon>     <large-icon>large.gif</large-icon>   </icon>   <display-name>Search Action</display-name>   <description>Search Action searches for employees.</description> </action>

The following table lists each of the metadata tags and its description.

Tag

Description

description

Defines descriptive text for the enclosing tag.

display-name

Defines a short description (or name) for the enclosing tag.

icon

Encapsulates an instance of the large-icon and small-icon tags.

large-icon

Defines the location for a large (32×32 pixel) icon to associate to the enclosing tag.

small-icon

Defines the location for a small (16×16 pixel) icon to associate to the enclosing tag.



Struts. The Complete Reference
Struts: The Complete Reference, 2nd Edition
ISBN: 0072263865
EAN: 2147483647
Year: 2004
Pages: 165
Authors: James Holmes

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net