Package com.googlecode.wicketwebbeans.examples.container

Source Code of com.googlecode.wicketwebbeans.examples.container.CustomContainerPage

package com.googlecode.wicketwebbeans.examples.container;


import org.apache.wicket.markup.html.WebPage;

import com.googlecode.wicketwebbeans.annotations.Bean;
import com.googlecode.wicketwebbeans.containers.BeanForm;
import com.googlecode.wicketwebbeans.containers.VerticalLayoutBeanPanel;
import com.googlecode.wicketwebbeans.model.BeanMetaData;


@Bean(type = TestBean.class, container = VerticalLayoutBeanPanel.class)
public class CustomContainerPage extends WebPage
{
    private static final long serialVersionUID = 1209855853289131570L;

    public CustomContainerPage()
    {
        TestBean bean = new TestBean();
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
}
TOP

Related Classes of com.googlecode.wicketwebbeans.examples.container.CustomContainerPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.