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

Bug 325490

Summary: [JSF2.0] False warning from facelet validator when working with facelet pages in a sub-folder
Product: [WebTools] Java Server Faces Reporter: Xiaonan Jiang <xiaonan_jiang>
Component: JSF ToolsAssignee: Ian Trimble <ian.trimble>
Status: RESOLVED FIXED QA Contact: Cameron Bateman <cameron.bateman>
Severity: normal    
Priority: P3 CC: raghunathan.srinivasan, yurykats
Version: unspecified   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Xiaonan Jiang CLA 2010-09-16 12:39:02 EDT
Build Identifier: M-3.2.1-20100623085141

Will see a false warning. See the steps below for details.

Reproducible: Always

Steps to Reproduce:
1. Create a JSF 2.0 project
2. Create a folder under WebContent
3. Create two facelet pages in the above folder, e.g. t1.xhtml and t2.xhtml.
4. In t2.xhtml, add a tag <ui:include src="t1.xhtml"/>
5. Save the page

Problem: 
  will see a warning "invalid value" under src attribute value 
  (No warning if don't use the sub-folder)
Comment 1 Xiaonan Jiang CLA 2010-09-20 13:51:50 EDT
Created attachment 179262 [details]
Fix

When the file name in the attribute value does not start with "/", the specified file should be relative to the current file.
Comment 2 Yury Kats CLA 2010-12-01 13:44:14 EST
Is anything preventing the patch from being applied to 3.2.3? Any other assistance we can offer to help resolve this bug?
Comment 3 Raghunathan Srinivasan CLA 2010-12-01 14:25:02 EST
Mass update: The JSF Tools team is currently focused on performance and deadlock issues in the product. We plan to address other WTP bugs later this month and will review and checkin the patches soon. Thanks for your contribution and understanding.
-Raghu
Comment 4 Ian Trimble CLA 2011-01-04 17:57:07 EST
Committed to 3.2.3 and 3.3.0 at 2011/01/04 02:56PM PDT.