1 2 Previous Next 18 Replies Latest reply on Jan 5, 2011 6:24 AM by deeps83 Go to original post
      • 15. Re: Ajax push not working.
        ilya40umov

        I think that in order to make it work you should send an event to listener like this when chartPanelGrid has changed:

        listener.onEvent(new EventObject(this));
        • 16. Re: Ajax push not working.
          deeps83

          I have one table for which on row select I call one method as below :

           


          <rich:extendedDataTable height="#{myhome.getTableHeight()}"
                                          value="#{myhome.monitorlist}" var="mVar" sortMode="single"
                                          rowClasses="row1, row2"
                                          noDataLabel="#{myhome.nodatalblmonitors}"
                                          selection="#{myhome.selectedRow}"
                                          rendered="#{myhome.rendermonitortable}" id="monitortableid"
                                          ..............................>

           


                                          <rich:column ..... />

           


                                          <a:support reRender="chg,mhpush"
                                              action="#{myhome.getMonitorObj}" event="onselectionchange" />
                                         
                                      </rich:extendedDataTable>

           

          public void getMonitorObj() {
                  ...........
                              getAgentCharts();
                          ..........
              }
             
              private void getAgentCharts()
                          throws Exception {
                      .......................
                     
                      chartPanelGrid.getChildren().clear();
                      chartPanelGrid.getChildren().addAll(

                              ChartUiUtils.createChartTabs(agentChartList    );
                    setMhPushEnabled(true);                        

                     mhChartListener.onEvent(new EventObject(this));
             
                  }

          After this the getAgentCharts fn will be getting called on some other back end event and updating the panelGrid.

           

          But the panleGrid is not being rerendered properly on push.

           

          Thanks,

          Deeps.

          • 17. Re: Ajax push not working.
            ilya40umov

            Looks like that everything is OK in your code so I don't have any other ideas. I guess that possibly RF developers could answer you.

             

            P.S. Could you wrap your panelGrid into another tag and try to reRender it instead of the panelGrid?

            • 18. Re: Ajax push not working.
              deeps83

              Even that also I have tried.Wraping inside an outputpanel.

               

              Shall I get some suggestions from RF developers.

               

              Thanks,

              Deeps.

              1 2 Previous Next