public ProjectDescriptionPanel(String id, IModel<? extends Project> projectModel) {
super(id, projectModel);
// Project version popups
projectVersionAddPopup = new ProjectVersionFormPopupPanel("projectVersionAddPopup", FormPanelMode.ADD) {
private static final long serialVersionUID = 1L;
@Override
protected Project getProject() {
return ProjectDescriptionPanel.this.getModelObject();
}
};
add(projectVersionAddPopup);
projectVersionEditPopup = new ProjectVersionFormPopupPanel("projectVersionEditPopup", FormPanelMode.EDIT);
add(projectVersionEditPopup);
// Add action
Button addButton = new AuthenticatedOnlyButton("add") {
private static final long serialVersionUID = 1L;