Example usage for org.apache.wicket Component detachModels

List of usage examples for org.apache.wicket Component detachModels

Introduction

In this page you can find the example usage for org.apache.wicket Component detachModels.

Prototype

public void detachModels() 

Source Link

Document

Detaches all models

Usage

From source file:com.googlecode.wicketwebbeans.containers.ContainerModelTest.java

License:Apache License

private void detachModels(Page page) {
    page.visitChildren(new IVisitor<Component>() {
        public Object component(Component component) {
            try {
                // detach any models of the component
                component.detachModels();
            } catch (Exception e) {
                // Ignore
            }/*  w  ww.ja  v a2 s.c  o  m*/

            return IVisitor.CONTINUE_TRAVERSAL;
        }
    });
}