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 71388 - Adding new HTML pages is too restrictive
Summary: Adding new HTML pages is too restrictive
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
: 76451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-13 22:51 UTC by jfurmankiewicz
Modified: 2016-07-07 08:55 UTC (History)
2 users (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 jfurmankiewicz 2006-01-13 22:51:21 UTC
I am working in a web projects using the Wicket framework:
http://wicket.sourceforge.net

It stipulates that the UI is in a separate HTML file and all the code is in a
corresponding Java class with the same name. Both are supposed to be in the SAME
FOLDER (i.e. in the source packages).

However, when adding a new HTML file the wizard only allows me to put it into a
folder under Web Pages. So I have to add it in Web Pages and then manually move
it to the proper source package.

It would be great if the Add new HTML file Wizard would allow you to create it
in a source folder as well. 

thanks.
Comment 1 Radko Najman 2006-06-06 14:51:10 UTC
There is one more HTML wizard in which you can specify the file location.
New File -> Other -> HTML File.
Comment 2 Radko Najman 2006-06-06 14:52:10 UTC
IMO it is confusing to have two HTML wizards -> changing to enhancement.
Comment 3 jrojcek 2006-06-09 09:29:56 UTC
We can slightly change the current behavior for external source roots. The location combo box would 
behave according to the project type (values in the combo box):

-----
1. Web project (WebApplication) with no external source root:

Location: Web Pages       - selected by default
          WebApplication

2. Web project with 1 external source root:

Location: Web Pages
          WebApplication
          C:\path\external\root

3. Java, Ejb, Ear project with no external source root:

Location combo is not present (the current behavior).

4. Java, Ejb, Ear project with 1 external source root:

Location: JavaApplication
          C:\path\external\root
-----

Note that we could also improve behavior of the tree chooser opened up by the Browse button. There 
would be a root node for each of root location present in the location combo box. Sometimes you 
might overlook the location combo choices, but in the tree chooser you would notice.
Comment 4 jrojcek 2006-06-09 09:51:02 UTC
Also, if we implement 1 HTML wizard, we should either do the same thing with the XHTML wizard, or just 
put the xml - standard syntax choice into the HTML wizard and get rid of the separate XHTML template.
Comment 5 Radko Najman 2006-06-28 09:52:16 UTC
Partial fix - source roots are available in Web/HTML wizard

Checking in wizards/TargetChooserPanel.java;
/cvs/web/core/src/org/netbeans/modules/web/wizards/TargetChooserPanel.java,v 
<--  TargetChooserPanel.java
new revision: 1.1.36.1; previous revision: 1.1
done
Checking in wizards/TargetChooserPanelGUI.java;
/cvs/web/core/src/org/netbeans/modules/web/wizards/TargetChooserPanelGUI.java,v
 <--  TargetChooserPanelGUI.java
new revision: 1.1.16.2.2.1; previous revision: 1.1.16.2
done
Checking in wizards/PageIterator.java;
/cvs/web/core/src/org/netbeans/modules/web/wizards/PageIterator.java,v  <-- 
PageIterator.java
new revision: 1.1.16.2.2.1; previous revision: 1.1.16.2
done
Checking in wizards/FileType.java;
/cvs/web/core/src/org/netbeans/modules/web/wizards/FileType.java,v  <-- 
FileType.java
new revision: 1.1.36.1; previous revision: 1.1
done
Checking in wizards/Bundle.properties;
/cvs/web/core/src/org/netbeans/modules/web/wizards/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.1.16.2.2.2; previous revision: 1.1.16.2.2.1
done
Checking in core/Bundle.properties;
/cvs/web/core/src/org/netbeans/modules/web/core/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.45.52.1; previous revision: 1.45
done
Checking in core/resources/layer.xml;
/cvs/web/core/src/org/netbeans/modules/web/core/resources/layer.xml,v  <-- 
layer.xml
new revision: 1.81.4.3.2.1; previous revision: 1.81.4.3
done
Comment 6 Petr Jiricka 2006-07-04 15:18:07 UTC
*** Issue 76451 has been marked as a duplicate of this issue. ***
Comment 7 Martin Balin 2016-07-07 08:55:09 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