2 Replies Latest reply on Jun 4, 2010 9:24 AM by orkun

    not clear on rich:gmap

    orkun

      hello

       

      I am dealing with rich:gmap.

       

      In " RichFaces Live Demo." I am not clear on some code fragment .

       

      <a4j:jsFunction name="showPlace"  data="#{gmBean.currentPlace}" reRender=":zoom"
                           oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
                         <a4j:actionparam name="id" assignTo="#{gmBean.currentId}"></a4j:actionparam>
         </a4j:jsFunction>

       

       

      what sort of data "gmBean.currentPlace" is ? Is it a list that contains lat,long, etc.. ?

       

       

      regards

        • 1. Re: not clear on rich:gmap
          ilya_shaikovsky

          jboss.org/richfaces/demos - you could checkout full demo sources.

          • 2. Re: not clear on rich:gmap
            orkun

            thank you

             

            I looked the source code it was a list.

             

            One more point I want to understand is:

             

            <a4j:jsFunction name="showPlace"  data="#{gmBean.currentPlace}" reRender=":zoom"     
                                 oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">

             

            Is  "data=#{gmBean.currentPlace}" in a4j:jsFunction being passed to javascript in oncomplete ... as data.lat, data.lng ?

             

            in other words, is list passed to javascript by data variable ?

             

             

            regards