Changeset 4228


Ignore:
Timestamp:
01/08/14 14:07:32 (10 years ago)
Author:
twagoo
Message:

Configured mount points for pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/to-wicket-1.6/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.java

    r4226 r4228  
    77import eu.clarin.cmdi.vlo.pages.BasePanel;
    88import eu.clarin.cmdi.vlo.pages.FacetedSearchPage;
     9import eu.clarin.cmdi.vlo.pages.ShowAllFacetValuesPage;
     10import static eu.clarin.cmdi.vlo.pages.ShowAllFacetValuesPage.SELECTED_FACET_PARAM;
     11import eu.clarin.cmdi.vlo.pages.ShowResultPage;
    912import javax.servlet.ServletContext;
    1013import org.apache.wicket.Session;
     
    107110        searchResults = new SearchResultsDao();
    108111
     112        // mount pages on URL's for bookmarkable links
     113        mountPages();
     114
    109115        // hand over control to the application
     116    }
     117
     118    private void mountPages() {
     119        // Record (query result) page. E.g. /vlo/record?docId=abc123
     120        // (cannot encode docId in path because it contains a slash)
     121        mountPage("/record", ShowResultPage.class);
     122
     123        // All facet values page. E.g. /vlo/values/genre?facetMinOccurs=1
     124        // (min occurs not in path because it's a filter on the facet list)
     125        mountPage("/values/${" + SELECTED_FACET_PARAM + "}", ShowAllFacetValuesPage.class);
    110126    }
    111127
Note: See TracChangeset for help on using the changeset viewer.