2012-10-08 1 views
0

인 경우 Spring Roo를 사용하고 있습니다. table:tabletable:column 태그가 있습니다. 부동산 user.name이 비어 있지 않은 경우표 태그의 조건이

<table:table data="${memberDetails}" id="memberDetail" delete="false" 
       create="false" 
       update="false" show="false" paginationFlag="false" 
       path="" typeIdFieldName="instanceId" 
       z="40I0ZgJoR5iBRXkYGHvl959736E="> 
    <table:column id="customer" property="user.name"/> 
</table:table> 

어떻게 null 또는 빈 확인 배치해야합니까? 그것이 비어 있다면 나는 그곳의 다른 부동산을 언급하고자합니다.

+0

시도'$ {비어 있지 user.name를 사용할 수 있습니까? user.name : 'Bob'}' – Florent

+0

Florent 답장을 보내 주셔서 감사합니다. 나는 네가 제안한 것을 시도했지만, 그건 효과가 없었다. –

답변

0

확인이 코드

<c:if test="${user.name =='null'}" > 
<table:column id="customer" property="user.name"/> 
</c:if> 

아니면

<c:if test="${not empty user.name}"> 
     <table:column id="customer" property="user.name"/> 
    </c:if> 
+0

Sajith 사실 내가 직면하고있는 문제가없는 것 같습니다. 사실 'user.name'속성은 'memberDetails'List 또는 Set 객체 (내 table 태그의 'data'속성 참조) 내에있는 객체의 하위 속성입니다. –

+0

또한 이것을 확인할 수 있습니다. – Sajith