Closed GoogleCodeExporter closed 9 years ago
I've just found the Groups discussion and the following;
http://groups.google.com/group/gmaps4jsf-dev/browse_thread/thread/f5b436fa8e670f
89
So this is the same problem; I didn't realise the backing object was updated
with Lat/Lon; however it appears as though the longitude of the backing object
is updated with the old value, not the new value. As I've outlined above, there
is no way to identify the ValueChangeEvent back to the backing object, and the
object is updated after the ValueChangeEvent so there is no easy way to persist
the change.
Original comment by det.scot...@gmail.com
on 30 Aug 2010 at 7:15
You can use the (jsVariable) to differentiate between markers, and inside your
event listener:
public void moveMarker(ValueChangeEvent event) throws AbortProcessingException {
MarkerValue value = (MarkerValue) event.getNewValue();
Marker source = (Marker) event.getSource();
String markerID= source.getJsVariable();
// Here use the marker id ...
}
Please use GMaps4JSF 1.1.4 preRelease2 snapshot1 as it contains a major fix for
event handlers inside ui:repeat:
http://gmaps4jsf.googlecode.com/files/gmaps4jsf-1.1.4-preRelease2-snapshot1.jar
Original comment by Hazem.sa...@gmail.com
on 30 Oct 2010 at 9:18
Original issue reported on code.google.com by
det.scot...@gmail.com
on 30 Aug 2010 at 6:44