emnadridi / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 0 forks source link

M:Marker with EL #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<m:marker 
    latitude="#{location.latitude}" 
    longitude="#{location.longitude}" 
    draggable="true" 
    submitOnValueChange="true" 
    valueChangeListener="#{actionBean.doMarkerMoved}"/> 

public void doMarkerMoved(ValueChangeEvent? event){ 
    String newLatLngStr = event.getNewValue().toString(); 
    //get newlat and newlng from the newLatLngStr 
    String newLat = ...
    String newLng = ...
    location.setLatitude(newLat); 
    location.setLongitude(newLng); 
    //... 
} 

What steps will reproduce the problem?
1. at the beginning  
   backing bean:    lat:10, lng:10 
   m:marker:        lat:10, lng:10 
2. after i drag the marker
   backing bean:    lat:20, lng:20 
   m:marker:        lat:20, lng:20 
3. after i change the backing bean's value:
   backing bean:    lat:30, lng:30 
   m:marker:        lat:20, lng:20 

What is the expected output? What do you see instead?
-the excepted output of step 3 should be
   backing bean:    lat:30, lng:30 
   m:marker:        lat:30, lng:30 
- but the result is as below, which is wrong
   backing bean:    lat:30, lng:30 
   m:marker:        lat:20, lng:20 

What version of the product are you using? On what operating system?
-version:gmaps4jsf-1.1.3.jar

Please provide any additional information below.

Original issue reported on code.google.com by glory...@gmail.com on 24 Feb 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Fixed in both 1.1.3 and 1.1.4 snapshot.

Thanks for reporting this bug.

Original comment by Hazem.sa...@gmail.com on 24 Feb 2010 at 10:54