简体   繁体   中英

How to update primefaces DataTable inside tabView and layoutUnit?

I have next code:

<p:layoutUnit position="center" size="50%" styleClass="nestedUnit">

            <p:tabView id="tableTabView>

                <p:tab title="Inbox">

                    <h:form id="tableForm">

                        <p:dataTable id="tableMsg">

                            //data

                        </p:dataTable>

                    </h:form>

                </p:tab>

            </p:tabView>

        </p:layoutUnit>

    </p:layout>

Also I have some button, which removing element from table and update It. But how I can update this table? Which arguments should be in update? I'm tried update=":tableForm" and update=":tableTabView:tableForm" and update=":tableTabView" but not results. Where I was wrong?

Open firebug or developer tools in your web browser. See what value is the component aquiring at client side and put that id in your update attribute.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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