Property<UniqueResourceIdentifier> property) {
String name = property.getName();
if ("code".equals(name)) {
Fragment codeFragment = new Fragment(id, "txtFragment",
UniqueResourceIdentifiersEditor.this);
FormComponentFeedbackBorder codeBorder = new FormComponentFeedbackBorder(
"border");
codeFragment.add(codeBorder);
TextField<String> code = new TextField<String>("txt",
new PropertyModel<String>(itemModel, "code"));
code.setLabel(new ParamResourceModel("th.code", UniqueResourceIdentifiersEditor.this));
code.setRequired(true);
codeBorder.add(code);
return codeFragment;
} else if ("namespace".equals(name)) {
Fragment nsFragment = new Fragment(id, "txtFragment",
UniqueResourceIdentifiersEditor.this);
FormComponentFeedbackBorder namespaceBorder = new FormComponentFeedbackBorder(
"border");
nsFragment.add(namespaceBorder);
TextField<String> namespace = new TextField<String>("txt",
new PropertyModel<String>(itemModel, "namespace"));
namespace.setLabel(new ParamResourceModel("th.namespace", UniqueResourceIdentifiersEditor.this));
namespace.add(new URIValidator());
namespaceBorder.add(namespace);
return nsFragment;
} else if ("metadataURL".equals(name)) {
Fragment urlFragment = new Fragment(id, "txtFragment",
UniqueResourceIdentifiersEditor.this);
FormComponentFeedbackBorder namespaceBorder = new FormComponentFeedbackBorder(
"border");
urlFragment.add(namespaceBorder);
TextField<String> url = new TextField<String>("txt",
new PropertyModel<String>(itemModel, "metadataURL"));
url.add(new URIValidator());
namespaceBorder.add(url);
return urlFragment;
} else if ("remove".equals(name)) {
Fragment removeFragment = new Fragment(id, "removeFragment",
UniqueResourceIdentifiersEditor.this);
GeoServerAjaxFormLink removeLink = new GeoServerAjaxFormLink("remove") {