2 Replies Latest reply on Jun 19, 2008 10:50 AM by shandor

    How to reRender stuff dynamically

    shandor

      Maybe someone has an idea how to do the following:

      In the Invoke Application lifecycle phase ( after an ajax request ) I want to cause a certain component to rerender. This component is not included in the reRender property of the component which initated the ajax request.

      Thanks

        • 1. Re: How to reRender stuff dynamically
          shandor

          ...No ideas ???
          Someone ?
          .
          .
          .

          So far I found an undocumented class :
          org.ajax4jsf.context.AjaxContextImpl
          that has some methods which seem relevant...

          • 2. Re: How to reRender stuff dynamically
            shandor

            I have a solution!!!
            So anyone who is intersted in reREndering components programatically here it goes:

            FacesContext context = FacesContext.getCurrentInstance();
             UIViewRoot uiroot = context.getViewRoot();
            
             UIComponent tbl = uiroot.findComponent("eazap:tabbed_pane_list");
             AjaxContext.getCurrentInstance(FacesContext.getCurrentInstance()).addComponentToAjaxRender(tbl);