ICEfaces
  1. ICEfaces
  2. ICE-10323

ace:gMap - gMapEvent not called when used with gMapAutocomplete

    Details

      Description

      When using the ace:gMapEvent tag to call some script on click, this isn't called when it is used in an ace:gMap that uses an ace:gMapAutocomplete tag.

      This depends on the order that the tags are placed. If the gMapEvent tag is placed before the gMapAutocomplete tag, the events are not fired. If it is placed after the tag, then it works correctly.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the issue.

        • Load welcomeICEfaces.jsf
        • click on the map, the lat and long of where you clicked should be shown.
        Show
        Arran Mccullough added a comment - Attached test case that shows the issue. Load welcomeICEfaces.jsf click on the map, the lat and long of where you clicked should be shown.
        Hide
        Arturo Zambrano added a comment -

        r43384: committed fix to the 3.3 EE maintenance branch.
        r43385: committed fix to the 4.0 trunk.

        The problem wasn't specific to gMapAutocomplete. It occurred any time the recreate() method was called, which is necessary to do under certain circumstances. This method creates a new map instance and restores the previous state. The issue was simply the fact that this recreate() method wasn't restoring events, so they were lost whenever this method was called. So, the fix consisted in adding a mechanism to save the event instances and then re-apply them when recreating the entire map.

        Show
        Arturo Zambrano added a comment - r43384: committed fix to the 3.3 EE maintenance branch. r43385: committed fix to the 4.0 trunk. The problem wasn't specific to gMapAutocomplete. It occurred any time the recreate() method was called, which is necessary to do under certain circumstances. This method creates a new map instance and restores the previous state. The issue was simply the fact that this recreate() method wasn't restoring events, so they were lost whenever this method was called. So, the fix consisted in adding a mechanism to save the event instances and then re-apply them when recreating the entire map.
        Hide
        Carmen Cristurean added a comment -

        Verified with IF 4.0 trunk r43553 and 3.3 EE maintenance branch r43548 in IE8, IE9, IE10, FF33, Chrome39.

        Show
        Carmen Cristurean added a comment - Verified with IF 4.0 trunk r43553 and 3.3 EE maintenance branch r43548 in IE8, IE9, IE10, FF33, Chrome39.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: