src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java
private List<FormPanel> getFormPanels()
    {
        AjaxSubmitCloseButton.LOG.trace("entering getFormPanels");
        final List<FormPanel> ret = new ArrayList<>();
        final Iterator<?> iterator = getForm().iterator();
        while (iterator.hasNext()) {
            final Object object = iterator.next();
            if (object instanceof WebMarkupContainer) {
                final Iterator<?> iterator2 = ((WebMarkupContainer) object).iterator();
                while (iterator2.hasNext()) {
                    final Object object2 = iterator2.next();
                    if (object2 instanceof FormPanel) {
                        ret.add((FormPanel) object2);
                    }
                }
            }
        }
        return ret;
    }
private List<FormPanel> getFormPanels()
    {
        AjaxSubmitCloseButton.LOG.trace("entering getFormPanels");
        final List<FormPanel> ret = new ArrayList<>();
        final Iterator<?> iterator = getForm().iterator();
        while (iterator.hasNext()) {
            final Object object = iterator.next();
            if (object instanceof WebMarkupContainer) {
                final Iterator<?> iterator2 = ((WebMarkupContainer) object).iterator();
                while (iterator2.hasNext()) {
                    final Object object2 = iterator2.next();
                    if (object2 instanceof FormPanel) {
                        ret.add((FormPanel) object2);
                    }
                }
            }
        }
        return ret;
    }
Method to get the FormPanel of this Page.

@return FormPanel