8 Replies Latest reply on Apr 11, 2008 12:56 PM by sergeysmirnov

    reRedening of rich:gmap

      If in a action i need to rerender rich:gmap, its not comming ...
      and for safai and mozilla showing blank page (with loading status)..
      what may be the reason..how to solve this?
      thanx in advance..

        • 1. Re: reRedening of rich:gmap

          is this a bug??? please help..

          • 2. Re: reRedening of rich:gmap

            No, it is not a bug. It is a nature of the original Google GMap widget rich:gmap based on. It does not allow to work in the Ajax context at all. Gmap API is enough to make any manipulation with the map by the API call. Use them.

            • 3. Re: reRedening of rich:gmap

              but sometimes it is need to rerender the top element of gmap so there how can i handle it..like in side a datatable gmap is there and i need to rerender the datatable..

              • 4. Re: reRedening of rich:gmap

                you need to avoid it. no workaround. The same for tabPanel switchType="ajax" and other components with built-in Ajax support. Gmap will not work there?

                • 5. Re: reRedening of rich:gmap

                   

                  you need to avoid it. no workaround. The same for tabPanel switchType="ajax"


                  I have a tabPanel with switch type "ajax" but the panel where the gmap is displayed uses has switch type "client"

                  <rich:tabPanel switchType="ajax">
                   <rich:tab switchType="client">
                   <rich:gmap />
                  ...
                  


                  this should work, shouldn't it?

                  • 6. Re: reRedening of rich:gmap

                    i can handle the rerendering problem in IE , suppose of a4j:support action doing something and when returning back in page oncomplete i am initializing the map, this is working fine in IE but not in other..
                    it should be better is there is some solution to handle the rerendering directly, as we can't minimize the scope of requirement..

                    • 7. Re: reRedening of rich:gmap

                      if you only need to update markers or the location on your map, there is no need for rerendering the map: all this can be done via the gmap java-script api

                      why do you insist on rerendering?
                      what do you want to du?

                      • 8. Re: reRedening of rich:gmap

                         

                        "user1234" wrote:
                        i can handle the rerendering problem in IE , suppose of a4j:support action doing something and when returning back in page oncomplete i am initializing the map, this is working fine in IE but not in other..
                        it should be better is there is some solution to handle the rerendering directly, as we can't minimize the scope of requirement..

                        I do not thing your requirement says that you must use RichFaces' reRender, but not Google Map API to work with map. It sounds too weird.