facebook

Error using dynamic-attributes in tld

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #290323 Reply

    Strunker
    Member

    Hi,

    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?

    #290375

    Loyal Water
    Member

    Can you paste a sample jsp page here for me.

    #290384

    Strunker
    Member

    Here 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.

    #290413

    henk
    Member

    Just 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.

    #290415

    Strunker
    Member

    Ok, 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.

    #290433

    Loyal Water
    Member

    Is 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.

    #290549

    Strunker
    Member

    I disabled the warning message for “unknown attributes” in the JSP validation and I don’t see those warnings any more.

    #290565

    Loyal Water
    Member

    Kool.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Error using dynamic-attributes in tld

You must be logged in to post in the forum log in