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

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.

主站蜘蛛池模板: 大方县| 北辰区| 大田县| 会东县| 肥乡县| 建德市| 绥德县| 南丹县| 台江县| 织金县| 星子县| 福州市| 松滋市| 三河市| 青神县| 体育| 阜新| 和田市| 大厂| 封开县| 舒城县| 蒲城县| 团风县| 本溪| 嘉黎县| 汪清县| 安康市| 奉贤区| 石林| 许昌市| 石河子市| 沾益县| 房产| 凤山县| 赤壁市| 新巴尔虎左旗| 大连市| 达拉特旗| 荔浦县| 彰化市| 新龙县|