TextField<String> authName;
authName = new TextField<String>("authName", new PropertyModel<String>(
item.getModel(), "name"));
authName.setRequired(true);
FormComponentFeedbackBorder authNameBorder = new FormComponentFeedbackBorder("authNameBorder");
item.add(authNameBorder);
authNameBorder.add(authName);
// Authority URL
TextField<String> authURL;
authURL = new TextField<String>("authorityURL", new PropertyModel<String>(
item.getModel(), "href"));
authURL.setRequired(true);
authURL.add(new UrlValidator());
FormComponentFeedbackBorder urlBorder = new FormComponentFeedbackBorder("urlBorder");
item.add(urlBorder);
urlBorder.add(authURL);
// remove link
AjaxLink<Integer> link = new AjaxLink<Integer>("removeLink", new Model<Integer>(
item.getIndex())) {