This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I want to create a web component project. But I found it does not provide in NetBeans IDE. 1.Base on the java application(packaged in jar format,with different project type icon). 2.Provide a wizard to create a web fragment file in the project. 3.Other wizard for resource files(css,js,jsp,xhtml,html etc) are also visible to the project. 4.Configuration for test(or create a Test web project when create the project and add this project as a dependency ,thus the test project can run on a web server).
Most of this functionality is already available in the Java Class Library project. Item 4 is an interesting enhancement and may justify a new project type.
(In reply to comment #0) > 4.Configuration for test How would you expect this to work? What should be setup out of the box?
I think the improvements includes: 1. Provide a new project type(with web fragment config file and resource sample file in project template), can be named "Web Component Project", other than the Java Class Library. 2. Run or test configration like a web project(run in servlet container), or 3. Provide mock object and test fixture for JUnit test, or 4. Create another web project for test at the same time when create this component project, and add this component as a dependeny(project type), thus all test code(web pages or java classes) can be included in the web project.
In a word, provide a simple way to create a web component project and a easy way to test it.
Eclipse provide "Web fragment project" feature, is there any progress in NetBeans IDE?
No progress and no plan (yet) to implement this.
Right, I must say this is low priority right now. But since there are manual steps that can already accomplish what you are requesting, it would be useful to blog about it or create a HOWTO document, so other people who have this need have a "cookbook" for building web components. hantsy, if you would be willing to take this on, feel free to use the NetBeans wiki.
This really needs to be fixed - Servlet 3 is going on what, 3 years old now? I can create a web fragment project as a java class library project, but the jsps that I put in META-INF/resources do not get code completion or even any syntax checking at all - that makes it pretty much useless.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss