ICEfaces
  1. ICEfaces
  2. ICE-6596

Gmap client-key error dialog breaks ICEfaces JS loading on the page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description

      When an IF 2 app. has the com.icesoft.faces.gmapKey context param defined in it's web.xml, the ICEfaces bridge will load the gmap bootstrap JS into the head as part of each initial page request so it is there in case the gmap component is used or dynamically introduced on that page. This is necessary to work-around a JSF issue with updating head region contents dynamically.

       <context-param>
              <param-name>com.icesoft.faces.gmapKey</param-name>
              <param-value>ABQIAAAADlu0ZiSTam64EKaCQr9eTRTOTuQNzJNXRlYRLknj4cQ89tFfpxTEqxQnVWL4k55OPICgF5_SOZE06A
              </param-value>
          </context-param>

      In any case, when this param is defined, and the application inits the gmap component on the page, if the gmap key value does not match the URL/host-name for the application, the gmap JS will display an error dialog. When this occurs, it interferes with the normal loading of the rest of the ICEfaces / ACE components, etc. JS on that page.

      We should investigate to see if it may be possible to load the ICEfaces JS resources first, and leave the gmap init to the end so that if it fails with the warning, it doesn't break other functionality on the page.



        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          Investigate v3 API to see if the current API has the same alert behavior.

          Also, investigate the API to see if this behavior is configurable.

          Show
          Ted Goddard added a comment - Investigate v3 API to see if the current API has the same alert behavior. Also, investigate the API to see if this behavior is configurable.
          Hide
          Mircea Toma added a comment -

          Yep, v3 doesn't require a key anymore: http://googlegeodevelopers.blogspot.com/2009/05/announcing-google-maps-api-v3.html .

          "No keys required. You can now copy 'n paste code easily or embed in RSS readers, for example, without getting key errors."

          Show
          Mircea Toma added a comment - Yep, v3 doesn't require a key anymore: http://googlegeodevelopers.blogspot.com/2009/05/announcing-google-maps-api-v3.html . "No keys required. You can now copy 'n paste code easily or embed in RSS readers, for example, without getting key errors."
          Hide
          Mircea Toma added a comment -

          I tried our Gmap component with v3 library but the map is not rendered.

          Show
          Mircea Toma added a comment - I tried our Gmap component with v3 library but the map is not rendered.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: