responseWindow.setPageCreator(new ModalWindow.PageCreator() {
@SuppressWarnings("unchecked")
public Page createPage() {
DemoRequest request = new DemoRequest(null);
HttpServletRequest http = ((WebRequest) WPSRequestBuilder.this.getRequest())
.getHttpServletRequest();
String url = ResponseUtils.buildURL(ResponseUtils.baseURL(http), "ows", Collections
.singletonMap("strict", "true"), URLType.SERVICE);
request.setRequestUrl(url);
request.setRequestBody((String) responseWindow.getDefaultModelObject());
request.setUserName(builder.username);
request.setPassword(builder.password);
return new DemoRequestResponse(new Model(request));
}
});
form.add(new AjaxSubmitLink("execute") {