从 2.x 迁移到 Apache Tiles 3.x



我们正在尝试从 tile 2.x 迁移到 3.x,但面临一些问题:

我们使用了以下瓷砖定义在磁贴 2.0 中

<tiles:insertDefinition name="header.${countryCode}" ignore="false" />

但是在瓷砖 3.0 中,ignore="false"已被删除,因此想知道还有什么其他替代方案。 仅删除ignore="false"可能会导致运行时异常。

以下是javadoc:

磁贴 2.x

https://tiles.apache.org/2.2/framework/tiles-jsp/tlddoc/tiles/insertDefinition.html

磁贴 3.x

https://tiles.apache.org/framework/tiles-jsp/tlddoc/tiles/insertTemplate.html

您能否确认在使用tiles-2.2时,ignore="true"适用于insertDefinition?

目前我看不到忽略用于 http://svn.apache.org/viewvc/tiles/framework/branches/TILES_2_2_X/tiles-jsp/src/main/java/org/apache/tiles/jsp/taglib/InsertDefinitionTag.java?view=markup

最新更新