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.

Bug 186394 - Provide project wizard and approach to create and test a Web Componet project
Summary: Provide project wizard and approach to create and test a Web Componet project
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 15:47 UTC by hantsy
Modified: 2016-07-07 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2010-05-19 15:47:46 UTC
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).
Comment 1 Vince Kraemer 2010-05-19 17:01:12 UTC
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.
Comment 2 David Konecny 2010-05-19 18:57:10 UTC
(In reply to comment #0)
> 4.Configuration for test

How would you expect this to work? What should be setup out of the box?
Comment 3 hantsy 2010-05-20 02:25:25 UTC
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.
Comment 4 hantsy 2010-05-20 02:28:16 UTC
In a word, provide a simple way to create a web component project and a easy way to test it.
Comment 5 hantsy 2012-07-14 01:21:42 UTC
Eclipse provide "Web fragment project" feature, is there any progress in NetBeans IDE?
Comment 6 David Konecny 2012-07-16 22:57:02 UTC
No progress and no plan (yet) to implement this.
Comment 7 Petr Jiricka 2012-07-17 07:48:20 UTC
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.
Comment 8 twinfeats 2012-10-01 14:31:58 UTC
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.
Comment 9 Martin Balin 2016-07-07 08:54:15 UTC
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