1 Reply Latest reply on Feb 17, 2011 9:35 AM by Ani Capil

    Fixed rich:dataTable size and fixed rich:column size?

    Ani Capil Newbie

      I used width=900px or width=900% or width=900.. nothing is work...

      I just want ti fix table size and column size.... any help will be appritiated :-

       

      my.xhtml

      <rich:dataTable id="importExcel" var="translationImportBean" styleClass="label"

                                  style="width:900px"

                                  value="#{importDictionaryManager.invalidTranslationImportBeans}"

                                  rendered="#{importDictionaryManager.invalidTranslationImportBeans.size > 0}">

       

                      <f:facet name="header">

                          <h:outputText value="#{messages.header_import_dictionary}"/>

                      </f:facet>

       

       

                      <rich:column style="text-align: left; vertical-align:left" width="10px">

                          <f:facet name="header">

                              <h:outputText value="#{messages.header_import_dictionary_row_number}"/>

                          </f:facet>

                          <h:outputText value="#{translationImportBean.rowNumber}"/>

                      </rich:column>

       

                      <rich:column style="text-align: left; vertical-align:left" width="60px">

                          <f:facet name="header">

                              <h:outputText value="#{messages.header_import_dictionary_master_argument}"/>

                          </f:facet>

                          <h:outputText value="#{translationImportBean.masterArgument}"/>

                      </rich:column>

       

                      <rich:column style="text-align: left; vertical-align:left" width="60px">

                          <f:facet name="header">

                              <h:outputText

                                      value="#{interpolator.interpolate(messages['header_import_dictionary_sales_argument'], importDictionaryManager.partOfHeader)}"/>

                          </f:facet>

                          <h:outputText value="#{translationImportBean.translation}"/>

                      </rich:column>

       

                      <rich:column style="text-align: left; vertical-align:left" width="60px">

                          <f:facet name="header">

                              <h:outputText value="#{messages.header_import_dictionary_message}"/>

                          </f:facet>

                          <h:outputText value="#{translationImportBean.message}"/>

                      </rich:column>

       

                  </rich:dataTable>

        • 1. Fixed rich:dataTable size and fixed rich:column size?
          Ani Capil Newbie

          I resolved the problem : with div tag ----

           

          <div style="width:180px;overflow:hidden;">

                                      <h:outputText value="#{guiRow.productSeriesEntity.modelDescription}"

                                                    styleClass="mwsScrollableTableCell"/>

                                  </div>