TextField<Integer> maxErrors = new TextField<Integer>("maxRenderingErrors");
maxErrors.add(new MinimumValidator<Integer>(0));
form.add(maxErrors);
// watermark
form.add(new CheckBox("watermark.enabled"));
TextField watermarkUrlField = new TextField("watermark.uRL", new FileModel(new PropertyModel<String>(form.getModel(), "watermark.URL")));
watermarkUrlField.add(new FileExistsValidator(true));
watermarkUrlField.setOutputMarkupId(true);
form.add(watermarkUrlField);
form.add(chooserButton("chooser", new ParamResourceModel("chooseWatermark", this).getString(), watermarkUrlField));
TextField<Integer> transparency = new TextField<Integer>("watermark.transparency");