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

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

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

revision 622 by bourges.laurent, Fri Jun 20 11:10:54 2008 UTC revision 623 by bourges.laurent, Wed Jun 25 17:24:17 2008 UTC
# Line 1  Line 1 
1  <%@page contentType="text/html" session="false" pageEncoding="UTF-8"%>  <%@page contentType="text/html" session="false" pageEncoding="UTF-8"%>
2  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
3  <%@ taglib tagdir="/WEB-INF/tags" prefix="x" %>  <%@ taglib tagdir="/WEB-INF/tags" prefix="x" %>
4    
5  <jsp:include page="../header.jsp" flush="false" />  <jsp:include page="../header.jsp" flush="false" />
6    
7  <c:set var="item" value="${requestScope.item}" ></c:set>  <c:set var="item" value="${requestScope.item}" ></c:set>
8    <c:set var="meta" value="${requestScope.item.classMetaData}" ></c:set>
9    
10  <p>  <p>
11    <b>Data Model serialization : </b>    <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>    <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>  </p>
14    
 <c:if test="${! empty item.classMetaData.attributes}">  
15  <p><b>Attributes : </b></p>  <p><b>Attributes : </b></p>
16  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
17    <tr>    <tr>
18      <th>Property</th>      <th>Property</th>
19      <th>Value</th>      <th>Value</th>
20    </tr>    </tr>
21  <c:forEach var="entry" begin="0" items="${item.classMetaData.attributes}">  <c:forEach var="entry" begin="0" items="${meta.attributeList}">
22    <tr>    <tr>
23      <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>      <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
24      <td><x:getProperty item="${item}" name="${entry.key}" var="value">${value}</x:getProperty></td>      <td><x:getProperty item="${item}" name="${entry.name}" var="value">${value}</x:getProperty></td>
25    </tr>    </tr>
26  </c:forEach>  </c:forEach>
27  </table>  </table>
 </c:if>  
28    
29    
30  <c:if test="${! empty item.classMetaData.references}">  <c:if test="${! empty meta.references}">
31  <p><b>References : </b></p>  <p><b>References : </b></p>
32    
33  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
# Line 37  Line 35 
35      <th>Reference</th>      <th>Reference</th>
36      <th>Value</th>      <th>Value</th>
37    </tr>    </tr>
38  <c:forEach var="entry" begin="0" items="${item.classMetaData.references}">  <c:forEach var="entry" begin="0" items="${meta.referenceList}">
39    <tr>    <tr>
40      <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>      <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
41      <td>      <td>
42        <x:getProperty item="${item}" name="${entry.key}" var="ref">        <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}">          <a href="Show.do?entity=${ref.class.simpleName}&id=${ref.id}" title="show ${ref.class.simpleName}">
44          ${ref.class.simpleName} - ${ref.id} [${ref.name}]          ${ref.class.simpleName} - ${ref.id} [${ref.name}]
45          </a>          </a>
# Line 53  Line 51 
51  </c:if>  </c:if>
52    
53    
54  <c:if test="${! empty item.classMetaData.collections}">  <c:if test="${! empty meta.collections}">
55  <p><b>Collections : </b></p>  <p><b>Collections : </b></p>
56  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">  <table id="showTable" border="1" cellspacing="0" cellpadding="4" width="100%">
57    <tr>    <tr>
# Line 61  Line 59 
59      <th>Value</th>      <th>Value</th>
60    </tr>    </tr>
61    
62  <c:forEach var="entry" begin="0" items="${item.classMetaData.collections}">  <c:forEach var="entry" begin="0" items="${meta.collectionList}">
63    <tr>    <tr>
64      <th><a name="${entry.key}" title="${entry.value.description}">${entry.key}</a></th>      <th><a name="${entry.name}" title="${entry.description}">${entry.name}</a></th>
65      <td>      <td>
66        <x:getProperty item="${item}" name="${entry.key}" var="col">        <x:getProperty item="${item}" name="${entry.name}" var="col">
67    
68  <c:forEach var="colItem" begin="0" items="${col}">  <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}">          <a href="Show.do?entity=${colItem.class.simpleName}&id=${colItem.id}" title="show ${colItem.class.simpleName}">

Legend:
Removed from v.622  
changed lines
  Added in v.623

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