9 Replies Latest reply on Jan 28, 2009 6:35 AM by Ilya Shaikovsky

    ExtendedDataTable with empty column ?

    sebo sebo Newbie

      Programing with richfaces is new thing to me and maybe i don't read all docs for component extendedDataTable, so don't be angry if I ask about something obvious :). So question is: Is it normal behavior for ExtendedDataTable to renderer more columns that is write in code ?
      My code is:

      <rich:extendedDataTable id="edt" value="#{articleList.articles}" var="edt" style="padding:0;margin0;overflow:auto;"
       sortMode="single" selectionMode="single" selection="#{articleList.selection}" rowKeyVar="rvk" rules="all"
       stateVar="#{articleList.tableState}" width="795px" height="300px">
       <rich:column id="lp" sortable="false" width="5%">
       <f:facet name="header">
       <h:outputText value="Lp" />
       </f:facet>
       <h:outputText value="#{rvk}" />
       </rich:column>
       <rich:column id="name" headerClass="dataTableHeader" label="Tytuł" sortable="true" sortBy="#{edt.name}"
       sortIconAscending="dataTableAscIcon" sortIconDescending="dataTableDescIcon" width="30%">
       <f:facet name="header">
       <h:outputText value="Tytuł" />
       </f:facet>
       <h:outputText value="#{edt.name}" />
      
       </rich:column>
       <rich:column id="date" headerClass="dataTableHeader" label="Data publikacji" sortable="true" sortIconAscending="dataTableAscIcon"
       sortIconDescending="dataTableDescIcon" width="20%">
       <f:facet name="header">
       <h:outputText value="Data publikacji" />
       </f:facet>
       <h:outputText value="#{edt.published_date}" ><f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/></h:outputText>
      
       </rich:column>
       <rich:column id="autor" headerClass="dataTableHeader" label="Autor" sortable="true" sortIconAscending="dataTableAscIcon"
       sortIconDescending="dataTableDescIcon" width="10%">
       <f:facet name="header">
       <h:outputText value="Autor" />
       </f:facet>
       <h:outputText value="#{edt.user.name}" />
      
       </rich:column>
       <rich:column id="attachment" headerClass="dataTableHeader" label="Załącznik" sortable="false" width="10%">
       <f:facet name="header">
       <h:outputText value="Załącznik" />
       </f:facet>
       <h:outputText value="#{edt.id_attachment.mime}" />
      
       </rich:column>
       <rich:column id="articleHeader" headerClass="dataTableHeader" label="Nagłówek" sortable="false" width="27%">
       <f:facet name="header" >
       <h:outputText value="Nagłówek" />
       </f:facet>
       <rich:simpleTogglePanel switchType="client" label="Fragment artukułu" opened="false" width="100%">
       <h:outputText value="#{edt.content}" />
       </rich:simpleTogglePanel>
      
       </rich:column>
       </rich:extendedDataTable>


      [url=http://img150.imageshack.us/my.php?image=zrzutekranu1wu7.png][img=http://img150.imageshack.us/img150/2731/zrzutekranu1wu7.th.png][/url]

      Ps.
      Sorry for my poor english :).