5 Replies Latest reply on Oct 1, 2008 10:55 PM by Paul Baker

    ExtendedDataTable - FilterText

    Paul Baker Apprentice

      ExtendedDataTable is a great addition to the Richfaces component library!

      I have two questions about ExtendedDataTable:

      How do I control the size of the filter inputText field?
      (It is currently too wide for my needs.)

      When I select a column header, I am presented with an option to select which columns to display.
      How to I add text next to the checkBox to identify the column that I am selecting/deSelecting?


      Thanks in advance!

      Paul

        • 1. Re: ExtendedDataTable - FilterText
          Paul Baker Apprentice

          I was able to adjust the size of the filter inputText by specifying a headerClass for the column and adding a css style with an input element specification.. However I want to use .rich-filter-input....

          <rich:column id="docIssueNum" sortable="true" headerClass="extendedTableHdr"
           sortBy="#{item.docIssueNum}" filterBy="#{item.docIssueNum}"
           filterEvent="onkeyup" width="170px">
           <f:facet name="header">
           <h:outputText value="Issue Number" />
           </f:facet>
           <h:inputText value="#{item.docIssueNum}"
           styleClass="tableTextInput" size="12" />
          </rich:column>


          css file:

          .extendedTableHdr input {
           width: 80px;
          }


          I had added the following to the web.xml file:

          <context-param>
           <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
           <param-value>enable</param-value>
          </context-param>


          Hoping that this would enable the use of: .rich-filter-input

          What is needed to use the selector .rich-filter-input?

          .extendedTableHdr .rich-filter-input {
           width: 80px;
          }









          • 2. Re: ExtendedDataTable - FilterText
            Piotr Kawiak Newbie

            To use .rich-filter-input you need to download and build the lastest version of extDt as we have missed that in our component. Right now that class is added to the proper place and can be used to customise filter inputs.

            • 3. Re: ExtendedDataTable - FilterText
              Paul Baker Apprentice

              Thanks pkawiak -

              Does anyone know the answer to my second question above:

              When I select a column header, I am presented with an option to select which columns to display. How to I add text next to the checkBox to identify the column that I am selecting/deSelecting?


              Thanks in Advance...

              PB

              • 4. Re: ExtendedDataTable - FilterText
                Piotr Kawiak Newbie

                There is a 'label' attribute of the rich:column. This will be the text displayed both in the menu (hiding/showing columns) and in the grouping row.

                • 5. Re: ExtendedDataTable - FilterText
                  Paul Baker Apprentice

                   

                  "pkawiak" wrote:
                  There is a 'label' attribute of the rich:column. This will be the text displayed both in the menu (hiding/showing columns) and in the grouping row.


                  Perfect! Thank you!