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 221517 - Update Rabbits sample to the latest sources
Summary: Update Rabbits sample to the latest sources
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Samples (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 21:16 UTC by Petr Jiricka
Modified: 2012-11-25 03:08 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
updated sample project (650.80 KB, application/zip)
2012-11-22 09:44 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Petr Jiricka 2012-11-07 10:44:07 UTC
Also need to replace the REST service call by a mock - Lada was looking into this.
Comment 2 Denis Anisimov 2012-11-21 15:10:55 UTC
web-main#ddf4d518a854
Comment 3 Quality Engineering 2012-11-22 02:43:42 UTC
Integrated into 'main-golden', will be available in build *201211220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ddf4d518a854
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#221517 - Update Rabbits sample to the latest sources
Comment 4 Vladimir Riha 2012-11-22 09:13:04 UTC
The REST demo is not working, it still tries to call e.g.

http://localhost:8080/RestDemo/resources/manufacturer

Either it should be updated (add JSON files to the project) or removed from project at all. I think that RESTful JavaScript Client could be included as well.


Product Version: NetBeans IDE Dev (Build web-main-9296-on-20121121)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Denis Anisimov 2012-11-22 09:20:40 UTC
(In reply to comment #4)
> The REST demo is not working, it still tries to call e.g.
> 
> http://localhost:8080/RestDemo/resources/manufacturer
> 
> Either it should be updated (add JSON files to the project) or removed from
> project at all. I think that RESTful JavaScript Client could be included as
> well.
> 
> 
> Product Version: NetBeans IDE Dev (Build web-main-9296-on-20121121)
> Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
> Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
> System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)

I'm not an author of the sources.
I have no idea what the sample do. I'm just providing NB functionality 
that creates the project.
The issue description contains only link with sources without any additional
information.
Please provide another sources or describe how the sample could be changed to 
get it correct.

>Also need to replace the REST service call by a mock - Lada was looking into
>this.
I suppose this is task for you.
Comment 6 Vladimir Riha 2012-11-22 09:28:41 UTC
OK, if you want I can upload modified version where it works
Comment 7 Denis Anisimov 2012-11-22 09:31:47 UTC
(In reply to comment #6)
> OK, if you want I can upload modified version where it works

It would be great.
Thank you very much !
Comment 8 Vladimir Riha 2012-11-22 09:44:38 UTC
Created attachment 128246 [details]
updated sample project

Here it is. 

Changes in brief:
- data requested from server are now saved in /rest folder as static JSON
- I updated REST endpoints to be relative so it should work no matter what Web root or port is set and 
- added REST client tableui.html and link to top navigation bar
- added BackboneJS library (for the REST Client)
- changed the getLanguage() function so it shows English text by default
Comment 9 Vladimir Riha 2012-11-22 09:45:04 UTC
Reopening, thanks
Comment 10 Denis Anisimov 2012-11-22 17:46:10 UTC
web-main#180b81c6f94a
Comment 11 Vladimir Riha 2012-11-23 13:10:24 UTC
thanks, verified.

Product Version: NetBeans IDE Dev (Build web-main-9317-on-20121123)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 12 Quality Engineering 2012-11-25 03:08:57 UTC
Integrated into 'main-golden', will be available in build *201211250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/180b81c6f94a
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#221517 - Update Rabbits sample to the latest sources