JSF Primefaces treeView内部组件无法在root以外的treeNode上正确呈现

问题描述

我正在尝试在每个

中使用

创建Primefaces

。问题在于

仅在

的根中正确呈现。另一方面,

在每个

上正确呈现。

enter image description here

我的xhtml:

<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:p="http://primefaces.org/ui">

<h:head>

</h:head>
<h:body>
    <h:form id="main_form" style="width: 100%;">
        <p:outputPanel style="width: 100%; height: 100%;overflow: auto;display: block">
            <p:tree id="commentsTree" value="#{commentStreemanagedBean.root}" var="comment" style="width: 100%;">
                <p:treeNode>
                    <p:inputText value="#{comment.content}"/>
                    <p:textEditor widgetvar="editor2" value="#{comment.content}" height="300" style="margin-bottom:10px" placeholder="Enter your content">
                        <f:facet name="toolbar">
                            <span class="ql-formats">
                                <button class="ql-bold"></button>
                                <button class="ql-italic"></button>
                                <button class="ql-underline"></button>
                                <button class="ql-strike"></button>
                            </span>
                            <span class="ql-formats">
                                <select class="ql-font"></select>
                                <select class="ql-size"></select>
                            </span>
                        </f:facet>
                    </p:textEditor>

                </p:treeNode>
            </p:tree>
        </p:outputPanel>
    </h:form>
</h:body>

:composition>

提前谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)