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

Bug 354859

Summary: Nothing happens when creating a Listener or a Filter using an existing class in Web Fragments Projects
Product: [WebTools] WTP Java EE Tools Reporter: Salvador Zalapa <zalapa>
Component: jst.j2eeAssignee: Salvador Zalapa <zalapa>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, shr31223
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
IWebCommon replace IWebApp shr31223: iplog+, zalapa: review?

Description Salvador Zalapa CLA 2011-08-16 12:48:51 EDT
Build Identifier: 

Nothing happens when creating a Listener or a Filter using an existing class in Web Fragments Projects.

Reproducible: Always

Steps to Reproduce:
1.- Create a Web Fragment project
2.- Via Project Explorer, right click on Lister or Filter node
3.- Select the option, " Use existing Filter (listener) class "
4.- Notice that the entry is not created in the web-fragment.xml file.
Comment 1 Salvador Zalapa CLA 2011-08-16 12:54:00 EDT
Created attachment 201592 [details]
IWebCommon replace IWebApp
Comment 2 Salvador Zalapa CLA 2011-08-16 12:59:40 EDT
Thi thing is that AddListenerOperation and AddFilteroperation are just considering the WebApp interface, that's why WebFragment never pass the cast test, so the patch consist in use the IWebCommon interface instead of WebApp interface to perform the operations.
Comment 3 Chuck Bridgham CLA 2011-08-17 16:11:11 EDT
approved
Comment 4 Roberto Sanchez Herrera CLA 2011-08-17 18:06:30 EDT
Code committed to R3_2_maintenance for WTP 3.2.5, 3.3.1 and 3.4