Broken URLs when app packaged as WAR

2009-08-28 Thread Arun Gupta
Created a Wicket application and runs fine using mvn jetty:run and then created a WAR using mvn package. When the app is deployed in Tomcat, only the home page shows up correctly but all other links giving 404. For example http://localhost:8080/runner/newrun works fine with Jetty but

Date/Time Validation in Forms

2009-08-18 Thread Arun Gupta
I have a form model defined as: -- cut here -- public class RunlogFormModel implements Serializable { private String month; private String day; private String year; private String distance; private String hour; private String minute; private String second; private

Using Wicket in a Java EE 6 container

2009-08-11 Thread Arun Gupta
I wrote a blog describing how to use Wicket with a Servlet 3.0/Java EE 6 container: http://blogs.sun.com/arungupta/entry/totd_91_applying_java_ee Any chance the changes can be integrated in the wicket-*.jar ? -Arun -- Need Application Server ? - Download glassfish.org Blog:

DatePicker from wicket-datetime working sample ?

2009-08-07 Thread Arun Gupta
I've searched the users list and Googled otherwise but can't find a working sample of DatePicker from wicket-datetime. Is there a handy one ? -Arun -- Need Application Server ? - Download glassfish.org Blog: http://blogs.sun.com/arungupta

Wicket and XHR abstraction

2009-08-06 Thread Arun Gupta
Does Wicket provide an abstraction of XHR ? I need to make a synchronous call to a non-Wicket Servlet hosted in the same domain but can't see to find a Wicket way. Or is creating own XHR or using some pre-built utility the way to go. -Arun -- Need Application Server ? - Download glassfish.org

Couldn't load DiskPageStore index when migrating from 1.3.6 - 1.4

2009-08-05 Thread Arun Gupta
An application that runs fine in 1.3.6 is throwing the following exception when started using jetty:run: 2009-08-05 05:58:49.387::INFO: No Transaction manager found - if your webapp requires one, please configure one. ERROR - DiskPageStore - Couldn't load DiskPageStore index from

Processing GET requests

2009-08-05 Thread Arun Gupta
I need to define couple of URLs in my app that return JSON data on GET request and are not tied to any view. Planning to use QueryStringUrlCodingStrategy and append the URL as type=runlogschart=barchart. Then in the WebPage, extract the query string and process them. How do I ensure that JSON

Alternate rows with different color

2009-08-04 Thread Arun Gupta
Trying to provide different color to alternate rows by following the recommendation at: http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html The source code is available at: