0
我有這個tabView到layoutUnit,我可以添加和刪除標籤dinamically。佈局到選項卡TabView
當我嘗試使用layoutUnit到佈局的佈局我有圖形錯誤。 我必須怎樣才能在佈局中使用佈局? 當我添加一個新選項卡時,我還可以優化tabView更新嗎?
<p:layoutUnit position="center" resizable="true" styleClass="borderlessTopUnit" >
<p:tabView id="tabViewExt" activeIndex="#{tabViewManagedBean.activeIndex}" styleClass="borderlessUnit" >
<p:ajax event="tabClose" listener="#{tabViewManagedBean.onTabClose}" />
<p:ajax event="tabChange" listener="#{tabViewManagedBean.onTabChange}" />
<c:forEach items="#{tabViewManagedBean.tabs}" var="tab_ext" varStatus="loop_ext" >
<p:tab title="#{tab_ext.title}" closable="#{tab_ext.closable}" >
<f:subview id="tab_ext_#{loop_ext.index}" >
<ui:include src="#{tab_ext.page}" />
</f:subview>
</p:tab>
</c:forEach>
</p:tabView>
</p:layoutUnit>