删除 MyEclipse 中的警告
如何修改 MyEclipse 将抛出警告标志的条件?我很高兴听到一个通用的解决方案,但这是我好奇的具体问题/如果事实证明它是相关的:
<html xmlns="http://www.w3.org/1999/xhtml">
<wicket:panel>
<p>
<object type="text/html" width="750" height="360" wicket:id="htmlRendition"></object>
</wicket:panel>
</html>
导致警告“未定义的属性名称(xmlns)”,“未知标签(wicket:面板)”和“未定义的属性名称(检票口:id)。”奇怪的是,大多数与 Wicket Java 文件配对的 HTML 文件都没有错误,只有格式为 ClassName$InnerClassName.html
的文件。
How can I modify the conditions for which MyEclipse will throw up warning flags? I'd be happy to hear a generic solution, but here is my specific problem for the curious/if it turns out to be relevant:
<html xmlns="http://www.w3.org/1999/xhtml">
<wicket:panel>
<p>
<object type="text/html" width="750" height="360" wicket:id="htmlRendition"></object>
</wicket:panel>
</html>
causes warnings "Undefined attribute name (xmlns)," "Unknown tag (wicket:panel)" and "Undefined attribute name (wicket:id)." Oddly, there are no errors for most HTML files paired with Wicket Java files, only files with the format ClassName$InnerClassName.html
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在 Wicket 的 HTML 文件中使用以下内容:
例如,我知道一些 IDE (IntelliJ) 允许您注册 dtd 来验证您的 xml 文件。本文看起来适用于 XML 文档,但也许 HTML 文件也可以工作,或者可以配置为类似地工作:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.wst.xmleditor.doc.user /topics/cxmlcat.html
I use the following in my HTML files for Wicket:
I know some IDEs (IntelliJ) for example allow you to register a dtd to validate your xml files. This article looks to apply to XML documents, but perhaps HTML files work or can be configured to work similarly:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.wst.xmleditor.doc.user/topics/cxmlcat.html
在项目属性中,您可以关闭不同类型的验证。例如,您可以说您不希望 XML 文件的 DTD 验证,或 HTML 验证等。Myeclipse
示例为 此处。
In the project properties, you can turn off different types of validation. For example, you can say that you don't want DTD validation of XML files, or HTML validation, etc.
Myeclipse example is here.