Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Tapestry 4.1.x 中生成有效的 XHTML?
我特别需要 shell 来生成正确的 XHTML 标头,并且可以处理实际的正文内容——即只使用呈现有效标签/结构的特定组件。
谢谢。
使用@Shell 组件,
1.更改文档类型:
doctype="HTML PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"
2.禁用 dojo 脚本包含,因为链接不是有效的 XHTML(它们在 url 中包含 & 而不是 &)
ajaxDelegate="ognl:null"