12 Replies Latest reply on Feb 4, 2009 5:52 PM by grzechom

    filterBy lose focus!

    lmk

      Hi all,

      after using filter with onkeyup event the inputText lose focus,
      cannot be reproducted on live demo (3.2.1.GA)!

      RF 3.2.2.CR1, myfaces 1.2.2.

      thanks!

        • 1. Re: filterBy lose focus!
          ilya_shaikovsky

          1) with internal filtering focus will not be lost
          2) with external filtering using support - use focus attribute as it shown at demosite. ;)

          • 2. Re: filterBy lose focus!
            lmk

             

            "ilya_shaikovsky" wrote:
            1) with internal filtering focus will not be lost
            2) with external filtering using support - use focus attribute as it shown at demosite. ;)


            I talk about internal filtering

            • 3. Re: filterBy lose focus!
              lmk

              Hi all,

              I still get the problem on 3.2.2.GA when I filter dataTable column the inputText lose focus..
              on the last demo site version it work's, but it use sun jsf 1.2

              NB: RF 3.2.2.GA AND myfaces 1.2.2.

              • 4. Re: filterBy lose focus!
                nbelaevski

                Client-side behavior should not depend on implementation that is used. Please post full page code.

                • 5. Re: filterBy lose focus!
                  lmk

                  I use server side state saving

                  <rich:dataTable var="list" value="#{testBean.person}">
                  
                   <rich:column filterBy="#{list.name}" filterEvent="onkeyup">
                   <f:facet name="header">
                   Name
                   </f:facet>
                   <h:outputText value="#{list.name}" />
                   </rich:column>
                   <rich:column filterBy="#{list.email}" filterEvent="onkeyup">
                   <f:facet name="header">
                   Email
                   </f:facet>
                   <h:outputText value="#{list.email}" />
                   </rich:column>
                  
                   </rich:dataTable>
                  





                  • 6. Re: filterBy lose focus!
                    konstantin.mishin

                    I cannot reproduce this problem. Attach war, please.

                    • 7. Re: filterBy lose focus!
                      lmk

                      war is ready, how can I send it? dont see your mail adress .

                      • 8. Re: filterBy lose focus!
                        ilya_shaikovsky

                        kmishin at exadel dot com

                        and

                        ishaikovsky at exadel dot com

                        Will wait for your update.

                        • 9. Re: filterBy lose focus!
                          lmk

                           

                          "ilya_shaikovsky" wrote:
                          kmishin at exadel dot com

                          and

                          ishaikovsky at exadel dot com

                          Will wait for your update.


                          war sent friday..

                          thanks!

                          • 10. Re: filterBy lose focus!
                            ilya_shaikovsky

                            yes.. get your email. will be investigated and updated there.

                            • 11. Re: filterBy lose focus!
                              konstantin.mishin
                              • 12. Re: filterBy lose focus!
                                grzechom

                                Hi,

                                i had the same issue and I noticed that losing focus is caused by <a4j:outpuPanel ajaxRendered="true"> which my <rich:dataTable> was surrounded.

                                When I removed it, it started to work as on the demo site.
                                Unfortunately, I have many a4j:support and a4j:commandButton elements on my page and outputPanel was great to deal with ajax request and not setting reRender for all this component.

                                Do you have aby idea why it does cause the problem? Maybe there are double requests or sth?

                                Will be very thankful for any solution,
                                Matthew