2013-11-22 30 views
1

我正在使用primefaces 4.0。當我用shift鍵選擇一些行時,「select」事件沒有被觸發。但是用CTRL鍵選擇正確觸發事件。PrimeFaces。沒有觸發TreeTable多行移位選擇事件

treetable中代碼:

<p:treeTable id="reportTreeTable" value="#{reportListBean.reportTree.rootNode}" var="report" 
        selectionMode="multiple" selection="#{reportListBean.reportTree.treeSelection}"> 
      <p:ajax event="expand" listener="#{reportListBean.reportTree.onNodeExpand}" update=":actionMenuForm" /> 
      <p:ajax event="select" listener="#{reportListBean.reportTree.onNodeSelect}" update=":actionMenuForm"/> 
      <p:ajax event="unselect" listener="#{reportListBean.reportTree.onNodeUnselect}" update=":actionMenuForm"/> 

      <p:column headerText="Название"> 
       <h:outputText value="#{report.data.label}" /> 
      </p:column> 

      <p:column headerText="URI"> 
       <h:outputText value="#{report.data.uriString}" /> 
      </p:column> 

      <p:column headerText="Дата"> 
       <h:outputText value="#{report.data.creationDate}"> 
        <f:convertDateTime pattern="dd.MM.yyyy HH:mm:ss" /> 
       </h:outputText> 
      </p:column> 
     </p:treeTable> 

回答

1

在PrimeFaces 4.0 treetable中上的SelectionMode = 「多」 與 「shift」 鍵不會觸發事件 「中選擇」 服務器。

+1

問題仍然存在於PF 5.0中 – noone

+0

在將來的版本中是否有修復此問題的機會? – Micer