Creating an application with NetBeans seems to be obvious easy. Indeed, it is. If you know, which build system to use.
Choose File, New Project from the menu or simply press Ctrl+Shift+N to open the New Project wizard.
Now you may choose Java Web, Web Application and click onto Next. NetBeans guides you thru a couple of dialogs. You can choose the application name and location, the server and its settings and on the last one, the framework you want to use.
Then, if you click onto Finish, NetBeans creates the application for you. This app will use Ant as build system. Sadly, there is no chance to choose the build system at the end of the wizard.
If you want to use Maven, the approach is a little different: Within the New Project wizard you first have to choose Maven and then the type of application (Web Application).
NetBeans queries some Maven typical information (screen shot below), and then the server settings.
These series of dialogs offer no screen to add the web framework. If you want to create a JSF application, let NetBeans first create the project for you. Then open the project properties, e.g. by right clicking the project tree.
Choose Frameworks. Here you get your chance to add JSF.
BTW: TinyCalculator is the first and simplest web application discussed in my book “Web Development with Java and JSF”.
Do you want to support this blog? You may help to finance the needed hardware.
Want to read more about software development? Purchase one of my books:
Start application development with Java. Learn development foundation, quality control and more.
A Journey through Java EE Technologies whilst developing Web Applications with JavaServer Faces.
Java Lambdas and Parallel Streams
The compact starter: Foundation, supporting structures, parallel processing
No software development, just nature:
A photographic image book. Get it for free. Or pay whatever you like.
I would like to buy your book if it covers Java EE E Commerce Application
Amos,
I’m sorry, my book does not cover E commerce directly.
But you might use the techniques discussed in my book.
Enjoy!
Michael