0

我是 Primefaces 的新手。我在我的程序中使用对话框。对话框出现时对话框不显示内容,它在很长一段时间后呈现。这是为什么 ?

我的代码如下。

 <p:dialog header="Call Details" widgetVar="dlg_callD" resizable="false" 
                  style="font-family: Cambria, serif;font-size: 13px;line-height: 1.3em;"> 


            <p:selectOneRadio id="options" 
                              style="font-family: Cambria, serif;font-size: 13px;line-height: 1.3em;" 
                              value="#{customerDetailsController.callSuccess}" >  
                <f:selectItem itemLabel="YES" itemValue="1" />  
                <f:selectItem itemLabel="NO" itemValue="0" /> 

            </p:selectOneRadio>




        </p:dialog>  
   <p:dataTable id="dataTable_POST" var="newConnection" value="#{customerDetailsController.connectionList_voice}"
                     paginator="true" rows="10"  
                     paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                     rowsPerPageTemplate="5,10,15"
                     rendered="#{customerDetailsController.render_mobileList}">

            <p:column headerText="Call Count"
                      style="font-family: Cambria, serif;font-size: 13px;line-height: 1.3em;width:24%;">  
                <h:outputText value="#{newConnection.call_count}" 
                              style="font-family: Cambria, serif;font-size: 13px;line-height: 1.3em;" />  
            </p:column>
            <p:column style="width:4%">  

                <p:commandButton id="selectButton" value="View"  title="View"  onclick="dlg_callD.show()" actionListener="callAtempController."
                                 style="font-family: Cambria, serif;font-size: 13px;line-height: 1.3em;" >
                    <f:setPropertyActionListener value="#{newConnection.mobile_no}" target="#{customerDetailsController.selectedMobileNo}" /> 
                </p:commandButton>

            </p:column>  

        </p:dataTable>
4

2 回答 2

0

在您的标签中会有一些东西,这将是在开始使用或标签之后。

 <p:dialog>
     <h:panelGrid>
         Your Dialog content......
     </h:panelGrid>
  </p:dialog>

我希望这会奏效

于 2013-04-04T09:32:13.620 回答
0

你在 commandButton selectButton 中的 actioneListner 是 "actionListener="callAtempController."" --> 错误的值。

于 2013-04-04T11:16:00.090 回答