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 226188 - Inconsistent wizards for RESTful JavaScript Client
Summary: Inconsistent wizards for RESTful JavaScript Client
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Web Services Client (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on: 226190
Blocks:
  Show dependency tree
 
Reported: 2013-02-15 16:02 UTC by Petr Jiricka
Modified: 2013-08-19 07:41 UTC (History)
1 user (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 2013-02-15 16:02:25 UTC
1. Create a HTML5 project
4. In this project, in New File wizard, go to HTML5 -> RESTful JavaScript Client
3. Create a Java Web project
4. In this project, in New File wizard, go to Web Services -> RESTful JavaScript Client

You see that there are two wizards called RESTful JavaScript Client (one available in HTML5 projects, one in Java Web projects), but they are totally inconsistent and each of them does something else. The HTML5 one is the new wizard added in NetBeans 7.3: http://wiki.netbeans.org/NewAndNoteworthyNB73#REST_service_consumption
The Java Web one is some old stuff from 2008 or earlier that does something completely different (see commit history for websvc.rest/src/org/netbeans/modules/websvc/rest/wizard/ClientStubsIterator.java)

We should make this consistent between the two, perhaps by just deleting the old stuff and making the new stuff available in all kinds of projects.
Comment 1 David Konecny 2013-02-17 23:36:56 UTC
I think the purpose of old code was primarily for testing of REST services.
Comment 2 Petr Jiricka 2013-02-18 09:06:57 UTC
I did not explore the code much, but I thought that the way to do web service testing was through the "Test RESTful services" action in the project's popup menu, not through new project wizard.
Comment 3 David Konecny 2013-02-18 19:17:11 UTC
Neither do I remember it much. But if you follow the wizard and run the generated code the screen says "Test RESTful Web Service Client Stubs". It does not work for me though - something broken in the generated code.
Comment 4 Milan Kuchtiak 2013-08-02 13:33:45 UTC
Fixed.

The old XHR based JavScript wizard was replaced by new RESTful JavaScript wizard.
So now, the Web Services category and HTML5 category contain the same wizard.

See:
https://hg.netbeans.org/web-main/rev/be2dbca5483d
Comment 5 Petr Jiricka 2013-08-02 14:11:47 UTC
Thanks Milan - so is the old wizard still used somewhere? If not, could the code be removed completely?
Comment 6 Milan Kuchtiak 2013-08-02 15:53:07 UTC
Code removed completely, including ResourceBundle keys:
https://hg.netbeans.org/web-main/rev/d30ad92eb46a
Comment 7 Quality Engineering 2013-08-03 02:09:02 UTC
Integrated into 'main-silver', will be available in build *201308022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/be2dbca5483d
User: Milan Kuchtiak <mkuchtiak@netbeans.org>
Log: #226188: Replacing old JavaScript client with new one (based on Backbone)
Comment 8 Quality Engineering 2013-08-06 02:22:36 UTC
Integrated into 'main-silver', will be available in build *201308052300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/350ff3239c89
User: Milan Kuchtiak <mkuchtiak@netbeans.org>
Log: #226188: module clean-up
Comment 9 Milan Kuchtiak 2013-08-19 07:41:20 UTC
Fixed wizard bundle name:

http://hg.netbeans.org/web-main/rev/974c86d8137e