final FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
add(feedback);
document = new JetspeedDocument();
Form infoForm = new Form("newForm");
Label nameLabel = new Label("name", "Name");
TextField nameField = new TextField("nameField", new PropertyModel(
this, "document.name"));
nameField.setRequired(true);
infoForm.add(nameLabel);
infoForm.add(nameField);
Label titleLabel = new Label("title", "Title");
TextField titleField = new TextField("titleField",
new PropertyModel(this, "document.title"));
infoForm.add(titleLabel);
infoForm.add(titleField);
Label shortTitleLabel = new Label("shortTitle", "ShortTitle");
TextField shortTitleField = new TextField("shortTitleField",
new PropertyModel(this, "document.shortTitle"));
infoForm.add(shortTitleField);
infoForm.add(shortTitleLabel);
Label urlLabel = new Label("urlLabel", "URL");
TextField urlField = new TextField("urlField", new PropertyModel(
this, "document.url"));
urlField.setRequired(true);
infoForm.add(urlLabel);
infoForm.add(urlField);
Label targetLabel = new Label("targetLabel", "Target Window");
DropDownChoice targetField = new DropDownChoice("target",
new PropertyModel(this, "document.target"), getTargetList());
infoForm.add(targetLabel);
infoForm.add(targetField);
Label visibleLabel = new Label("visible", "Hidden");
CheckBox visibleCheckbox = new CheckBox("visibleCheck",
new PropertyModel(this, "document.hidden"));
infoForm.add(visibleLabel);
infoForm.add(visibleCheckbox);
infoForm.add(new AjaxButton("new",new ResourceModel("add.link"),infoForm)