darshakshah1988 / gmaps4jsf

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

Markers getting last N data from database independent of filtered data #206

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Retrieve a List filled with e.g. 5 objects (this list must be used as the 
address attribute of the map), so it appear on the map
2. Filter this same List so it gets e.g. only 2 from these objects: the first 
and the third (this.listAttribute = new ArrayList<>(); 
this.listAttribute.add(object);)
3. Update the map component

What is the expected output?
A: Only the addresses of the new list.

What do you see instead?
A: The last two addresses of the first list.

What version of the product are you using?
A: 3.0.0

On what operating system?
A: Linux (Ubuntu 14.04)

Please provide any additional information below.

If the objects are printed in the console I can see the list with the 2 
filtered objects, correctly, but the map can't update the markers. Once it 
displayed markers in determined locations the first time, it seems they're 
being saved on memory. So using the example of getting 3 locations, it will 
display the last 3 objects from the first List, that is, the one which was 
loaded in the address attribute after opening the page with the map, 
independently of what was filtered after that.

Original issue reported on code.google.com by rodrigos...@gmail.com on 18 Aug 2014 at 11:19