Select the User Library type and click on the download icon to download the MyFaces JSF library. Click Apply.Ĭheck Java Server Faces and click on further configuration available. Click on Runtimes and select your previously created Tomcat runtime. Check Generate web.xml deployment descriptor. The context root will appear in your URLs later: Change the content directory from WebContent to webapp for convenience. Check Dynamic Web Module version 3.0 and click on further configuration available.Įnter your context root, for example AppName. Enable project facets, select Java and set the version to 1.6 or 1.7. Right click your project, click Properties and select Project Facets. ![]() Download mysql-connector-java-5.x.xx-bin.jar and put it into tomcat/libĬreate a simple Maven project with no archetype and select.Download Tomcat 7.0.xx and unzip it somewhere.Have a look at the Screenshot on the left. Install Subclipse, the Subversion Client Adapter and the Subversion JavaHL Native Library Adapter from the following URL: You may want to configure Maven to download JavaDocs along with the libraries. Install the m2eclipse Maven plugin from the Indigo release website as shown in the screenshot on the left. These settings took very little time, but I feel way more comfortable now. Therefore I import my Java formatter at this point. I adjusted the default Eclipse code formatter, for example to cleaner format switch statements, and saved these settings. This might feel a bit rude at the beginning, but once you get used to it, you will probably enjoy coding a lot more since you dont have to worry about basic code style any more. Set Java save actions to format your code every time you save the file. It’s just not an error and not worth a warning. However, the spec does not demand bean methods to return String. ![]() I do this because most of my controller’s action methods have return type void and Eclipse wants to see String here instead. Go to Web – JavaServer Faces Tools – Validation, open Type Assignment Problems and set Method expression signature incompatibility from Warning to Ignore.Go to XML – XML Files – Validation and set No grammar specified from Warning to Ignore.Enable Refresh using native hooks or polling and Refresh on access.Set all default encodings to UTF-8 (General – Workspace, Web – CSS Files, Web – HTML Files, Web – JSP Files, XML – XML Files).But this is completely up to you, feel free to skip this section. Personally, I don’t like some of Eclipse’s default settings and will change them right now. Unzip Eclipse to a directory of your choice, start it and choose a location for your workspace folder. Get Eclipse Junoĭownload Eclipse IDE for Java EE Developers. Eclipse JSF JPA CDI Maven project (Juno Update) Sun, Jun 9, 2013
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |