public MenuWindow(String id, final MenuDefinition definition,
final AjaxTabbedPanel tabPanel)
{
super(id);
this.menuDef = new JetspeedMenuDefinition(definition);
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")));