| There was a problem with a Velocity script |
| Page | /sports/roster-women-template |
| Error | Invocation of method 'sortedBy' in class com.prestosports.content.HeadlinesSorter threw exception java.lang.UnsupportedOperationException: ComparatorChains must contain at least one Comparator @ roster-women-template[13,34] |
| Page source: |
1: <center><h2>$page.title</h2></center>
2: #if ($page.thumbnailURL)<img src="$page.thumbnailURL">#end
3: <p>
4: <table align="center">
5: <tr class="roster-header">
6: <td>No.</td>
7: <td>Name</td>
8: <td>Year</td>
9: <td>Position</td>
10: <td>Height</td>
11: <td>Hometown/High School/Previous School)</td>
12: </tr>
13: #foreach ($bioinfo in $headlines.sortedBy("custom1"))
14: #set ($row = ($velocityCount + 2) % 2)
15: #set ($bio = $bioinfo.getDataAsObject().getAttributes())
16: <tr class="roster-row$row">
17: <td>$!bio.get("custom1")</td>
18: <td><a href="$bioinfo.url">$!bio.get("first_name") $!bio.get("last_name") $!bio.get("custom10")</a></td>
19: <td>$!bio.get("year")</td>
20: <td>$!bio.get("position")</td>
21: <td>$!bio.get("height")</td>
22: <td>$!bio.get("hometown")/$!bio.get("highschool")</td>
23: </tr>
24: #end
25: </table>
26:
27: $wiki
28: <br>
29: #set ($footer = "${page.url}-footer")
30:
31: $website.include($footer)
32:
33:
34: </p>
|