Sentinel Layout: Gmap is not display

UI Components for JSF
Post Reply
thodt6
Posts: 8
Joined: 04 Apr 2014, 12:11

07 Apr 2017, 04:35

Hi all

Any one face the problem with Gmap using with Sentinel Layout? Please help if you have any solution


My xhtml code is here:

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
template="/WEB-INF/templateadmin/template.xhtml">
<!-- <f:metadata>
<f:event type="preRenderView" listener="#{userSessionBean.verifyAccessPage}"/>
</f:metadata> -->
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript" ></script>
<ui:define name="content">
<div class="Container100">
<div class="ContainerIndent">
<div class="EmptyBox20"></div>
<h:form>
<p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:100%;height:400px" />
</h:form>
</div>
</div>
</ui:define>
</ui:composition>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 Apr 2017, 08:40

Do you have an error on browser console? Also, please add map script into <ui:define name="head">.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests