Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map shows wrong values. Circle/marker not displaying what its supposed to display #201

Open
GoogleCodeExporter opened this issue Mar 23, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Created a wizard page (JSF), based on a conversation scoped bean.

1. Add a JSF <h:selectOneMenu that holds a few values.
2. Add a JSF <m:map with one marker and with one circle overlay with an 
included <m:htmlInformationWindow tag.
2. Add a JSF <h:commandButton that triggers an ActionEvent to step through the 
wizard.

What is the expected output? What do you see instead?
1. Expected output: When you first load the page... A postconstruct annotation 
triggers a default lat/long for the <m:map, circle, marker lat/long values. 
When located in step 1, the map displays the correct values. When you step to 
the 2nd step its supposed to recalculate the values in the ActionEvent based on 
the h:selectOneMenu value.
2. Seen instead: Marker returned is not located in the correct place,
need to step through the wizard or better to refresh the page in order to get 
the correct display.

What version of the product are you using? On what operating system?
gmaps4jsf 3.0.0,  JSF 2.1    Ubuntu 12.04


Please provide any additional information below.
On step 1 you choose the location and continue with the button that triggers 
the ActionEvent. So on submit (step 1) values are processed based on the 
selection and new long/lat values are calculated. But the new values are not 
displayed correctly on the map. Circle overlay shows something else and marker 
some other position (one step behind). I need to manually refresh the screen to 
get it correct. Even so when i continue through the wizard it shows different 
values on each step.
NOTE that if i display the map (panelgroup rendered) only on step 2 it works 
correct. 

Something to do with the conversation scope? Refreshing the UI gmap? Dont know, 
maybe i'm doing something wrong also...

Thanks

Original issue reported on code.google.com by [email protected] on 9 Sep 2013 at 8:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant