<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
Original issue reported on code.google.com by
glory...@gmail.com
on 24 Feb 2010 at 2:02