0

我有一个使用 tld 文件的自定义标签,我的标签的主要作用是在 jsp 中创建一个表。

标签名称是 tld 文件中的 util:table 和 util:column 我声明了这个标签(表和列)和一些属性以及(id、type、name)但是当我点击网页查看源代码 html 属性以及 id 不显示。

我需要显示该属性,因为我需要使用 jQuery 从表和列中调用 id 在确定列中创建工具提示。

如何解决这个问题?

在我的源代码标签下方:

    <tag>
    <name>coluna</name>
    <tag-class>br.si.util.tags.ColunaTag</tag-class>
    <body-content>JSP</body-content>
    <description>Create table</description>
    <attribute>
        <name>title</name>
        <required>true</required>
        <rtexprvalue>false</rtexprvalue>
        <type>String</type>
        <description>title</description>
    </attribute>
    <attribute>
        <name>property</name>
        <required>true</required>
        <rtexprvalue>false</rtexprvalue>
        <type>String</type>
        <description>property</description>
    </attribute>
    <attribute>
        <name>width</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
        <type>String</type>
        <description>width</description>
    </attribute>
    <attribute>
        <name>type</name>
        <required>false</required>  
        <rtexprvalue>false</rtexprvalue>
        <type>String</type>
        <description></description>
    </attribute>
    <attribute>
        <name>id</name>
        <required>false</required>  
        <rtexprvalue>true</rtexprvalue>
        <type>String</type>
        <description></description>
    </attribute>

    <attribute>
        <name>styleClass</name>
        <required>false</required>  
        <rtexprvalue>false</rtexprvalue>
        <type>String</type>
        <description>styleClass</description>
    </attribute>
    <attribute>
        <name>hidden</name>
        <required>false</required>  
        <rtexprvalue>false</rtexprvalue>
        <type>boolean</type>
        <description>hidden</description>
    </attribute>
    <attribute>
        <name>nowrap</name>
        <required>false</required>  
        <rtexprvalue>true</rtexprvalue>
        <type>boolean</type>
        <description>nowrap</description>
    </attribute>

</tag>
4

0 回答 0