Book Image

Mastering JavaServer Faces 2.2

By : Anghel Leonard
Book Image

Mastering JavaServer Faces 2.2

By: Anghel Leonard

Overview of this book

Table of Contents (20 chapters)
Mastering JavaServer Faces 2.2
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The JSF Life Cycle
Index

Packaging contracts in JARs


In order to distribute contracts, you can place them into a JAR file. This is a very simple job that can be accomplished in just three steps, which are as follows:

  1. Consider an empty JAR file.

  2. Create, in JAR, a folder named META-INF.

  3. Copy the contracts folder from your application into META-INF.

For example, a JAR file that contains the default, tableGreen, and tableBlue contract folders has the structure shown in the following screenshot:

A complete example that uses this JAR file is named ch11_9.