![]() A faces-config.xml file is found in META-INF of some jar in WEB-INF/lib.A faces-config.xml file is found in WEB-INF.Since JBoss 6 a Web application is JSF 2.0 compliant if you have either: Question: do I need to specify anything related to JSF in my web.xml ? You can at any time switch to JSF 1.2 implementation by adding in your web.xml file ![]() Question: How can I use JSF 1.2 with JBoss 6 ? package sample Īnd now some specific questions about JSF and JBoss. The expected result is to uppercase the text contained in the field personName. ![]() Īn this is the corresponding Managed Bean (notice we declare it using a simple annotation). Here’s a sample HelloWorld application which can be used to test your JSF 2.0 environment.Īdd a sample.xhtml page to your Web content. ![]() There you willįind several JSF implementation- basically you can opt between Mojarra-1.2 (JSF 1.2) and Mojarra-2.0 (JSF 2.0). They are placed in your \deployers\jsf.deployer. Where are located JSF libraries on JBoss AS 6 ? Choose the “ Manage Library” button and create a New User Library containing JSF 2.0 libs. Finally in the JSF Capabilities window you have to point out where JSF libraries are located. That’s not a big issue- the only thing you have to change is the faces-config.xml heading which needs to specify you are using JSF 2.0Īccept the next screen settings. If you have got an earlier version of Eclipse you will find just Java Server Faces 1.1 available. In the next screen you have to enable the JSF 2.0 facet so that Eclipse will add JSF configuration file and will enable JSF facilities (code completion in JSF pages). ![]() Now click on the “ Modify” button, near the Configuration option. Select the Target runtime pointing to your JBoss 6 installation (JBoss 6 is not included in the server list, however by choosing JBoss 5 will work as well). Reach the Menu: New | Other | Web | Dynamic Web Project In order to run this example you need to download a copy of Eclipse Java Enterprise edition from Ī JSF application can be created from a Dynamic Web Project. In this tutorial we will show how to configure and create a JSF 2.0 application on JBoss AS 6 using Eclipse 3.6.0 IDE (Helios) in a matter of minutes. Lots of specific plugins are available for JBoss products, however also with the minimal Eclipse Enterprise set you can easily build Java EE 6 applications. Eclipse is the most used software development environment. ![]()
0 Comments
Leave a Reply. |