- This topic has 7 replies, 3 voices, and was last updated 16 years, 8 months ago by
Loyal Water.
-
AuthorPosts
-
StrunkerMemberHi,
I’m testing Eclipse 3.4.1 with MyEclipse 7.0 M2.
I’m using a taglib which uses dynamic-attributes. But on all JSPs which use dynamic attributes I get the warning:
“Undefined attribute name <attribute name>”
Is there a change to get this fixed in 7.0 GA?
October 28, 2008 at 11:27 am #290375
Loyal WaterMemberCan you paste a sample jsp page here for me.
October 28, 2008 at 1:25 pm #290384
StrunkerMemberHere is a sample JSP. I removed all non-interesting parts:
<%@ taglib prefix="stripes" uri="/WEB-INF/stripes.tld" %> <stripes:layout-render name="/pages/baseLayout/baseLayout.jsp" pageTitleKey="loginPage.title"> ... </stripes:layout-render>
And here’s the related part of the TLD:
<tag> <description>Some text</description> <name>layout-render</name> <tag-class>net.sourceforge.stripes.tag.layout.LayoutRenderTag</tag-class> <body-content>JSP</body-content> <attribute> <description>Some text</description> <name>name</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <dynamic-attributes>true</dynamic-attributes> </tag>
The only defined attribute in this TLD is ‘name’. All other attributes should be dynamic-attributes.
October 29, 2008 at 4:00 am #290413
henkMemberJust to add some extra info: the JSP editor not recognizing dynamic attributes has been a problem since the very first versions of MyEclipse (I started using it somewhere to the end of 2003). Up till the most recent version (7.0 M2), dynamic attributes are not supported. I believe WTP (on which MyEclipse builds) also doesn’t support this.
It is thus not a recent regression. Hope this helps a little.
October 29, 2008 at 5:46 am #290415
StrunkerMemberOk, I see. Is there a way to suppress the warning message without deactivating whole JSP validation? I get so many warnings about dynamic-attributes that I can’t see the “real” warnings.
October 29, 2008 at 1:27 pm #290433
Loyal WaterMemberIs there a way to suppress the warning message without deactivating whole JSP validation?
Im afraid you will have to disable the whole JSP validation. There is not workaround at the moment.
October 31, 2008 at 2:38 pm #290549
StrunkerMemberI disabled the warning message for “unknown attributes” in the JSP validation and I don’t see those warnings any more.
November 2, 2008 at 11:59 am #290565
Loyal WaterMemberKool.
-
AuthorPosts