Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344733

Summary: [JAX-RS] Upon selection, the JAX-RS Configuration page is blank when Project Facets page has unapplied changes
Product: [WebTools] WTP Webservices Reporter: Keith Chong <keith.chong.ca>
Component: jst.wsAssignee: Keith Chong <keith.chong.ca>
Status: RESOLVED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3 CC: ccc
Version: 3.2.4   
Target Milestone: 3.2.4 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 349715, 349718    
Attachments:
Description Flags
Apply to org.eclipse.jst.ws.jaxrs.ui none

Description Keith Chong CLA 2011-05-04 13:06:12 EDT
Steps to reproduce

1. Launch new dynamic web project
2. Target Apache Tomcat 6 or 7
3. Click Modify...
4. Click the JAX-RS (REST Web Services) facet
5. Click Ok
6. Finish with the rest of the wizard and add your JAX-RS library jars
7. Right click on your newly created project and select Properties
8. Select the Project Facets subtree
9. Change the JAX-RS facet version, without applying the change  
10. Expand the Project Facets subtree and click on the JAX-RS properties page
--> An error message appears "Could Not Accept Changes, The currently displayed page contains invalid values"

11. Click Ok and Cancel out of the properties page.
12. Repeat steps 7,8
13. Expand the Project Facets subtree and select the JAX-RS properties page
14. This time the page is ok.  Select the Project Facets page again
15. Now, change the JAX-RS facet version, without applying the change
16. Now, click on the JAX-RS Properties subtree
--> The page is blank

It should actually show the message:

"Uncommitted changes are present on the Project Facets property page. Commit or revert those changes prior to making changes to this facet's configuration."
Comment 1 Keith Chong CLA 2011-05-16 10:55:49 EDT
Created attachment 195738 [details]
Apply to org.eclipse.jst.ws.jaxrs.ui
Comment 2 Keith Chong CLA 2011-05-16 11:02:15 EDT
Patch attached...excludes version changes.
Comment 3 Carl Anderson CLA 2011-05-16 21:23:07 EDT
Committed to R3_2_4_patches