-
Notifications
You must be signed in to change notification settings - Fork 102
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
problem with OpenStretMap #1043
Comments
I found the error: package net.bootsfaces.component.openStreetMap; in the class: public class OpenStreetMapRenderer extends CoreRenderer in the method: public void encodeEnd(FacesContext context, UIComponent component) throws IOException { you have: String **clientIdRaw** = openStreetMap.getClientId();
String **clientId** = clientIdRaw.replace(":", "");
...
rw.writeText("var " + clientId + "_map = L.map('" + **clientId** + "', {center: [" +
openStreetMap.get...... In my opinion, the correct way will be: rw.writeText("var " + clientId + "_map = L.map('" + **clientIdRaw** + "', {center: [" + openStreetMap.get...... |
¡Gracias por tu análisis! |
Acabó reproducir tu bug. Parece que tu solución funciona bien. Es una sorpresa, por qué librerías como jQuery no funcionan con los ids de JSF. |
He cargado BootsFaces 1.4.1-SNAPSHOT al Maven Central. Mira al #369 para aprender como descargarlo en tu project. ¿Quieres probarlo? |
…on to make sure the feature isn't broken again in future
Done and documented. |
if I use a <b:openStreetMap> inside of a form it don work, the message say:
and I inspect the script and found :
The bug is that the id container is badly built, the correct will be
sorry if my english is bad.
Al utilizar un <b:openStreetMap> dentro de un form me da problemas, el script que se genera automáticamente está mal, conforme se indica en las líneas superiores, favor su colaboración solventado este error.
This is my code:
Este es el código utilizado:
The text was updated successfully, but these errors were encountered: