package wicket.PROTO_01;

import wicket.PageParameters;
import wicket.markup.html.panel.FeedbackPanel;
import wicket.markup.html.form.*;;

/**
 * Basic bookmarkable index page.
 * 
 * NOTE: You can get session properties from QuickStartSession via getQuickStartSession()
 */
public class Index extends QuickStartPage 
{
    // TODO Add any page properties or variables here

	/**
	 * Constructor that is invoked when page is invoked without a session.
	 * 
	 * @param parameters
	 *            Page parameters
	 */
	public Index(final PageParameters parameters) 
    {
	     // Add a FeedbackPanel for displaying our messages
        FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
        add(feedbackPanel);

        // Add a form with an onSubmit implementation that sets a message
        add(new Form("form") {
            protected void onSubmit() {
                info("the form was submitted!");
            }
        });


	}


}
