/[volute]/trunk/projects/theory/snapdm/webapp/simdb-browser/web/list/ListGeneric.jsp
ViewVC logotype

Diff of /trunk/projects/theory/snapdm/webapp/simdb-browser/web/list/ListGeneric.jsp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 679 by bourges.laurent, Mon Jun 30 10:50:20 2008 UTC revision 680 by bourges.laurent, Wed Jul 9 22:05:49 2008 UTC
# Line 6  Line 6 
6    
7  <jsp:include page="ListHeader.jsp" flush="false" />  <jsp:include page="ListHeader.jsp" flush="false" />
8    
9  <c:if test="${! empty requestScope.list}">  <jsp:include page="ListEmbeddable.jsp" flush="false" />
     
 <c:set var="meta" value="${requestScope.metaData}" ></c:set>  
   
   <table id="listTable" border="1" cellspacing="0" cellpadding="4" width="100%">  
   <tr>  
 <%-- get headers (attributes and references with multiplicity = 1 from meta object : --%>  
       
 <c:forEach var="entry" begin="0" items="${meta.attributeList}">  
   <c:if test="${entry.name eq 'identity' or entry.multiplicity eq '1'}">  
     <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>  
   </c:if>  
 </c:forEach>  
   
 <c:if test="${! empty meta.references}">  
   
 <c:forEach var="entry" begin="0" items="${meta.referenceList}">  
   <c:if test="${entry.multiplicity eq '1'}">  
     <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>  
   </c:if>  
 </c:forEach>  
   
 </c:if>  
   
   </tr>  
 <%-- get data from item list : --%>  
   <c:forEach var="item" begin="0" items="${requestScope.list}">  
     <tr>  
 <%-- process an item from the list : --%>  
   
 <c:forEach var="entry" begin="0" items="${meta.attributeList}">  
   <c:if test="${entry.name eq 'identity' or entry.multiplicity eq '1'}">  
     <td>  
       <a href="Show.do?entity=${requestScope.entity.name}&id=${item.id}" title="show ${requestScope.entity.name}">  
         <x:getProperty item="${item}" name="${entry.name}" var="value">${value}</x:getProperty>  
       </a>  
     </td>  
   </c:if>  
 </c:forEach>  
   
 <c:if test="${! empty meta.references}">  
   
 <c:forEach var="entry" begin="0" items="${meta.referenceList}">  
   <c:if test="${entry.multiplicity eq '1'}">  
     <td>  
       <x:getProperty item="${item}" name="${entry.name}" var="ref">  
         <a href="Show.do?entity=${ref.class.simpleName}&id=${ref.id}" title="show ${ref.class.simpleName}">  
           
         ${ref.class.simpleName} - ${ref.id} [${ref.name}]  
         </a>  
       </x:getProperty>  
     </td>  
   </c:if>  
 </c:forEach>  
   
 </c:if>  
   
     </tr>  
   </c:forEach>  
   </table>  
 </c:if>  
10    
11  <jsp:include page="../footer.jsp" flush="false" />  <jsp:include page="../footer.jsp" flush="false" />

Legend:
Removed from v.679  
changed lines
  Added in v.680

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26