ICEfaces
  1. ICEfaces
  2. ICE-10464

ace:gMap - Add an actionListener when a gMapEvent is triggered

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02, 4.0
    • Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      Feature Request: Add a way to notify the server when a gMapEvent is triggered.

      Note on this behavior from Art:

      Implement an actionListener on the ace:gMap component that would fire whenever a Google Maps event, registered via ace:gMapEvent, is triggered. The listener method would receive a special event object that would contain a reference to the gmap component object and a reference to the subcomponent that triggered the event, in this case a marker.

      In rough terms, it would work like this:

      <ace:gMap eventListener="#{bean.gMapEventListener}" .... >
              <ace:gMapMarker latitude="0" longitude="0">
                  <ace:gMapEvent eventType="click" scriptToUse="/* client-side code */"/>
              </ace:gMapMarker>
      </ace:gMap>

      public void gMapEventListener(GMapEvent event) {
          event.getGMap();
          event.getComponent();
          event.getType();
      }

      This way, it would be necessary to only write one listener method and it wouldn't be necessary to write additional javascript code to send the request to the server.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44017 Thu Feb 05 15:53:17 MST 2015 art.zambrano ICE-10464 fix to check if parent element exists before invoking Google Maps API
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/gmap/gmap.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44009 Tue Feb 03 17:52:15 MST 2015 art.zambrano ICE-10464 expanded TLD description
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapEventMeta.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44006 Tue Feb 03 17:48:07 MST 2015 art.zambrano ICE-10464 added listener to ace:gMapEvent
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/gmap/gmap.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapEventMeta.java
        Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/event/MapEvent.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapEventRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapEvent.java

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: