Changeset 4499
- Timestamp:
- 02/12/14 09:54:23 (11 years ago)
- Location:
- vlo/branches/vlo-3.0/vlo-web-app/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/components/FacetPanel.html
r4477 r4499 27 27 <a href="#" class="expandfacet"><span>expand</span></a> 28 28 <a href="#" class="collapsefacet"><span>collapse</span></a> 29 <h1><a href="#"><wicket:container wicket:id=" facet.name">[TITLE]</wicket:container></a></h1>29 <h1><a href="#"><wicket:container wicket:id="selection.facet.name">[TITLE]</wicket:container></a></h1> 30 30 <a href class="filtertoggle"><span>filter</span></a> 31 31 <form class="filterform"> -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/components/FacetPanel.java
r4481 r4499 17 17 package eu.clarin.cmdi.vlo.components; 18 18 19 import eu.clarin.cmdi.vlo.pojo.FacetS election;19 import eu.clarin.cmdi.vlo.pojo.FacetStatus; 20 20 import org.apache.wicket.markup.html.basic.Label; 21 21 import org.apache.wicket.markup.html.panel.Panel; … … 29 29 public class FacetPanel extends Panel { 30 30 31 public FacetPanel(String id, IModel<FacetS election> model) {31 public FacetPanel(String id, IModel<FacetStatus> model) { 32 32 super(id, model); 33 setDefaultModel(new CompoundPropertyModel<FacetS election>(model));33 setDefaultModel(new CompoundPropertyModel<FacetStatus>(model)); 34 34 35 add(new Label(" facet.name"));35 add(new Label("selection.facet.name")); 36 36 } 37 37 -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/components/FacetsPanel.java
r4481 r4499 17 17 package eu.clarin.cmdi.vlo.components; 18 18 19 import eu.clarin.cmdi.vlo.pojo.FacetS election;19 import eu.clarin.cmdi.vlo.pojo.FacetStatus; 20 20 import org.apache.wicket.markup.html.list.ListItem; 21 21 import org.apache.wicket.markup.html.list.ListView; … … 29 29 public class FacetsPanel extends Panel { 30 30 31 public FacetsPanel(String id, ListModel<FacetS election> model) {31 public FacetsPanel(String id, ListModel<FacetStatus> model) { 32 32 super(id, model); 33 add(new ListView<FacetS election>("facets", model) {33 add(new ListView<FacetStatus>("facets", model) { 34 34 35 35 @Override 36 protected void populateItem(ListItem<FacetS election> item) {36 protected void populateItem(ListItem<FacetStatus> item) { 37 37 //TODO: Check whether a value has been selected or not 38 38 item.add(new FacetPanel("facet", item.getModel())); -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/pages/FacetedSearchPage.java
r4481 r4499 4 4 import eu.clarin.cmdi.vlo.pojo.Facet; 5 5 import eu.clarin.cmdi.vlo.pojo.FacetSelection; 6 import eu.clarin.cmdi.vlo.pojo.FacetStatus; 6 7 import java.util.Arrays; 8 import java.util.Collection; 7 9 import java.util.Collections; 8 10 import org.apache.wicket.request.mapper.parameter.PageParameters; … … 16 18 public FacetedSearchPage(final PageParameters parameters) { 17 19 super(parameters); 18 19 add(new FacetsPanel("facets", new ListModel<FacetSelection>(Arrays.asList( 20 new FacetSelection(new Facet("Language"), Collections.singleton("Dutch")), 21 new FacetSelection(new Facet("Resource type"), Collections.singleton("Text")) 22 )))); 20 final FacetSelection languageSelection = new FacetSelection(new Facet("Language"), Collections.singleton("Dutch")); 21 final FacetSelection typeSelection = new FacetSelection(new Facet("Resource type"), Collections.<String>emptySet()); 22 final Collection<FacetSelection> context = Arrays.asList(languageSelection,typeSelection); 23 24 add(new FacetsPanel("facets", new ListModel<FacetStatus>(Arrays.asList( 25 new FacetStatus(languageSelection, context), 26 new FacetStatus(typeSelection, context))))); 23 27 } 24 28 } -
vlo/branches/vlo-3.0/vlo-web-app/src/test/java/eu/clarin/cmdi/vlo/Start.java
r4469 r4499 19 19 connector.setMaxIdleTime(timeout); 20 20 connector.setSoLingerTime(-1); 21 connector.setPort(80 80);21 connector.setPort(8090); 22 22 server.addConnector(connector); 23 23
Note: See TracChangeset
for help on using the changeset viewer.