public void populateItem(ListItem item){
MenuPageInfo info = (MenuPageInfo)item.getModelObject();
BookmarkablePageLink link = new BookmarkablePageLink("link", info.getComponentClass());
link.add(new AttributeModifier("title", true, new StringResourceModel(info.getDescriptionKey(), (Component) null, null)));
link.add(new Label("link.label", new StringResourceModel(info.getTitleKey(), (Component) null, null)));
Image image;
if(info.getIcon() != null) {
image = new Image("link.icon", new ResourceReference(info.getComponentClass(), info.getIcon()));
} else {
image = new Image("link.icon", new ResourceReference(GeoServerBasePage.class, "img/icons/silk/wrench.png"));
}
image.add(new AttributeModifier("alt", true, new ParamResourceModel(info.getTitleKey(), null)));
link.add(image);
item.add(link);
}
});
}
});
add(new ListView("standalone", standalone){
public void populateItem(ListItem item){
MenuPageInfo info = (MenuPageInfo)item.getModelObject();
BookmarkablePageLink link = new BookmarkablePageLink("link", info.getComponentClass());
link.add(new AttributeModifier("title", true, new StringResourceModel(info.getDescriptionKey(), (Component) null, null)));
link.add(new Label("link.label", new StringResourceModel(info.getTitleKey(), (Component) null, null)));
item.add(link);
}
}
);
add(feedbackPanel = new FeedbackPanel("feedback"));
feedbackPanel.setOutputMarkupId( true );
// ajax feedback image
add(new Image("ajaxFeedbackImage",
new ResourceReference(GeoServerBasePage.class, "img/ajax-loader.gif")));
add(new WebMarkupContainer(HEADER_PANEL));
}