| There was a problem with a Velocity script |
| Page | /sports/roster-baseball-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-baseball-template[17,34] |
| Page source: |
1: $website.include("team photo")
2: <p>
3: <table class="roster">
4: <tr class="roster-header">
5: <td>No.</td>
6: <td>Player</td>
7: <td>Cl.</td>
8: <td>Pos.</td>
9: <td>Hgt.</td>
10: <td>Wgt.</td>
11: <td>D.O.B.</td>
12: <td>B-T</td>
13: <td>Hometown <br>
14: (High School)</td>
15: <td>Major(s)</td>
16: </tr>
17: #foreach ($bioinfo in $headlines.sortedBy("custom1"))
18: #set ($row = ($velocityCount + 2) % 2)
19: #set ($bio = $bioinfo.getDataAsObject().getAttributes())
20: <tr class="roster-row$row">
21: <td>$!bio.get("custom1")</td>
22: <td><a href="$bioinfo.url">$!bio.get("last_name"), $!bio.get("first_name")</a></td>
23: <td>$!bio.get("year")</td>
24: <td>$!bio.get("position")</td>
25: <td>$!bio.get("height")</td>
26: <td>$!bio.get("weight")</td>
27: <td>$!bio.get("born")</td>
28: <td>$!bio.get("custom2")</td>
29: <td>$!bio.get("hometown") <br>
30: ($!bio.get("highschool"))</td>
31: <td>$!bio.get("custom3")</td>
32: </tr>
33: #end
34: </table>
35:
36: $wiki
37:
38: #set ($footer = "${page.url}-footer")
39:
40: $website.include($footer)
41:
42:
43: </p>
|