我正在使用Spring Roo。有table:table
和table:column
标签。在表标签(Spring Roo提供的标签库)中显示子属性
如何在表格中显示colections元素的子属性?
在简单的方式,它不工作:
<table:table data="${knowledgebase.concepts}" id="l_domain_Concept" path="/concepts" z="user-managed">
<table:column id="c_domain_Concept_translations" property="defaultTranslation.name" z="user-managed" />
</table:table>
例外:
Caused by: javax.el.PropertyNotFoundException: Property 'defaultTranslation.name' not found on type domain.data.Concept
谢谢,我有同样的问题。但我用这个逻辑和它的工作。这是什么c:当test =“$ {not convert}”条件检查? – 2011-11-29 04:51:09
它是使用Spring转换功能的标志。它是jsp指令属性之一。 – abele 2011-11-29 05:32:31
@abele,这只会工作在单一级别的子属性上,还是能够降低多个子属性级别,例如:employee.supervisor.name – ThatGuyGrant 2015-10-29 09:40:45