Community
Participate
Working Groups
Build ID: M20071023-1652 Steps To Reproduce: 1. Create a simple tag file in /WEB-INF/tags/xtags 2. Add dynamic-attributes attribute to tag directive: <jsp:directive.tag body-content="empty" dynamic-attributes="attrs"/> <%@ tag body-content="empty" dynamic-attributes="attrs" %> 3. Save tag file. Validator issues "Undefined attribute name (dynamic-attributes)" warning.
Created attachment 85218 [details] Example JSP Tag File
Created attachment 85219 [details] Example JSP file that uses custom tag
Created attachment 97879 [details] temp in-progress patch
Created attachment 97880 [details] corresponding tests
Created attachment 100068 [details] patch with junits Patch to include dynamic-attributes along with other JSP 2.0 support. Also added junit tests for version 2.0 JSP content model.
Looks great. * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. These changes are necessary to correct our JSP 2.0 content model, to ensure that the valid elements are all present and defined correctly. * Is there a work-around? If so, why do you believe the work-around is insufficient? No, this is the only source for this information that we use. This is one of several cases where the content models are hard-written as classes (to avoid requiring the XSD or DTD components at runtime). * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Tested by myself as well as with the new tests that are included. * Give a brief technical overview. Who has reviewed this fix? The content model for JSP files was split up to represent 1.2 and 2.0 differently in WTP 2.0 (the version used depends on the web facet version), but the 2.0 implementation had oversights and mistakes in it. Nick's taken the responsibility of doing the tedious work to make sure that the classes implementing the 2.0 data are accurate. * What is the risk associated with this fix? Low, especially for other components.
committed
Verified in S-3.0RC4-20080610084135.