| |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <link rel="stylesheet" href="../../../book.css" type="text/css"> |
| <title>Adding a RenderKit</title> |
| </head> |
| <body> |
| <div class="section" lang="en"> |
| <div class="titlepage"> |
| <div> |
| <div> |
| <h1 class="Head" style="clear: both"><a name="add_renderkit"></a>Adding |
| a RenderKit</h1> |
| </div> |
| </div> |
| <div></div> |
| </div> |
| <p>A RenderKit is a library of renders. A render is used to |
| customizes the encoding and decoding for a specific client device or |
| localized application user. A RenderKit can implement a look and feel, |
| called a skin, target specific devices, such as a phone, PDA, or markup |
| language, for example, WML, HTML, or SVG. In a JavaServer Page (JSP) a |
| RenderKit is represented as a custom tag library. For detailed |
| information on RenderKits, see the Sun JavaServer Faces Specification.</p> |
| <p><span class="strong">To add a RenderKit</span>:</p> |
| <div class="orderedlist"> |
| <ol type="1"> |
| <li> |
| <p>Select <span class="strong"> faces-config.xml</span> in the <span |
| class="strong">Project Explorer</span> of the <span class="strong">J2EE</span> perspective.</p> |
| <p>The JSF Application Configuration editor opens.</p> |
| </li> |
| <li> |
| <p>Select the <span class="strong">Component </span>tab of the |
| editor.</p> |
| </li> |
| <li> |
| <p>Expand the <span class="strong">RenderKits</span> section.</p> |
| <p>A list of defined RenderKits, general information, and a list of |
| renderers of the selected RenderKit appears.</p> |
| </li> |
| <li> |
| <p>Click <span class="strong">Add</span>.</p> |
| <p>A new RenderKit is added to the RenderKits list with the default |
| name New Renderkit<span class="emphasis"><em>x</em></span>.</p> |
| </li> |
| <li> |
| <p>(Optional) Change the default RenderKit name to a unique, |
| descriptive name in the <span class="strong">Display name</span> field |
| of the <span class="strong">General </span>section.</p> |
| </li> |
| <li> |
| <p>(Optional) Type a description in the <span class="strong">Description</span> |
| field.</p> |
| </li> |
| <li> |
| <p>Type an ID in the <span class="strong">RenderKit ID </span>field.</p> |
| </li> |
| <li> |
| <p>Click <span class="strong">Browse</span> and select a<span |
| class="strong"> RenderKit Class</span>.</p> |
| </li> |
| </ol> |
| </div> |
| <p></p> |
| <br> |
| <img src="../../../images/ngrelc.png" alt="Related concepts" border="0"> |
| <p><br> |
| </p> |
| |
| <p><img src="../../../images/ngrelr.png" alt="Related reference" |
| border="0"></p> |
| <p><br> |
| </p> |
| <p><a href="../../reference/facesconfigeditor.html">Faces Config |
| Editor</a><br> |
| </p> |
| |
| <p><img src="../../../images/ngrelt.png" alt="Related tasks" border="0"> |
| </p> |
| <p><a href="../../gettingstarted/tutorial/JSFTools_tutorial.html">Tutorial</a></p> |
| </div> |
| |
| </body> |
| </html> |