Dialog Framework Nested dialogs are supported to allow creating a dialog from another dialog. Demo here has 3 level of nested dialogs where last dialog returns data back to the root.
<h:form id="rootform">
    <p:growl id="growl" showDetail="true" />

    <p:commandButton id="rootbtn" value="View" icon="ui-icon-extlink" actionListener="#{dfRootView.openLevel1}">
        <p:ajax event="dialogReturn" listener="#{dfRootView.onReturnFromLevel1}" update="growl"/>
    </p:commandButton>
</h:form>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.0.16 on Mojarra-2.2.8.