我们在 Tiles2 中有应用程序,其中我们在 put-list-attribute 中有具有 bean 的切片定义标记并且运行良好,但无法迁移与 Tiles 3 兼容的标记。谁能指导我们,
示例代码...
<definition name=".tabs.resource.list" extends=".tabs.resource">
<put-attribute name="selectedIndex" value="0" />
<put-attribute name="resourceType" value="1" />
<put-list-attribute name="tabList">
<bean classtype="org.test.sample.ui.util.Tab">
<set-property property="value" value="Tab1" />
<set-property property="link" value="currentHealthTab1listVisibility.action" />
<set-property property="mode" value="currentHealth" />
<set-property property="height" value="21" />
<set-property property="width" value="102" />
</bean>
<bean classtype="org.test.sample.ui.util.Tab">
<set-property property="value" value="Tab2" />
<set-property property="link" value="viewlistTab2listVisibility.action" />
<set-property property="mode" value="view" />
<set-property property="height" value="21" />
<set-property property="width" value="102" />
</bean>
</put-list-attribute>
</definition>`
org.test.sample.ui.util.Tab 被覆盖为 simplemenuitem 类