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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 623 - (show annotations)
Wed Jun 25 17:24:17 2008 UTC (12 years, 5 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 <%@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 <c:set var="meta" value="${requestScope.item.classMetaData}" ></c:set>
9
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 <c:forEach var="entry" begin="0" items="${meta.attributeList}">
22 <tr>
23 <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 </tr>
26 </c:forEach>
27 </table>
28
29
30 <c:if test="${! empty meta.references}">
31 <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 <c:forEach var="entry" begin="0" items="${meta.referenceList}">
39 <tr>
40 <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
41 <td>
42 <x:getProperty item="${item}" name="${entry.name}" var="ref">
43 <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 <c:if test="${! empty meta.collections}">
55 <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 <c:forEach var="entry" begin="0" items="${meta.collectionList}">
63 <tr>
64 <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
65 <td>
66 <x:getProperty item="${item}" name="${entry.name}" var="col">
67
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