Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354859 - Nothing happens when creating a Listener or a Filter using an existing class in Web Fragments Projects
Summary: Nothing happens when creating a Listener or a Filter using an existing class ...
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Salvador Zalapa CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 12:48 EDT by Salvador Zalapa CLA
Modified: 2011-08-17 18:06 EDT (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
IWebCommon replace IWebApp (3.74 KB, patch)
2011-08-16 12:54 EDT, Salvador Zalapa CLA
shr31223: iplog+
zalapa: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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