Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325490 - [JSF2.0] False warning from facelet validator when working with facelet pages in a sub-folder
Summary: [JSF2.0] False warning from facelet validator when working with facelet pages...
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Ian Trimble CLA
QA Contact: Cameron Bateman CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 12:39 EDT by Xiaonan Jiang CLA
Modified: 2011-01-04 17:57 EST (History)
2 users (show)

See Also:


Attachments
Fix (2.89 KB, patch)
2010-09-20 13:51 EDT, Xiaonan Jiang CLA
no flags Details | Diff

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