final FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
add(feedback);
Form menuform = new Form("menuForm");
TextField nameField = new RequiredTextField("nameField",
new PropertyModel(this, "menuDef.name"));
menuform.add(new Label("nameLabel",new ResourceModel("common.name")));
menuform.add(nameField);
TextField optionsField = new TextField("optionsField",
new PropertyModel(this, "menuDef.options"));
menuform.add(new Label("optionLabel",new ResourceModel("menu.option")));
menuform.add(optionsField);
TextField depthField = new TextField("depthField",
new PropertyModel(this, "menuDef.depth"));
menuform.add(new Label("depthLabel",new ResourceModel("menu.depth")));
menuform.add(depthField);
CheckBox pathField = new CheckBox("pathField", new PropertyModel(
this, "menuDef.paths"));
menuform.add(new Label("pathLabel",new ResourceModel("menu.path")));
menuform.add(pathField);
CheckBox regExpField = new CheckBox("regExpField",
new PropertyModel(this, "menuDef.regexp"));
menuform.add(new Label("regExpLabel",new ResourceModel("menu.regExp")));
menuform.add(regExpField);
TextField profileField = new TextField("profileField",
new PropertyModel(this, "menuDef.profile"));
menuform.add(new Label("profileLabel",new ResourceModel("menu.profile")));
menuform.add(profileField);
TextField titleField = new TextField("titleField",
new PropertyModel(this, "menuDef.title"));
menuform.add(new Label("titleLabel",new ResourceModel("menu.title")));
menuform.add(titleField);
TextField skinField = new TextField("skinField", new PropertyModel(
this, "menuDef.skin"));
menuform.add(new Label("skinLabel",new ResourceModel("menu.skin")));
menuform.add(skinField);
TextField orderField = new TextField("orderField",
new PropertyModel(this, "menuDef.order"));
menuform.add(new Label("orderLabel",new ResourceModel("menu.order")));
menuform.add(orderField);
menuform.add(new AjaxButton("save",new ResourceModel("common.save"), menuform)
{