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

Bug 246118

Summary: toggling validate JSP Fragments not functioning
Product: [WebTools] WTP Source Editing Reporter: Brian Gardner <brian>
Component: jst.jspAssignee: Ian Tewksbury <itewksbu>
Status: RESOLVED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: andy.j.peterson, thatnitind
Version: 3.0.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
URL: http://www.experts-exchange.com
Whiteboard:

Description Brian Gardner CLA 2008-09-03 13:53:27 EDT
I'm porting over a web application from a windows box where this functionality works as expected and all .jsf files are not validated.  However I can not get this to work properly on my brand new Mac.  I've tried toggling the option per file, per project, and globally and all have no effect, .jsf files are still being validated.  I downloaded the ganymede Eclipse IDE for Java EE Developers package and used software updates to update to the latest version.  I'm also running Mylyn and Subclipse.
Comment 1 Nitin Dahyabhai CLA 2008-09-03 17:35:40 EDT
Usually JSP fragments are expected to be named .jspf.  .jsf files are expected to be JavaServer Faces files.
Comment 2 Brian Gardner CLA 2008-09-03 23:18:08 EDT
Are you sure?  If I go to General->Content Types->Text->JSP->JSP Fragment I see

*.jsf (locked)
*.jspf (locked)

Further more I have a setup that's near identical on Windows and the .jsf extensions do the trick.
Comment 3 Nitin Dahyabhai CLA 2008-09-04 23:46:22 EDT
Brian's right.

If I had to guess, something's amiss in org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.isFragment(IFile)or its caller.  Brian, can you attach a sample file that's being validated regardless of the preference setting?
Comment 4 Andy Peterson CLA 2008-12-02 13:43:10 EST
I am having the same issue on windows version.
Comment 5 Brian Gardner CLA 2008-12-05 12:42:09 EST
Not the best workaround, but what I've done to rectify the problem.

Right click on main project on Project Expolorer or Navaigator and select the properties option.  Choose the Validation option.  You have the option to change this in your project prefs or globally if you prefer, I did per project settings so they would be stored in version control.  Click the ... (elipse) and remove .jsf files from the include list for the validators "JSP Content Validator" and "JSP Syntax Validator".  Now right click on the mainApp again and select the validate option.  Good luck!
Comment 6 Ian Tewksbury CLA 2009-06-25 15:38:43 EDT

*** This bug has been marked as a duplicate of bug 250833 ***