2 Replies Latest reply on Aug 22, 2007 7:03 AM by alex rozario

    Using datafilterslider

    alex rozario Newbie

      Hi all.
      Happy to see you all here.

      Well

      In my project i want to use DataFilterSlider's.
      But i dont have enough help to use that.
      Can you please help me to do that.

      How to use DataFilterSlider in my project.

      I have gone thro the richfaces developers guide, but still i am in a confused state and cant use datafilterslider.

      Pleae help me.

      by,
      Alex

        • 1. Re: Using datafilterslider
          Ilya Shaikovsky Master

          please explore the live demo example from the beginning.

          • 2. Re: Using datafilterslider
            alex rozario Newbie

            thank you ilya
            thank you for your response.

            I have tried that but i cant understand.
            please help me.
            i will post my coding here.
            and please make me aware where i made mistake..

            <a4j:form id="form1" reRender="table-body" ignoreDupResponses="true" requestDelay="100">
             <a4j:region id="stat1">
            
             <a4j:outputPanel id="slider-body">
             <rich:dataFilterSlider for="prodList" forValRef="makeList.list[pro.tblProductsCollection]" filterBy="getRating" manualInput="true" onSlide="true" onChange="true" storeResults="true" trackStyleClass="track" width="100px" styleClass="slider-container" startRange="0" endRange="10" increment="1" rangeStyleClass="range" trailer="true" trailerStyleClass="trailer" handleStyleClass="handle" handleValue="9" id="slider_rating">
             </rich:dataFilterSlider>
             </a4j:outputPanel>
            
             <a4j:outputPanel id="table-body">
             <rich:dataTable width="483" id="prodList" rows="10" columnClasses="col" value="#{makeList.list[pro.tblProductsCollection]}" var="category">
             <h:column>
             <h:outputText value="#{category.productId}" />
             </h:column>
             ..
             ..
             ..
             <h:column>
             <h:outputText value="#{category.rating}" />
             </h:column>
             </rich:dataTable>
             </a4j:outputPanel>
             </a4j:region>
            </a4j:form>


            Note : here i get list as an collection so i used makelist to convert them. and it works fine and displays the result. thats not a problem at all.

            And in my session class i have a function which will make this list in the beginning itself

            @Begin(join=true)
             public void selectProduct() {
             if (id != null) {
             pro = em.find(TableProduct.class, id);
            }}


            here the id is from the previous page and so it retrieves the product details and sends to the display page..

            NOTE: Other than DataFilterSlider everything is works fine in my codings..

            Can you please help me.

            What should i do now.

            please help me.

            thank you,

            by
            Alex