2012-10-23 98 views
0
<richdatatable> 
<a4j:commandLink styleClass="addLink" action="#{depotOpeningStockManageBean.createNewLotShow}" 
          execute="@this" oncomplete="#{rich:component('addPane')}.show()" value="Create" > 

          </a4j:commandLink></richdatatable> 

<rich:popupPanel id="addPane" resizeable="true" domElementAttachment="parent">  
      <h:commandLink value="cancel" onclick="#{rich:component('addPane')}.hide()" /> 
      </rich:popupPanel> 

爲什麼彈出窗口顯示在richdataGrid和richpanel上,但不在richDatatable中?jsf + richfaces彈出窗口不顯示

+0

我不明白你的問題。你有什麼問題或錯誤? – roel

+0

問題不清楚。根據給定的示例,您將標記用作''將其更改爲''。 – prageeth

回答

0

好像你忘了列定義:

<rich:dataTable ... > 
    <rich:column ... > 
     <a4j:commandLink ... /> 
    </rich:column> 
</rich:dataTable> 

而且你必須提供一個清單表。如果您只想要<table>呈現,那麼<h:panelGrid>是您正在尋找的標記。