hey guys,

I am working on adding some pages to GeoServer for a project and I am
receiving some Wicket exceptions related to properties.

I am fairly close to the standard tutorial set up so hopefully this is
fairly minor.


My ApplicationContext.xml is the following.


*<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
http://www.springframework.org/dtd/spring-beans.dtd";>*
*
*
*<beans>*
*     <bean class="org.geoserver.web.MenuPageInfo" id="UserList">*
*    <property name="id" value="userlist"/>*
*    <property name="titleKey"
value="com.lisasoft.parkinfo.admin.wicket.UsersPage.page.title"/>*
*    <property name="descriptionKey"
value="com.lisasoft.parkinfo.admin.wicket.UsersPage.page.description"/>*
*    <property name="componentClass"
value="com.lisasoft.parkinfo.admin.wicket.UsersPage"/>*
*    <property name="order" value="100"/>*
*    </bean>*
*</beans>*

My UsersPage.html is:

*<html>*
*<head></head>*
*<body>*
*    <wicket:extend>*
*    Greetings, GeoServer User! My message for you is <span
wicket:id="label"> thanks for using GeoServer </span>.*
*    </wicket:extend>*
*</body>*
*</html>*

My UsersPage.java is:

*package com.lisasoft.parkinfo.admin.wicket;*
*
*
*import org.apache.wicket.markup.html.basic.Label;*
*import org.geoserver.web.GeoServerBasePage;*
*
*
*public class UsersPage extends GeoServerBasePage {*
*
*
*    public UsersPage(){*
*        add(new Label("label", "Hello World"));*
*    }*
*}*

My GeoServerApplication.properties file is:

*com.lisasoft.parkinfo.admin.wicket.UsersPage.page.title=User List*
*com.lisasoft.parkinfo.admin.wicket.UsersPage.page.description=Page for
viewing and selecting users from the ParkInfo system.*

The link is displaying in the menu so the property file is being used for
the MenuPageInfo bean, but when I click on the User List link i get the
following error:


*org.apache.wicket.WicketRuntimeException: Property 'title' not found in
property files. Markup: [markup =
jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.1.0/webapps/geoserver/WEB-INF/lib/security-1.0-SNAPSHOT.jar!/com/lisasoft/parkinfo/admin/wicket/UsersPage.html
*

I have a look at the tutorial and don't see anything that I have missed. I
imagine my setup is correct since the link is displaying. Is there something
I am missing?


Thanks,
Walter Deane
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to