/[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 606 - (show annotations)
Fri Jun 20 11:10:54 2008 UTC (12 years, 7 months ago) by bourges.laurent
File size: 2660 byte(s)
added showGeneric.jsp to display any metadataObject ...
1 <%@page contentType="text/html" session="false" pageEncoding="UTF-8"%>
2 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
3 <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
4 <%@ taglib tagdir="/WEB-INF/tags" prefix="x" %>
5
6 <jsp:include page="../header.jsp" flush="false" />
7
8 <c:set var="item" value="${requestScope.item}" ></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 <c:if test="${! empty item.classMetaData.attributes}">
16 <p><b>Attributes : </b></p>
17 <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
18 <tr>
19 <th>Property</th>
20 <th>Value</th>
21 </tr>
22 <c:forEach var="entry" begin="0" items="${item.classMetaData.attributes}">
23 <tr>
24 <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>
25 <td><x:getProperty item="${item}" name="${entry.key}" var="value">${value}</x:getProperty></td>
26 </tr>
27 </c:forEach>
28 </table>
29 </c:if>
30
31
32 <c:if test="${! empty item.classMetaData.references}">
33 <p><b>References : </b></p>
34
35 <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
36 <tr>
37 <th>Reference</th>
38 <th>Value</th>
39 </tr>
40 <c:forEach var="entry" begin="0" items="${item.classMetaData.references}">
41 <tr>
42 <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>
43 <td>
44 <x:getProperty item="${item}" name="${entry.key}" var="ref">
45 <a href="Show.do?entity=${ref.class.simpleName}&id=${ref.id}" title="show ${ref.class.simpleName}">
46 ${ref.class.simpleName} - ${ref.id} [${ref.name}]
47 </a>
48 </x:getProperty>
49 </td>
50 </tr>
51 </c:forEach>
52 </table>
53 </c:if>
54
55
56 <c:if test="${! empty item.classMetaData.collections}">
57 <p><b>Collections : </b></p>
58 <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
59 <tr>
60 <th>Collection</th>
61 <th>Value</th>
62 </tr>
63
64 <c:forEach var="entry" begin="0" items="${item.classMetaData.collections}">
65 <tr>
66 <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>
67 <td>
68 <x:getProperty item="${item}" name="${entry.key}" var="col">
69
70 <c:forEach var="colItem" begin="0" items="${col}">
71 <a href="Show.do?entity=${colItem.class.simpleName}&id=${colItem.id}" title="show ${colItem.class.simpleName}">
72 ${colItem.class.simpleName} - ${colItem.id}
73 </a>
74 <br/>
75 </c:forEach>
76
77 </x:getProperty>
78 </td>
79 </tr>
80 </c:forEach>
81
82 </table>
83
84 </c:if>
85
86 <jsp:include page="../footer.jsp" flush="false" />

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