blob: e128288d186484db4ba33a85b071e4c2eb234685 [file] [log] [blame]
<!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 View Handler</title>
</head>
<body>
<div class="section" lang="en">
<div class="titlepage">
<div>
<div>
<h1 class="Head" style="clear: both"><a name="add_view_handler"></a>Adding
a View Handler</h1>
</div>
</div>
<div></div>
</div>
<p>The view-handler element contains the fully qualified class name
of the concrete ViewHandler implementation class that will be called
during the Restore View and Render Response phases of the request
processing lifecycle. The faces implementation must provide a default
implementation of this class.</p>
<p><span class="strong">To add a view handler:</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">Other </span>tab of the editor.</p>
<p>The Other page appears.</p>
</li>
<li>
<p>Expand the <span class="strong">View Handler</span> section.</p>
</li>
<li>
<p>Click <span class="strong">Add</span>.</p>
<p>The Find Type dialog box appears.</p>
</li>
<li>
<p>Type the first letter of the type you want to use in the <span
class="strong">Select a type</span> field.</p>
<p>A list of available types beginning with the letter you typed
appears in the Matching types list.</p>
</li>
<li>
<p>Select the type that you want to use and click<span
class="strong"> OK</span>.</p>
<p>The view handler is added to the list.</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="../use_facesconfig_editor.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>