Возможно ли иметь составной компонент внутри диалога в Primefaces? - PullRequest
0 голосов
/ 28 августа 2018

Добрый день всем. Можно ли иметь составной компонент внутри диалога в простых лицах? Я сделал код, но кажется, что составной компонент не может отображаться в диалоге как то, что я хочу достичь. Когда я запустил диалог показа, ничего не вышло. Ниже покажу мой код. Спасибо заранее за помощь!

<p:dialog id="editManageDealDialogId" styleClass="pf-dialog"
    responsive="true" closable="false" resizable="false" modal="true"
    widgetVar="editManageDealWidgetVar">
    <util:placement-deal id="newDPCompositeId"
        formHeader="Edit deposit placement"></util:placement-deal>
</p:dialog>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:composite="http://java.sun.com/jsf/composite"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:pe="http://primefaces.org/ui/extensions"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:head></h:head>

<composite:interface>
    <composite:attribute name="formHeader" type="java.lang.String" />
</composite:interface>

<composite:implementation>
    <div class="modal-body">
        <h:form id="form-modal" styleClass="my-form">
           <p:outputLabel value="Testing"></p:outputLabel>
        </h:form>
    </div>
</composite:implementation>
</html>
...