If your tags are not translated, most likely this is because the jar file is in the wrong place. Something escapes your webapp to find it. How do you build it?
Place the last library jar in the WEB-INF / lib web application folder.
Your m: card must be inside the h: form tag.
Due to your version of the library, you have to include javascript code:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true"> </script>
Take a look at this simple gmaps4jsf2 library example .
Do you have a very simple configuration?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:m="http://code.google.com/p/gmaps4jsf/"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/base-template.xhtml"> <ui:define name="js"> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true"> </script> </ui:define> <ui:define name="title"> This is the new title </ui:define> <ui:define name="content"> <h1>Simple Map with a marker and an InfoWindow</h1> <h:form id="form"> <m:map width="500" height="450px" latitude="37.13" longitude="22.43" enableScrollWheelZoom="true"> <m:marker> <m:htmlInformationWindow htmlText="This is Sparta, Greece"/> </m:marker> </m:map> </h:form> </ui:define> </ui:composition> </html>
Hello,
source share