Hey there,
I am having an issue where I am trying to create a Wicket page that links off
of the left-side menu. My link shows up. When I click on it, I see the title
and description. However, the HTML contained in my UploadPage.html does not
show up. It's also not in the source when I view the HTML source. I am
tailing the geoserver logs and am seeing no errors. I also am debugging my
UploadPage.java class and drop a breakpoint on the one executable line and this
line does get hit.
My ApplicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="uploadPage" class="org.geoserver.web.MenuPageInfo">
<property name="id" value="uploadPage"/>
<property name="titleKey" value="UploadPage.page.title"/>
<property name="descriptionKey" value="UploadPage.page.description"/>
<property name="componentClass"
value="gov.usgs.cida.geoserver.upload.UploadPage"/>
</bean>
</beans>
UploadPage.html:
<html>
<head></head>
<body>
<wicket:extend>
Test <span wicket:id="uploadlabel"></span>
</wicket:extend>
</body>
UploadPage.java
package gov.usgs.cida.geoserver.upload;
import org.apache.wicket.markup.html.basic.Label;
import org.geoserver.web.GeoServerBasePage;
public class UploadPage extends GeoServerBasePage {
public UploadPage() {
add(new Label("uploadlabel", "This will be used to upload shapefiles"));
}
}
GeoServerApplication.properties:
UploadPage.page.title=Upload
UploadPage.page.description=A Page To Upload Shapefiles
title = Upload Shapefiles
description = Browse for your shapefile.
What I see on the right-hand side when i click on the link is just:
Upload Shapefiles
Browse for your shapefile.
---------------------------------------------------------------------------
Ivan Suftin - Applications Developer - isuf...@usgs.gov
Center for Integrated Data Analytics (CIDA)
U.S. Geological Survey
8505 Research Way, Middleton, WI 53562
Office: (608) 821-3825 - Cell : (608) 345-8963
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users