2 Replies Latest reply on Dec 27, 2011 3:14 PM by Guybrush Threepwood

    rich:gmap

    Guybrush Threepwood Newbie

      <rich:gmap id="gmppe" style="width:500px" lat="36.836578" lng="10.231651" zoom="17"

                             gmapKey="AIzaSyDAFC0glGjr201lq1Mnhqk-fmWj1cRcimU" />

       

      I don't understand what I forgot...:-|

       

      Another thing:

       

      <f:view contentType="text/html">

      ...

      </f:view>

       

       

      If I insert this code I receive this error: "Attribute contentType invalid for tag view according to TLD"

       

      What can I do? This is rest of page:

       

      <%@ page pageEncoding="UTF-8" %>

      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

      <%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

      <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

       

      <rich:panel header="#{msg.patient} - ID: #{extendedDataTableBean.singleSelectedPat.id}"

                  id="info_pat" style="width: 250px; height: 290px">

          <rich:tabPanel switchType="ajax" width="100%" height="230">

       

              <f:view contentType="text/html">

              <rich:tab label="#{msg.map}">

                  <rich:gmap id="gmppe" style="width:500px" lat="36.836578" lng="10.231651" zoom="17"

                             gmapKey="AIzaSyDAFC0glGjr201lq1Mnhqk-fmWj1cRcimU" />

              </rich:tab>

              </f:view>

              <rich:tab label="#{msg.details}">

                  <h:panelGrid columns="2" columnClasses="cl1, cl2">

                      <h:outputText value="#{msg.name}: "/>

                      <rich:inplaceInput id="edited_name" defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.nome}"/>

                      <h:outputText value="#{msg.surname}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.cognome}"/>

                      <h:outputText value="#{msg.Username}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.username}"/>

                      <h:outputText value="#{msg.Password}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.password}"/>

                      <h:outputText value="#{msg.birthday}: "/>

                      <rich:calendar value="#{extendedDataTableBean.singleSelectedPat.dataNascita}" popup="true"

                                     showInput="false" showApplyButton="true"

                                     direction="bottom-left" jointPoint="bottom-left" />

                      <h:outputText value="#{msg.birthplace}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.luogoNascita}" >

                      </rich:inplaceInput>

                      <h:outputText value="#{msg.adress}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.indirizzo}"/>

                      <h:outputText value="CAP: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.cap}"/>

                      <h:outputText value="#{msg.longitude}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.longitudine}"/>

                      <h:outputText value="#{msg.latitude}: "/>

                      <rich:inplaceInput defaultLabel="#{msg.charters_slide}"

                                         value="#{extendedDataTableBean.singleSelectedPat.latitudine}"/>

                  </h:panelGrid>

                  <rich:spacer width="100%" height="5px" />

                  <h:panelGrid columns="2" columnClasses="b2,b2" width="100%">

                      <a4j:commandButton value="#{msg.serch}" disabled="#{extendedDataTableBean.updatePatButtonDisable}" reRender="all"

                                         action="#{extendedDataTableBean.downloadContent()}" />

                      <a4j:commandButton value="#{msg.update}" disabled="#{extendedDataTableBean.updatePatButtonDisable}" reRender="all"

                                         action="#{extendedDataTableBean.updatePatient}" />

                  </h:panelGrid>

              </rich:tab>

       

          </rich:tabPanel>

      </rich:panel>