繁体   English   中英

核心jsf中outputPanel的等效组件

[英]Equivalent Component for outputPanel in core jsf

我面临的情况是我必须使用组件包装程序,或者在primefaces中执行与“ outputPanel”相同的操作。 你知道任何 ?

由于您要求使用等效的组件包装器,因此建议您将panelGrid的列值设置为1。

<h:panelGrid id="grid" columns="1">
</h:panelGrid>

我需要从其中的命令链接触发的ajax操作中重新渲染DataTable

只需引用数据表本身。

<h:form id="form">
    <h:dataTable id="table" ...>
        <h:column>
            <h:commandLink ...>
                <f:ajax ... render=":form:table" />
            </h:commandLink>
        </h:column>
    </h:dataTable>
</h:form>

或者,如果您出于某些不清楚的原因确实坚持使用,则<p:outputPanel>的普通JSF等效项就是<h:panelGroup>

<h:form id="form">
    <h:panelGroup id="group">
        <h:dataTable ...>
            <h:column>
                <h:commandLink ...>
                    <f:ajax ... render=":form:group" />
                </h:commandLink>
            </h:column>
        </h:dataTable>
    </h:panelGroup>
</h:form>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM