| | |
| | | ListDataProvider<SearchResult> resultsDp = new ListDataProvider<SearchResult>(results);
|
| | | final DataView<SearchResult> resultsView = new DataView<SearchResult>("searchResults", resultsDp) {
|
| | | private static final long serialVersionUID = 1L;
|
| | | @Override
|
| | | public void populateItem(final Item<SearchResult> item) {
|
| | | final SearchResult sr = item.getModelObject();
|
| | | switch(sr.type) {
|
| | |
| | | ListDataProvider<String> tagsDp = new ListDataProvider<String>(tags);
|
| | | final DataView<String> tagsView = new DataView<String>("tag", tagsDp) {
|
| | | private static final long serialVersionUID = 1L;
|
| | | @Override
|
| | | public void populateItem(final Item<String> item) {
|
| | | String tag = item.getModelObject();
|
| | | Component c = new LinkPanel("tagLink", null, tag, TagPage.class,
|