Primefaces Datagrid正在运行,但弹出窗口是空的

时间:2013-10-30 17:12:09

标签: jsf-2 primefaces primefaces-extensions

为什么我的弹出窗口是空的。图像即将到来,但数据还没有到来..

<p:dataGrid var="publicationVar" value="#{adminhome.lazyModel}"
            columns="5" id="imageGridId" lazy="true" rows="15" paginator="true"
            style="float: left;" binding="#{adminhome.dataGrid}"
            emptyMessage="Records non trovati!"
            paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
            rowsPerPageTemplate="5,10,15" paginatorPosition="bottom"
            rendered="#{adminhome.renderImages}">
            <p:column id="colGridId">
                <p:panel style="width: 50%;" id="panlId">
                    <h:panelGrid id="panGridId">
                        <p:commandLink oncomplete="dlg2.show()" update=":form:tesss"
                            process="@this" id="comLinkId">
                            <p:graphicImage id="grapImgId"
                                value="#{publicationVar.imageTmbPath}" width="140" height="160"
                                style="margin-right: -12px" alt="#{publicationVar.ISSNcode}"
                                title="#{publicationVar.editore}, #{publicationVar.title}, &#8364; #{publicationVar.priceStr}" />
                            <f:setPropertyActionListener value="#{publicationVar}"
                                target="#{adminhome.selectedPubblicazioni}" id="setPropId" />
                        </p:commandLink>
                    </h:panelGrid>
                </p:panel>
            </p:column>
</p:dataGrid> 

这是对话框。我可以看到空白对话框。但是在引入懒惰概念之前它才有效。

       <p:dialog id="modalDialog" widgetVar="dlg2" modal="true" height="100%"  dynamic="true">
          <p:outputPanel id="tesss">
            <p:panelGrid>
              <p:row>
                <p:column rowspan="13" >
                  <div style="width:100%;height:100%">
                    <h:commandLink  action="popup.xhtml" target="_blank" >
                      <p:graphicImage style="margin-left:5px" value="#{adminhome.selectedPubblicazioni.imagePath}" height="500" width="375" />
                    </h:commandLink>
                  </div>
                </p:column>  
                </p:row>

              <p:row> <p:column> <h:outputText value="Data " style="float: left;margin-left: 30px;color:red;font-size: 18px;font-weight: bold"/>    </p:column> <p:column> <h:outputText value="#{adminhome.selectedPubblicazioni.sample}" style="float: left;"/>   </p:column>    </p:row>
              <p:row> <p:column> <h:outputText value="Name " style="float: left;margin-left: 30px;color:red;font-size: 18px;font-weight: bold"/>    </p:column> <p:column> <h:outputText value="#{adminhome.selectedPubblicazioni.ename}" style="float: left;"/>   </p:column>    </p:row>
              <p:row> <p:column> <h:outputText value="Code " style="float: left;margin-left: 30px;color:red;font-size: 18px;font-weight: bold"/>    </p:column> <p:column><h:outputText value="#{adminhome.selectedPubblicazioni.code}" style="float: left;"/>    </p:column>     </p:row>
              <p:row> <p:column>  <h:outputText value="Sample " style="float: left;margin-left: 30px;color:red;font-size: 18px;font-weight: bold"/>    </p:column>  <p:column> <h:outputText value="#{adminhome.selectedPubblicazioni.sample}" style="float: left;"/>    </p:column>    </p:row>

         </p:panelGrid>

0 个答案:

没有答案