Primefaces 6 - 未触发的commandlink操作

时间:2017-04-03 09:20:02

标签: primefaces jsf-2

我在Jsf2.0&上使用primefaces6.0 mojarra 2.0.9-SNAPSHOT。

我在面板的操作方面有一个commandLink。使用ui:repeat渲染此面板以使其成为动态的。面板在Tab中分组。

所以我有动态p:tab,在每个标签内,面板使用ui:repeat进行渲染。

我的问题是commandLInk动作或actionlistener仅为每个标签的第一个面板调用。当我点击相同标签的其他面板时 - 不会触发操作。

任何线索?

下面是我的xhtml代码。

<p:tabView  id="tabViewId"
                value="#{userdashboard.chartGroupsList}" var="cg" onTabShow="reflowChart()">


                <p:tab title="#{cg.groupName}" >

                    <ui:repeat var="c" value="#{cg.charts}" varStatus="status">

                       <ui:fragment rendered="#{c.typeCode ne 'TABLE1'}">
                           <div class="Container#{c.chartSpecificContainerWidth} Responsive#{c.chartSpecificContainerWidth} NoIndent" 
                                id="parentDivId#{c.rowid}" >


                                <p:panel  header="" styleClass="panelChart" 
                                    toggleable="true" toggleOrientation="horizontal">

                                    <f:facet name="actions" >
                                        <p:commandLink styleClass="ui-panel-titlebar-icon ui-corner-all ui-state-default"
                                            action="#{userdashboard.updateUIColumnLayout}" ajax="false">
                                            <h:outputText  value="#{c.id}"/>
                                        </p:commandLink>
                                    </f:facet>
                                </p:panel>
                        </ui:fragment>

                     </ui:repeat>

                </p:tab>
</p:tabView>

0 个答案:

没有答案
相关问题