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

Annotation of /trunk/projects/theory/snapdm/webapp/simdb-browser/web/show/ShowGeneric.jsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 623 - (hide annotations)
Wed Jun 25 17:24:17 2008 UTC (12 years, 7 months ago) by bourges.laurent
File size: 2533 byte(s)
generic List (show all attributes) because multiplicity can not already be used to filter attributes (mostly 0..1)
1 bourges.laurent 606 <%@page contentType="text/html" session="false" pageEncoding="UTF-8"%>
2     <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
3     <%@ taglib tagdir="/WEB-INF/tags" prefix="x" %>
4    
5     <jsp:include page="../header.jsp" flush="false" />
6    
7     <c:set var="item" value="${requestScope.item}" ></c:set>
8 bourges.laurent 623 <c:set var="meta" value="${requestScope.item.classMetaData}" ></c:set>
9 bourges.laurent 606
10     <p>
11     <b>Data Model serialization : </b>
12     <a href="Show.do?entity=${requestScope.entity.name}&id=${item.id}&view=xml" title="view as XML"><img src="static/xml_small.png"/></a>
13     </p>
14    
15     <p><b>Attributes : </b></p>
16     <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
17     <tr>
18     <th>Property</th>
19     <th>Value</th>
20     </tr>
21 bourges.laurent 623 <c:forEach var="entry" begin="0" items="${meta.attributeList}">
22 bourges.laurent 606 <tr>
23 bourges.laurent 623 <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
24     <td><x:getProperty item="${item}" name="${entry.name}" var="value">${value}</x:getProperty></td>
25 bourges.laurent 606 </tr>
26     </c:forEach>
27     </table>
28    
29    
30 bourges.laurent 623 <c:if test="${! empty meta.references}">
31 bourges.laurent 606 <p><b>References : </b></p>
32    
33     <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
34     <tr>
35     <th>Reference</th>
36     <th>Value</th>
37     </tr>
38 bourges.laurent 623 <c:forEach var="entry" begin="0" items="${meta.referenceList}">
39 bourges.laurent 606 <tr>
40 bourges.laurent 623 <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
41 bourges.laurent 606 <td>
42 bourges.laurent 623 <x:getProperty item="${item}" name="${entry.name}" var="ref">
43 bourges.laurent 606 <a href="Show.do?entity=${ref.class.simpleName}&id=${ref.id}" title="show ${ref.class.simpleName}">
44     ${ref.class.simpleName} - ${ref.id} [${ref.name}]
45     </a>
46     </x:getProperty>
47     </td>
48     </tr>
49     </c:forEach>
50     </table>
51     </c:if>
52    
53    
54 bourges.laurent 623 <c:if test="${! empty meta.collections}">
55 bourges.laurent 606 <p><b>Collections : </b></p>
56     <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
57     <tr>
58     <th>Collection</th>
59     <th>Value</th>
60     </tr>
61    
62 bourges.laurent 623 <c:forEach var="entry" begin="0" items="${meta.collectionList}">
63 bourges.laurent 606 <tr>
64 bourges.laurent 623 <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
65 bourges.laurent 606 <td>
66 bourges.laurent 623 <x:getProperty item="${item}" name="${entry.name}" var="col">
67 bourges.laurent 606
68     <c:forEach var="colItem" begin="0" items="${col}">
69     <a href="Show.do?entity=${colItem.class.simpleName}&id=${colItem.id}" title="show ${colItem.class.simpleName}">
70     ${colItem.class.simpleName} - ${colItem.id}
71     </a>
72     <br/>
73     </c:forEach>
74    
75     </x:getProperty>
76     </td>
77     </tr>
78     </c:forEach>
79    
80     </table>
81    
82     </c:if>
83    
84     <jsp:include page="../footer.jsp" flush="false" />

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