2 Replies Latest reply on Jul 30, 2010 3:14 PM by berndpixel

    Data table. Column filter. set method not called. only get.

    berndpixel

      I try to filter rich:column but the setter method is never called but the get method ist called.

                                 filterEvent="onkeyup" filterValue="#{administratorsDataModel.adminName}"                         sortBy="#{'username'}" >                                                                              

      The sort request is send. I checked the request params:

      AJAX:EVENTS_COUNT: 1AJAXREQUEST: _viewRootj_id5: j_id5j_id5:idAdminTable: fspj_id5:idAdminTable:idCol2fsp: Uj_id5:idAdminTable:idCol3fsp:javax.faces.ViewState: j_id2

      I tried to debug the apply request value phase but when I come to the decoding for the colum the source code for org.richfavces.component.html.HtmlColumn is missing in my downloaded sources.
      Where could I get it?

      Because I thougt I might have a bug in my application I copied the sample rich.faces.demo.capital into my project but there I got the same problem.So I think it is a problem with my environment, but I have no clue what/where to look for.Could me give anybody give a hint, please !!!

      I use: Facelets 1.1.4 JSF 1.2 (Sun implementation) RichFaces 3.3.3 FinalSpring 3.0.3Hibernate 3

        • 1. Re: Format corrected: Data table. Column filter. set method not called. only get.
          berndpixel

          Hello,

           

          sorry for the messy format in the original post!

           

          I try to filter rich:column but the setter method is never called but the get method ist called.

           

          <rich:column id="idCol2" filterBy="#{'username'}"

                           filterEvent="onkeyup"  filterValue="#{administratorsDataModel.adminName}"

                           sortBy="#{'username'}"  > 

           

          The sort request is send. I checked the request params:

           

          AJAX:EVENTS_COUNT: 1

          AJAXREQUEST: _viewRoot

          j_id5: j_id5

          j_id5:idAdminTable:  fsp

          j_id5:idAdminTable:idCol2fsp:  U

          j_id5:idAdminTable:idCol3fsp:

          javax.faces.ViewState: j_id2

           

          I tried  to debug the "apply request values" phase but when I come to the decoding of the colum the source code for  org.richfavces.component.html.HtmlColumn is missing in my downloaded  sources. Where could I get it?

           

          Because I thougt I might have a  bug in my application I copied the sample rich.faces.demo.capital into  my project but there I got the same problem.

          So I think it is a problem  with my environment, but I have no clue what/where to look for.

          Could anybody give me a hint, please !!!

           

          I use:

          Facelets 1.1.4 JSF

          1.2 (Sun implementation)

          RichFaces 3.3.3

          FinalSpring 3.0.3

          Hibernate 3

           

          Bernd

          • 2. Re: Format corrected: Data table. Column filter. set method not called. only get.
            berndpixel

            I found the reason.

             

            There is a dicussion in the web about undocumented Facelet parameters, eg.

            http://datenschwanz.net/2010/02/01/facelets-build_before_restore-brokenness/
            http://seamframework.org/Community/HereIsHowToFixViewTimedOutOnLoginPage.

             

            Mojorra complains sometimes about these parameters if they are not set.

             

            So I've set these parameters to

            <context-param>
                    <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
                    <param-value>true</param-value>
            </context-param>
              <context-param>
                    <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
                    <param-value>true</param-value>
              </context-param>

             

            What follows is, that RichFaces does not work anymore as expected - but only sometimes. I still don't know why.

            So I removed these parameters and every thing works fine.

             

            I still have two questions:

            1) what is the reason, that RichFaces does not work propper with these parameters?

            2) Where is the source code for RichFaces implementation HtmlColumns.java?

             

            Bernd