package org.jrebirth.af.showcase.fxml.ui.main;

import org.jrebirth.af.api.module.Register;
import org.jrebirth.af.api.ui.ModuleModel;
import org.jrebirth.af.component.ui.stack.StackModel;
import org.jrebirth.af.core.ui.DefaultModel;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * The class <strong>SampleModel</strong>.
 *
 * @author
 */
@Register(value = ModuleModel.class)
public final class FXMLShowCaseModel extends DefaultModel<FXMLShowCaseModel, FXMLShowCaseView> implements ModuleModel {

    /** The class logger. */
    private static final Logger LOGGER = LoggerFactory.getLogger(FXMLShowCaseModel.class);

    private StackModel stackModel;

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initModel() {
        super.initModel();

        stackModel = getModel(StackModel.class, FXMLPage.class);

    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void showView() {
        super.showView();
        view().node().setCenter(stackModel.node());

        // getModel(StackModel.class, FXMLPage.class).doShowView(null);
    }

    @Override
    public String moduleName() {
        return "FXML";
    }

}

@@ -41,16 +41,75 @@
 .main;%0A%0A
+import org.jrebirth.af.api.component.basic.InnerComponent;%0A
 import o
@@ -237,24 +237,78 @@
 StackModel;%0A
+import org.jrebirth.af.core.component.basic.CBuilder;%0A
 import org.j
@@ -340,17 +340,16 @@
 tModel;%0A
-%0A
 import o
@@ -427,13 +427,19 @@
 ong%3E
-Sampl
+FXMLShowCas
 eMod
@@ -464,16 +464,33 @@
  @author
+ S%C3%A9bastien Bordes
 %0A */%0A@Re
@@ -921,16 +921,168 @@
         
+InnerComponent%3CStackModel%3E stack = CBuilder.innerComponent(StackModel.class, FXMLPage.class);%0A        stackModel = findInnerComponent(stack);%0A        //
 stackMod

Fix trouble when using local UI components without releasing them