/[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 680 - (show annotations)
Wed Jul 9 22:05:49 2008 UTC (12 years, 4 months ago) by bourges.laurent
File size: 2149 byte(s)
many new tags to get meta, display references & collections using listGeneric.jsp
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 <table border="1" cellspacing="0" cellpadding="4" width="100%">
16 <tr class="main">
17 <th>Property</th>
18 <th>Value</th>
19 </tr>
20 <c:forEach var="entry" begin="0" items="${meta.attributeList}">
21 <tr>
22 <th><span class="tooltipTrigger" title="&lt;h4&gt;${entry.name}&lt;/h4&gt;${entry.description}">${entry.name}</span></th>
23 <td><x:getProperty item="${item}" name="${entry.name}" var="value">${value}</x:getProperty></td>
24 </tr>
25 </c:forEach>
26
27 <c:if test="${! empty meta.references}">
28 <tr class="main">
29 <th>Reference</th>
30 <th>Value</th>
31 </tr>
32 <c:forEach var="entry" begin="0" items="${meta.referenceList}">
33 <tr>
34 <th><span class="tooltipTrigger" title="&lt;h4&gt;${entry.name}&lt;/h4&gt;${entry.description}">${entry.name}</span></th>
35 <td>
36 <x:getProperty item="${item}" name="${entry.name}" var="ref">
37 <a href="Show.do?entity=${ref.className}&id=${ref.id}" title="show ${ref.className}">
38 <x:showRef ref="${ref}"/>
39 </a>
40 </x:getProperty>
41 </td>
42 </tr>
43 </c:forEach>
44 </c:if>
45
46
47 <c:if test="${! empty meta.collections}">
48 <tr class="main">
49 <th>Collection</th>
50 <th>Value</th>
51 </tr>
52
53 <c:forEach var="entry" begin="0" items="${meta.collectionList}">
54 <tr>
55 <th><span class="tooltipTrigger" title="&lt;h4&gt;${entry.name}&lt;/h4&gt;${entry.description}">${entry.name}</span></th>
56 <td>
57 <x:getProperty item="${item}" name="${entry.name}" var="col">
58 <x:showCollection col="${col}"/>
59 </x:getProperty>
60 </td>
61 </tr>
62 </c:forEach>
63 </c:if>
64
65 </table>
66
67 <jsp:include page="../footer.jsp" flush="false" />

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