Changeset 4635
- Timestamp:
- 03/06/14 16:02:56 (11 years ago)
- Location:
- vlo/branches/vlo-3.0/vlo-web-app/src/main
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/VloWicketApplication.java
r4626 r4635 6 6 import org.apache.wicket.markup.html.WebPage; 7 7 import org.apache.wicket.protocol.http.WebApplication; 8 import org.apache.wicket.resource.loader.BundleStringResourceLoader; 8 9 import org.apache.wicket.spring.injection.annot.SpringComponentInjector; 9 10 import org.springframework.beans.BeansException; … … 22 23 @Autowired 23 24 private SolrDocumentService documentService; 24 25 25 26 26 private ApplicationContext applicationContext; 27 27 … … 43 43 // this listener will inject any spring beans that need to be autowired 44 44 getComponentInstantiationListeners().add(new SpringComponentInjector(this, applicationContext)); 45 // register the resource of field names (used by eu.clarin.cmdi.vlo.wicket.componentsSolrFieldNameLabel) 46 getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader("fieldNames")); 45 47 } 46 48 47 49 /** 48 * 50 * 49 51 * @return the active VLO wicket application 50 52 */ … … 68 70 return documentService; 69 71 } 70 71 72 72 73 } -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FacetValuesPanel.html
r4605 r4635 24 24 <body> 25 25 <wicket:panel> 26 <h1><a href="#"><wicket:container wicket:id=" name">[TITLE]</wicket:container></a></h1>26 <h1><a href="#"><wicket:container wicket:id="title">[TITLE]</wicket:container></a></h1> 27 27 <div class="sbilinks facetvalues"> 28 28 <ul> -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FacetValuesPanel.java
r4540 r4635 31 31 import org.apache.wicket.model.CompoundPropertyModel; 32 32 import org.apache.wicket.model.IModel; 33 import org.apache.wicket.model.PropertyModel; 33 34 34 35 /** … … 43 44 public FacetValuesPanel(String id, IModel<FacetField> model) { 44 45 super(id, model); 45 setDefaultModel(new CompoundPropertyModel<FacetField>(model));46 46 47 // 'name' field from FacetField48 add(new Label("name"));47 // add title 48 add(new SolrFieldNameLabel("title", new PropertyModel<String>(model, "name"))); 49 49 50 50 // provider that extracts values and counts from FacetField -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FieldsTablePanel.java
r4632 r4635 41 41 protected void populateItem(Item<DocumentField> item) { 42 42 final IModel<DocumentField> fieldModel = item.getModel(); 43 item.add(new Label("fieldName", new PropertyModel(fieldModel, "fieldName")));43 item.add(new SolrFieldNameLabel("fieldName", new PropertyModel(fieldModel, "fieldName"))); 44 44 item.add(new ListView("values", new PropertyModel(fieldModel, "values")) { 45 45
Note: See TracChangeset
for help on using the changeset viewer.