2012-02-08 8 views

答えて

1

Limitation

CRUDモジュールは 2つのエンティティのいずれかで、双方向の関係を示しています。mappedBy属性を持たないものを。

必要に応じてカスタムタグを使用します。
次のようなもの:

<div id="crudListTable"> 
    #{crud.table fields:['name','description','comments']} 
    #{crud.custom 'description'} 
     #{if object.description}${object.description.length() > 50 ? object.description[0..50] + '…' : object.description}#{/if} 
    #{/crud.custom} 
    #{crud.custom 'comments'} 
     #{list items:object.comments, as:'comment'} 
      ${comment.description}/
     #{/list} 
    #{/crud.custom} 
    #{/crud.table} 
</div> 
関連する問題