我正在尝试使用primefaces Tree(和TreeTable,这会更好,但结果是一样的)显示值
<h:form id="treeTableForm">
    <p:commandButton actionListener="#{aircraftTypeHandler.tableSubmit}"
        update="@form" />
    <p:tree id="perfoTree" value="#{aircraftTypeHandler.perfosNode}"
        var="perfo" animate="true" style="min-width:300px;">
        <p:treeNode id="treeNode">
            <h:inputText value="#{perfo.type}" />
            <p:spacer width="20" height="0" />
            <h:inputText value="#{perfo.altitude}" />
            <p:spacer width="20" height="0" />
            <h:inputText value="#{perfo.mass}" />
            <p:spacer width="20" height="0" />
            <h:inputText value="#{perfo.distance}" />
            <p:spacer width="20" height="0" />
        </p:treeNode>
    </p:tree>
</h:form>
按下 commandButton 时,没有任何反应。移除组件时,支持 bean 方法被正确调用。
你知道为什么吗 ?如何使用“树状”组件显示数据,同时能够在将数据发送回支持 bean 之前与数据进行交互?
谢谢