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 56207 - Merge 2 HTML wizards into one single wizard.
Summary: Merge 2 HTML wizards into one single wizard.
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-10 22:05 UTC by _ gtzabari
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 _ gtzabari 2005-03-10 22:05:40 UTC
Wicket (http://wicket.sourceforge.net/) requires one to be able to create HTML
files in the same directory as JSP files. Currently the wizard has a field
"location" that specifies where to create the file but it defaults to "Web
pages" even if the wizard is triggered by right-clicking on a Java package.

Expected behavior: default to create HTML file within the package I
right-clicked on.
Comment 1 Pavel Buzek 2005-03-20 04:01:33 UTC
Jirko, do you think this is too restrictive? Is it a usability bug? I think the
only workaround is to create the file in web folder and then move it -- ugly!

Fix should be relatively simple. Not sure about docs impact, etc.
Comment 2 Jiri Kopsa 2005-03-21 11:06:34 UTC
I think we should not be restrictive; creating a file in "any" folder is a valid
use case. Morover the context should work.

The issue is very interesting! Did you know, that we have two different wizards
for an HTML page? I didn't! ;-) One in "Web" category (HTML), the other in the
"Other" (HTML File).

I realized that it's quite a mess, we should merge the functionality of these
two into one. Here is a summary of their current behaviour:

1. Other / HTML wizard

Contains Folder text field and browse button allowing the user to choose a
folder within the project folder.

If there are more then one source folders the Location combobox appears. It
includes the project folder and "external" folders. The user can than use the
browse button to select a Folder within the Location.

2. Web / HTML wizard

There is also the pair Location / Folder, but:
- they are always present
- the Location combobox contains only one item "Web Pages".

Here is my proposal:
1. Merge the wizards into one that will be located in the Web category.
2. Use the layout of the Web / HTML.
3. Name the wizard "HTML File".
4. The Location combobox, should contain
   - the project folder
   - any other "mounted" source folders
   - "Web Pages" folder
5. If the user activates the wizard on a source folder (or a subfolder/package),
it will be reflected in the Location and Folder fields. Otherwise the Location
will default to "Web Pages" folder.

Comments?
Comment 3 Milan Kuchtiak 2005-03-21 16:53:32 UTC
Actually, you can create HTML anywhere (even in java package) by using New ->
File/Folder -> Other -> HTML File wizard. The Summary of the bug is not much
appropriate.

I am changing the Summary then.

The suggestion made by Jirka Kopsa looks reasonable.
Comment 4 Milan Kuchtiak 2006-05-05 06:26:35 UTC
Sorry, I'll take it back to me.
Comment 5 Martin Balin 2016-07-07 08:55:10 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