官术网_书友最值得收藏!

Creating a JSF project stub

In this section you will see how to create a JSF project stub with JSF Tools. This is a straightforward task that is based on the following steps:

  1. From the File menu, select New | Project option. In the New Project window, expand the JBoss Tools Web node and select the JSF Project option (as shown in the following screenshot). After that, click the Next button.
    Creating a JSF project stub
  2. In the next window, it is mandatory to specify a name for the new project (Project Name field), a location (Location field—only if you don't use the default path), a JSF implementation (JSF Environment field), and a template (Template field). As you can see, JSF Tools offers a set of predefined templates as follows:
    • JSFBlankWithLibs—this is a blank JSF project with complete JSF support.
    • JSFKickStartWithLibs—this is a demo JSF project with complete JSF support.
    • JSFKickStartWithoutLibs—this is a demo JSF project without JSF support. In this case, the JSF libraries are missing for avoiding the potential conflicts with the servers that already offer JSF support.
    • JSFBlankWithoutLibs—this is a blank JSF project without JSF support. In this case, the JSF libraries are missing for avoiding the potential conflicts with the servers that already offer JSF support (for example, JBoss AS includes JSF support).

The next screenshot is an example of how to configure our JSF project at this step. At the end, just click the Next button:

Creating a JSF project stub

This step allows you to set the servlet version (Servlet Version field), the runtime (Runtime field) used for building and compiling the application, and the server where the application will be deployed (Target Server field). Note that this server is in direct relationship with the selected runtime. The following screenshot shows an example of how to complete this step (click on the Finish button):

Creating a JSF project stub

After a few seconds, the new JSF project stub is created and ready to take shape! You can see the new project in the Package Explorer view.

主站蜘蛛池模板: 拉孜县| 沭阳县| 隆德县| 湖州市| 灌南县| 绥滨县| 丹东市| 双辽市| 大厂| 百色市| 邵阳县| 望谟县| 黄浦区| 阿克陶县| 垫江县| 友谊县| 枣阳市| 三原县| 沂源县| 贡山| 衡东县| 高陵县| 镶黄旗| 津市市| 喀什市| 五大连池市| 巴里| 永登县| 河间市| 新竹县| 高平市| 苏州市| 泰州市| 岱山县| 柘荣县| 资源县| 青神县| 水城县| 汝州市| 曲阜市| 雷州市|