1 Reply Latest reply on Apr 19, 2011 9:18 AM by Maxim Kuzmik

    rich:extendedDataTable not work but rich:dataGrid work fine

    Maxim Kuzmik Newbie

      Hello. Here is my code:

       

      <h:panelGrid columns="2">
      
                                                      <rich:dataGrid
                                                          value="#{toolBarManager.editedEssence.dataAsMap[attribute.code]}"
                                                          var="linkedEssence"
                                                          columns="1"
                                                          elements="10"
                                                          width="600px"
                                                          border="0">
                                                          <f:facet name="header">
                                                              <h:outputLabel value="#{attribute.linkToClass.title}" />
                                                          </f:facet>
                                                          <h:panelGrid columns="1">
                                                              <h:outputText value="#{linkedEssence.title}" />
                                                          </h:panelGrid>
                                                          <f:facet name="footer">
                                                              <rich:dataScroller />
                                                          </f:facet>
                                                      </rich:dataGrid>
      
                                                      <rich:extendedDataTable
                                                          value="#{toolBarManager.editedEssence.dataAsMap[attribute.code]}"
                                                          var="linkedEssence"
                                                          noDataLabel="Данные отсутствуют"
                                                          style="height:150px; width:300px;">
                                                          <f:facet name="header">
                                                              <h:outputLabel value="#{attribute.linkToClass.title}" />
                                                          </f:facet>
                                                          <rich:column
                                                              sortable="false"
                                                              title=""
                                                              width="50px">
                                                              <f:facet name="header"></f:facet>
                                                              <a4j:commandLink
                                                                  execute="@this"
                                                                  render="confirmPanelMN"
                                                                  oncomplete="#{rich:component('confirmPanelMN')}.show()">
                                                                  <h:graphicImage
                                                                      value="/images/portal/utils/delete.gif"
                                                                      style="border:0;" />
                                                                  <f:setPropertyActionListener
                                                                      target="#{toolBarManager.mnLinkForDelete}"
                                                                      value="#{linkedEssence}" />
                                                              </a4j:commandLink>
                                                              <a4j:commandLink
                                                                  render="editEssencePanel"
                                                                  reRender="editEssencePanel"
                                                                  execute="@this"
                                                                  oncomplete="#{rich:component('editEssencePanel')}.show()">
                                                                  <h:graphicImage
                                                                      value="/images/portal/utils/edit.gif"
                                                                      style="border:0;" />
                                                                  <f:setPropertyActionListener
                                                                      target="#{extDataModel.editedEssence}"
                                                                      value="#{essence}" />
                                                              </a4j:commandLink>
                                                          </rich:column>
                                                          <rich:column
                                                              sortable="false"
                                                              title=""
                                                              width="50px">
                                                              <f:facet name="header">Наименование</f:facet>
                                                              <h:outputText value="#{linkedEssence.title}" />
                                                          </rich:column>
                                                      </rich:extendedDataTable>
      
                                                      <a4j:commandLink
                                                          render="createMNLinkedEssencePanel"
                                                          reRender="createMNLinkedEssencePanel"
                                                          execute="@this"
                                                          oncomplete="#{rich:component('createMNLinkedEssencePanel')}.show()">
                                                          <h:graphicImage
                                                              value="/images/portal/icons/i152.gif"
                                                              style="border:0;" />
                                                          <f:setPropertyActionListener
                                                              target="#{mnlinkManager.mnLinkAttribute}"
                                                              value="#{attribute}" />
                                                          <f:setPropertyActionListener
                                                              target="#{mnlinkManager.editingEssence}"
                                                              value="#{toolBarManager.editedEssence}" />
                                                      </a4j:commandLink>
                                                  </h:panelGrid>
      

       

      Here is the result of work. So my question is why the rich:extendedDataTable dont show any data?

      result.jpg