All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.personify.iam.frontend.wicket.panel.common.CreatePanel Maven / Gradle / Ivy

There is a newer version: 1.5.2.RELEASE
Show newest version
package be.personify.iam.frontend.wicket.panel.common;

import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;

public abstract class CreatePanel extends FormPanel {

	private static final long serialVersionUID = 1725217325511287056L;

	private Form form;
	
	public FeedbackPanel feedbackPanel;
	
	public CreatePanel(String id) {
		super(id);
	}

	@Override
	protected void onInitialize() {
		super.onInitialize();
		
		//add the feedbackpanel for the form
		feedbackPanel = new FeedbackPanel("formFeedbackPanel"); 
		feedbackPanel.setOutputMarkupId(true);
		feedbackPanel.setOutputMarkupPlaceholderTag(true);
		add( feedbackPanel );
		
		form = initForm();
		add(form);
	}
	
	public abstract Form initForm();
	
	public abstract void create();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy