I recently added some pages, the way it works for me
In my src/main/java/applicationContext.xml
<bean id="groupSecurityPage" class="org.geoserver.web.MenuPageInfo">
<property name="id" value="security.group" />
<property name="titleKey" value="security.group.title" />
<property name="descriptionKey"
value="security.group.description" />
<property name="componentClass"
value="org.geoserver.web.security.group.GroupPage" />
<property name="icon" value="../../img/icons/silk/group.png" />
<property name="category" ref="securityCategory" />
<property name="order" value="110" />
</bean>
In src/main/resources/GeoServerApplication.properties
security.group.title=Groups
security.group.description=Edit GeoServer groups
Hint: If you work with a eclipse, make a full eclipse build with
mvn eclipse:clean eclipse:eclipse -DownloadSources=true
Having the possibility to debug wicket source code helps a lot :-)
Cheers
Christian
Zitat von Walter Deane <[email protected]>:
> 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
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
------------------------------------------------------------------------------
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