javascript - Putting Primeface dataTable inside Google Maps API InfoWindow -


i have google map several markers. each marker has infowindow pops datatable inside. however, datatable pops doesn't show updated content marker being clicked, unless close panel page on. below map, have datatable , displays correct information. information inside datatable should change, depending on marker clicked.

i added onclick event markers , actionlistener, have function initalizes values datatable pop (the same 1 shown below map). again, problem datatable pops not show updated marker values unless close , reopen panel page on. guess datatable not being updated in dom tree?

here code: thankyou time. been stuck hours! this.div_ each marker on map. myremote primeface remote command populates bean values datatable.

google.maps.event.adddomlistener(this.div_, 'click', function(event) {              var ids_jsonstring = json.stringify(ids_);              myremote([{                  name: 'ids_',                  value: ids_jsonstring              }]); //populatetables              updatetable(); //print bean              infowindows.setposition(temp_center);              infowindows.setcontent(document.getelementbyid("dbwest:form_:normaldatatable"));              infowindows.open(map); 


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -