Markers getting last N data from database even if the addresses in the collection are different

29 views
Skip to first unread message

Rodrigo Sieja Bertin

unread,
Aug 15, 2014, 12:11:24 PM8/15/14
to gmaps4...@googlegroups.com

marker with one address being displayed in a different location - 1

The image above demonstrates the problem. A marker with address attribute pointing to Cotia/SP is being displayed in Curitiba/PR.

When I select a state in a combobox the attribute searchType is set to "State" and the cities combobox is populated.

XHTML:

<m:map id="mapaGoogle"
       
width="900px"
       
height="450px"
       
latitude="22"
       
longitude="10"
       
jsVariable="map1"
       
zoom="1"
       
autoReshape="true"
       
partiallyTriggered="true">
   
<c:forEach var="a" items="#{dashboardMB.loadedAddresses}">
       
<m:marker address="#{a}">
           
<m:htmlInformationWindow htmlText="#{a}" />
       
</m:marker>
   
</c:forEach>
</m:map>

Method loadedAddresses:

public List<String> getEnderecosCarregadosString() {
   
this.loadedAddresses = null;
   
if (this.searchType != null && this.searchType.equals("State")) {
       
this.loadedAddresses = this.enterpriseBean
           
.getAddressByUserIdAndStateIdNativeQuery(
               
this.getUserId(), this.state.getId()
           
);
   
}
   
return loadedAddresses;
}

When I do the first search when opening the page it's OK, but the problem happens when I do another search afterwards. Also, I can get the following result (if I search for São Paulo first, then Paraná):

marker with one address being displayed in a different location - 2

I guess some object is not being cleaned, though I set loadedAddresses to null.

Hazem Saleh

unread,
Aug 17, 2014, 6:11:36 PM8/17/14
to gmaps4jsf-dev
Hi Rodrigo,

Which GMaps4JSF version are you using?


--
You received this message because you are subscribed to the Google Groups "gmaps4jsf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
To post to this group, send email to gmaps4...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev.
For more options, visit https://groups.google.com/d/optout.



--
Hazem Saleh

Author of Pro JSF and HTML5 book:
http://www.amazon.com/Pro-JSF-HTML5-Building-Components/dp/1430250100/

Author of JavaScript Unit Testing book:
http://www.amazon.com/dp/1782160620/

Co-author of (The Definitive Guide to Apache MyFaces and Facelets) book:
http://www.amazon.com/-/e/B002M052KY

DeveloperWorks Contributing Author
https://www.ibm.com/developerworks/mydeveloperworks/blogs/hazem/entry/ibm_developerworks_contributing_author?lang=en_us

An Apache committer, IBMer, and a technical speaker

Twitter: http://www.twitter.com/hazems

Rodrigo Sieja Bertin

unread,
Aug 18, 2014, 3:31:38 PM8/18/14
to gmaps4...@googlegroups.com, haz...@apache.org
3.0.0 version

Germeier, Christoph

unread,
Jul 14, 2015, 6:42:38 PM7/14/15
to gmaps4...@googlegroups.com, haz...@apache.org

Dear All,

 

What actually happened to the  gmaps4JSF project. It seems to have terminated around 2013/14. All links to the demos are broken.

Is there any other continuation or has it been included in any other framework?

 

Kind regards

 

Christoph Germeier

 

 

 

Hazem Saleh

unread,
Jul 14, 2015, 7:03:07 PM7/14/15
to Germeier, Christoph, gmaps4...@googlegroups.com
Hi Germeier,

No, the project is still active and we plan to make a new release by end of this year.

We have a hosting problem and will be resolved soon so everyone can check the examples again.
--
Hazem Saleh

Hazem Saleh

unread,
Aug 15, 2015, 7:46:49 PM8/15/15
to Germeier, Christoph, gmaps4jsf-dev
All the hosting problems are solved now.

Mashups4JSF and GMaps4JSF demos are back to life now:
http://www.mashups4jsf.com



On Wed, Jul 15, 2015 at 5:44 PM, Germeier, Christoph <christoph...@jki.bund.de> wrote:

Thanks for your prompt reply.

So I hope for the best. I really like to use it.

 

Kind regards

 

Christoph Germeier




--
Hazem Saleh

Hazem Saleh

unread,
Aug 15, 2015, 7:47:53 PM8/15/15
to Germeier, Christoph, gmaps4jsf-dev
And again are welcome Germeier.

Our commitment to GMaps4JSF comes from our passion to JSF and Open Source development in general.
--
Hazem Saleh

Reply all
Reply to author
Forward
0 new messages