/
topStories.xsp
103 lines (98 loc) · 3.75 KB
/
topStories.xsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom">
<xp:panel readonly="true">
<xp:this.rendered><![CDATA[#{javascript:if (param.filter) return false;
return true;}]]></xp:this.rendered>
<xp:div>
<xp:this.rendered><![CDATA[#{javascript:
if (newsCache.getSpotlightEntries().size() > 0) true; else false;
}]]></xp:this.rendered>
<div class="page-header">
<h1>
<small>News about IBM Collaboration Solutions</small>
</h1>
</div>
<ul class="thumbnails">
<xc:spotlightEntry position="0"></xc:spotlightEntry>
<xc:spotlightEntry position="1"></xc:spotlightEntry>
<xc:spotlightEntry position="2"></xc:spotlightEntry>
<xc:spotlightEntry position="3"></xc:spotlightEntry>
</ul>
</xp:div>
<xp:div>
<xp:this.rendered><![CDATA[#{javascript:
if (newsCache.getTopTopStories().size() > 0) true; else false;
}]]></xp:this.rendered>
<div class="page-header">
<h1>
<small>Featured</small>
</h1>
</div>
<xp:repeat id="r1" var="entryT" rows="4"
value="#{javascript:newsCache.getTopTopStories();}" >
<xc:newsEntry id = "lkj"
author="#{entryT.PID}"
imageURL="#{javascript:entryT.getImageURL()}" link="#{javascript:entryT.getLink()}"
newsAbstract="#{javascript:entryT.getAbstract()}" nID="#{javascript:entryT.getID()}"
personDisplayName="#{javascript:personsCache.getPerson(entryT.getPID()).getDisplayName()}"
typeId="#{javascript:entryT.getTID()}"
publicationDate="#{javascript:entryT.getPublicationDate()}" publicationDateString="#{javascript:entryT.getPrettyTime()}" title="#{javascript:entryT.getTitle()}">
<xc:this.category><![CDATA[#{javascript:
try {
configCache.getCategory(configCache.getType(entryT.getTID()).getCategoryId()).getDisplayName()
} catch(e) {
} finally {
"";
}}]]></xc:this.category>
<xc:this.type><![CDATA[#{javascript:
try {
configCache.getType(entryT.getTID()).getDisplayName()
} catch(e) {
} finally {
"";
}}]]></xc:this.type>
</xc:newsEntry>
</xp:repeat>
</xp:div>
<xp:repeat id="r2" rows="30" value="#{javascript:configCache.getCategories();}"
indexVar="index2" var="category" removeRepeat="true">
<xp:div>
<xp:this.rendered><![CDATA[#{javascript:
if (newsCache.getTopStories(category.getID()).size() > 0) true; else false;
}]]></xp:this.rendered>
<div class="page-header">
<h1>
<small>
<xp:text value="#{category.displayName}"/>
</small>
</h1>
</div>
<xp:repeat id="r3" var="entryC" rows="4"
value="#{javascript:newsCache.getTopStories(category.getID());}" >
<xc:newsEntry id = "lkasdfj"
author="#{entryC.PID}"
typeId="#{javascript:entryC.getTID()}"
imageURL="#{javascript:entryC.getImageURL()}" link="#{javascript:entryC.getLink()}"
newsAbstract="#{javascript:entryC.getAbstract()}" nID="#{javascript:entryC.getID()}"
personDisplayName="#{javascript:personsCache.getPerson(entryC.getPID()).getDisplayName()}"
publicationDate="#{javascript:entryC.getPublicationDate()}" publicationDateString="#{javascript:entryC.getPrettyTime()}" title="#{javascript:entryC.getTitle()}">
<xc:this.category><![CDATA[#{javascript:
try {
configCache.getCategory(configCache.getType(entryC.getTID()).getCategoryId()).getDisplayName()
} catch(e) {
} finally {
"";
}}]]></xc:this.category>
<xc:this.type><![CDATA[#{javascript:
try {
configCache.getType(entryC.getTID()).getDisplayName()
} catch(e) {
} finally {
"";
}}]]></xc:this.type>
</xc:newsEntry>
</xp:repeat>
</xp:div>
</xp:repeat>
</xp:panel>
</xp:view>