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 203208 - Unsuitable templates in the New wizard in web project
Summary: Unsuitable templates in the New wizard in web project
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2011-10-06 09:43 UTC by Petr Jiricka
Modified: 2011-11-28 14:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2011-10-06 09:43:37 UTC
1. Create a Java EE 6 Web Project
2. Go to File -> New File

You see the following template categories:
Java Card 3 Platform: should not be there, as none of these templates can be used in web project
Java FX: these can be created, but probably don't make sense in a web project, and the project is misconfigured and uncompilable after they are created

The same problem exists for Maven project, will file a separate bug report.
Comment 1 Petr Jiricka 2011-10-06 09:45:46 UTC
Filed bug 203209 for Maven.
Comment 2 David Konecny 2011-10-07 01:18:26 UTC
I think the problem is that JavaCard and JavaFX wizards do not specify

  <attr name="templateCategory" stringvalue=".....some value....."/>

attribute on its templates and NB must always show them (for backward compatibility perhaps?). Just create your own category and then specify it via implementation of RecommendedTemplates. See org.netbeans.modules.web.project.WebProject.RecommendedTemplatesImpl class for example.

Once you fix it please pass the issue to JavaFX team. Thx.
Comment 3 Martin Janicek 2011-11-24 14:05:57 UTC
David could you clarified this to me a little? I've created my own implementation of Recommended and Privileged templates and there is no JavaFX template registration. But it still can be seen in file creation wizard - so what should be done on my side to fix that?

Java Card 3 Platform is not shown at all - maybe it has been already fixed by someone else?
Comment 4 David Konecny 2011-11-24 23:47:18 UTC
My recommendation was for JavaCard module owner (to whom I assigned this issue) to fix it and then pass it to JavaFX. I do not think you can fix it in Maven Martin.
Comment 5 Petr Jiricka 2011-11-25 08:43:41 UTC
I would classify this as a "critical usability problem", i.e. a P2 defect according to http://wiki.netbeans.org/BugPriorityGuidelines. Should be fixed for NB 7.2 (not necessarily for 7.1).
Comment 6 Anton Chechel 2011-11-25 15:22:35 UTC
fixed for javafx and javacard in jet-main:
http://hg.netbeans.org/jet-main/rev/c19af363f511
Comment 7 Quality Engineering 2011-11-27 17:00:01 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/c19af363f511
User: Anton Chechel <manowar@netbeans.org>
Log: #203208: unsuitable templates of javafx and javacard
Comment 8 Anton Chechel 2011-11-28 14:22:48 UTC
Marian, that's not 71_HR_FIX_CANDIDATE. This is for 7.2.