Dialog Framework - Data

Dialog Framework provides APIs to pass and retrieve data between the source page and the dialog.

<h:form>
    <p:growl id="growl" showDetail="true" />

    <p:commandButton value="Select Car" icon="pi pi-home" action="#{dfView.chooseCar}">
        <p:ajax event="dialogReturn" listener="#{dfView.onCarChosen}" update="growl" />
    </p:commandButton>
</h:form>