*/
package org.wamblee.photos.wicket;
-import javax.servlet.http.HttpServletRequest;
-
import org.apache.wicket.Request;
import org.apache.wicket.RequestCycle;
import org.apache.wicket.Response;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.http.WebRequest;
-import org.apache.wicket.request.target.basic.RedirectRequestTarget;
+import org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy;
import org.apache.wicket.settings.IApplicationSettings;
+import org.apache.wicket.settings.IExceptionSettings;
import org.wamblee.wicket.inject.ComponentInstantiationInjector;
import org.wamblee.wicket.transactions.OpenTransactionInViewRequestCycle;
/**
* Application object for your web application. If you want to run this
* application without deploying, run the Start class.
- *
+ *
* @see org.wamblee.Start#main(String[])
*/
public class WicketApplication extends WebApplication {
@Override
public RequestCycle newRequestCycle(Request aRequest, Response aResponse) {
- return new OpenTransactionInViewRequestCycle(this,
- (WebRequest) aRequest, aResponse);
+ return new OpenTransactionInViewRequestCycle(this, (WebRequest) aRequest, aResponse);
}
@Override
IApplicationSettings settings = getApplicationSettings();
settings.setInternalErrorPage(ErrorPage.class);
+ mount(new MixedParamUrlCodingStrategy("view", HomePage.class, new String[]{"path"}));
+
// Use the lines below to get the internal error page also when in
// development mode.
// IExceptionSettings exs = getExceptionSettings();
public Class<HomePage> getHomePage() {
return HomePage.class;
}
-
}