Author: irooskov(a)redhat.com
Date: 2011-11-02 22:44:32 -0400 (Wed, 02 Nov 2011)
New Revision: 36153
Added:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_01.png
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_02.png
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_support.xml
Log:
updated for JBIDE-9198
Added:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_01.png
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_01.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_02.png
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_existing_project_02.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_support.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_support.xml 2011-11-03 01:17:33 UTC (rev
36152)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_support.xml 2011-11-03 02:44:32 UTC (rev
36153)
@@ -43,7 +43,7 @@
</para>
<section>
- <title>Facelets templates</title>
+ <title>Creating a JSF project with Facelets</title>
<para>
If you want to build an application using Facelets, create a project with Facelets
based on version 1.2 of the JSF Reference Implementation, i. e. select the
<guilabel>JSF 1.2 with Facelets</guilabel> option in the <guilabel>JSF
Environment</guilabel> section of the <guilabel>New JSF
Project</guilabel> wizard.
</para>
@@ -138,6 +138,34 @@
</table>
</section>
<section>
+ <title>Adding JSF Facelets to any existing project</title>
+ <para>
+ JSF capability can be added to any existing project, and no pre-existing
<filename>web.xml</filename> file is necessary. To enable JSF support for a
project, right-click on the project in the <guilabel>Project
Explorer</guilabel>, bringing up the context menu. From this menu navigate to
<menuchoice><guimenuitem>Configure</guimenuitem><guimenuitem>Add
JSF Capabilities</guimenuitem></menuchoice>.
+ </para>
+ <figure>
+ <title>Add JSF Capabilities menu item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/troubleshooting/JSF_existing_project_01.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ This will open the <guilabel>Project Facets</guilabel> dialog for the
project. Click the checkbox next to <guilabel>JavaServer Faces</guilabel>. You
undertake further configuration by clicking the <guilabel>Further configuration
available</guilabel> button at the bottom of the dialog; this will allow you to
define specific configuration options. Click <guibutton>Apply</guibutton> and
then the <guibutton>OK</guibutton> on the <guilabel>Project
Facets</guilabel> dialog when you are finished.
+ </para>
+ <figure>
+ <title>Project Facets dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/troubleshooting/JSF_existing_project_02.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ The project will now contain a new node (visible through the <guilabel>Project
Explorer</guilabel>) named <guilabel>Web Resources</guilabel>. This node
contains all your JSF files for the project.
+ </para>
+ </section>
+ <section>
<title>Facelets components</title>
<para>