[Geoserver-devel] [Geotools-devel] wicket issue

Wrong list :slight_smile:


Jody Garnett

On Friday, 7 October 2011 at 10:11 AM, Walter Deane wrote:

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.









My UsersPage.html is:




wicket:extend
Greetings, GeoServer User! My message for you is thanks for using GeoServer .
</wicket:extend>

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


Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Hey Walter,

Every extension of GeoServerBasePage requires a title and description property to be declared in the GeoServerApplication. properties file. So just add:

UsersPage.title=…
UsersPage.description=…

To the properties file and that should solve that. If you don’t need a title or description you can just leave the values blank.

-Justin

On Thu, Oct 6, 2011 at 6:51 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

Wrong list :slight_smile:


Jody Garnett

On Friday, 7 October 2011 at 10:11 AM, Walter Deane wrote:

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.









My UsersPage.html is:




wicket:extend
Greetings, GeoServer User! My message for you is thanks for using GeoServer .
</wicket:extend>

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


Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


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-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.