Last change
on this file since 3134 was
3134,
checked in by keeloo, 11 years ago
|
Fixed problems with theming: instead of the session level, the data representing the theme was stored in the web application class.
|
File size:
1.1 KB
|
Line | |
---|
1 | package eu.clarin.cmdi.vlo.pages; |
---|
2 | |
---|
3 | import eu.clarin.cmdi.vlo.VloWebApplication.ThemedSession; |
---|
4 | import org.apache.wicket.PageParameters; |
---|
5 | import org.apache.wicket.markup.html.basic.Label; |
---|
6 | import org.apache.wicket.markup.html.link.BookmarkablePageLink; |
---|
7 | import org.apache.wicket.model.IModel; |
---|
8 | |
---|
9 | public class FacetHeaderPanel extends BasePanel { |
---|
10 | |
---|
11 | private static final long serialVersionUID = 1L; |
---|
12 | |
---|
13 | public FacetHeaderPanel(String id, IModel<FacetModel> model, final SearchPageQuery query) { |
---|
14 | super(id, model); |
---|
15 | SearchPageQuery copy = query.getShallowCopy(); |
---|
16 | copy.removeFilterQuery(model.getObject().getFacetField()); |
---|
17 | PageParameters pageParameters = copy.getPageParameters(); |
---|
18 | |
---|
19 | // pageParameters = webApp.reflectPersistentParameters(pageParameters); |
---|
20 | pageParameters = ((ThemedSession)getSession()).reflectPersistentParameters(pageParameters); |
---|
21 | |
---|
22 | add(new BookmarkablePageLink("allLink", FacetedSearchPage.class, pageParameters)); |
---|
23 | add(new Label("headerLabelSelect", model.getObject().getSelectedValue())); |
---|
24 | } |
---|
25 | |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.