4 Replies Latest reply on Apr 21, 2011 3:07 AM by ilya_shaikovsky

    RichFaces 4.0 Table selection problem IE7 (ajax)

    cojocb

      Hello everyone,

       

      I've implemented a selectable table similar with the one from the show case:

      http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=extendedDataTable&sample=exTableSelection&skin=blueSky

       

      In Firefox is working fine, but not on Internet Explorer 7. On the same browser the demo from show case is working.

      Copying the same implementation in my application of the demo is still not working.

       

       

      When selection is changed the selectionListener method is invoked in both of the browsers, but for the Internet explorer the selection

      attribute is always empty:

       

          public void selectionListener(AjaxBehaviorEvent event) {
              UIExtendedDataTable dataTable = (UIExtendedDataTable) event
                      .getComponent();
              Object originalKey = dataTable.getRowKey();
              selectedItems.clear();
              for (Object selectionKey : selection) {
      

       

       

       

              <rich:extendedDataTable value="#{appCtrl.listData}" var="app"
                  id="appTbl" selectionMode="multiple"
                  selection="#{appCtrl.selection}">
      
                  <a4j:ajax execute="@this" event="selectionchange"
                      listener="#{appCtrl.selectionListener}" />
      

       

       

       

      I suppose it is configuration problem, or maybe a wrong library version.

      Can someone tell me how to fix this?

       

      I'm using:

      RichFaces 4.0.0.Final

      Apache-tomcat-7.0.8

       

      Let me know if you need more information.

       

      Thank you,

      Bogdan

        • 1. RichFaces 4.0 Table selection problem IE7 (ajax)
          ilya_shaikovsky

          please try 4.0.1-snapshot. if not helps please share war file of your project.

          • 2. RichFaces 4.0 Table selection problem IE7 (ajax)
            cojocb

            Hi,

             

            With the 4.0.1-SNAPSHOT is the same behaivour.

            I'll try to have the same dependency version like for the demoshow case and let you know if the problem persist.

             

            10x,

            Bogdan

             

            Ps:i cannot post application war.

            • 3. RichFaces 4.0 Table selection problem IE7 (ajax)
              cojocb

              Hi,

               

              It might be a facelet Bug.

              In this case there is a single form per page which is defined in the main template.

              Having the form defined before the table it solved my problem.

               

              Some code:

               

              main template

              <h:body>

                      <h:form id="frm">

                       ........

               

                          <div id="content">

                              <ui:insert name="content">Default Content</ui:insert>

                          </div>

               

               

              list template

              <ui:composition template="main.xhtml">

                  <ui:define name="content">

              ......

                       <div id="listContent">

                          <ui:insert name="listContent">List Content</ui:insert>

                      </div>

               

               

               

               

              the list (before):

              <ui:define name="listContent">

                          <rich:extendedDataTable value="#{appCtrl.listData}" var="app"

                              id="appTbl" selectionMode="multiple"

                              selection="#{appCtrl.selection}">

               

               

               

               

              the list (after):

              <ui:define name="listContent">

                   <h:form id="tblFrm">

                          <rich:extendedDataTable value="#{appCtrl.listData}" var="app"

                              id="appTbl" selectionMode="multiple"

                              selection="#{appCtrl.selection}">

               

              Greetings,

              Bogdan

              • 4. RichFaces 4.0 Table selection problem IE7 (ajax)
                ilya_shaikovsky

                But consider that nested forms isn't allowed in JSF