| Summary: | JSP semantics validator is not fired for JSF/JSPF files | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | Vadim Dmitriev <dmgloss> | ||||||
| Component: | Core | Assignee: | Cameron Bateman <cameron.bateman> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | david_williams, thatnitind | ||||||
| Version: | 2.0 | Flags: | jlanuti:
pmc_approved?
(jgarms) david_williams: pmc_approved+ jlanuti: pmc_approved? (raghunathan.srinivasan) jlanuti: pmc_approved? (naci.dai) jlanuti: pmc_approved? (deboer) neil.hauge: pmc_approved+ raghunathan.srinivasan: review+ thatnitind: review+ |
||||||
| Target Milestone: | 2.0 RC3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | PMC_approved | ||||||||
| Attachments: |
|
||||||||
|
Description
Vadim Dmitriev
consider for 2.0 Created attachment 70417 [details]
Patch to fix by opening up the content types supported by the validator.
Created attachment 70420 [details]
Original patch plus some sensitivity black box testing of changes
Patch attached. Change if very targetted and simply expands the file extensions that the JSF framework will validate based on content type bindings for both JSP and JSP fragments. Unit tests added to the main EL suite to ensure coverage of jspx, jsf and jspf files in addition to the current jsp tests that are performed. Approved for PMC review. Safve fix to enable exisitng validation for additional file types (.jsf, .jspf). We have junits to cover these cases. Nitin, will you please review also? Is there a JSF "Content Type" ... should there be? Would that change this fix? (In reply to comment #6) > Is there a JSF "Content Type" ... should there be? Would that change this fix? We *do* have a different subtype for .tag files, but then only because they allow a different set of directives and actions. A new JSF content type would mean altering parts of the patch. We've tried very hard not to have one in the past as JSF files are fundamentally just special JSP files. The patch does look to register the validator correctly for the JSP content type and would not run (which is what we want) on the tagsource content type. Vadim's comment about the name of the validator should get some consideration in V3. Thanks Nitin. This patch sounds fine then. I will point out, though, that "JSF files are fundamentally just special JSP files" sure sounds like a new content type to me ... as a 'sub type' of JSP content type ... but if this is currently the only use of it, then agree there's no rush. Thanks all. Patch applied. Verified in 2.0.1RC3 (20070921180805) |