GMap MarkerDragEvent

UI Components for JSF
Post Reply
ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

19 Jul 2010, 14:49

Hi,

i was playing a bit with the GMap component, and discovered, that MarkerDragEvent has no method getOverlay() like in the documentation. Events like OverlaySelectEvent serves this method.

Did i miss something?

I used this code-snippet:

Code: Select all

public void onMarkerDrag(MarkerDragEvent event) {
		Marker marker = (Marker) event.getOverlay();
		addMessage(new FacesMessage(FacesMessage.SEVERITY_INFO, "Marker dragged and droped", "Lat:" + lat + ", Lng:" + lng));
		}

Greetings,
Ramo

User avatar
michiel
Posts: 240
Joined: 07 Jun 2010, 09:12
Location: Belgium

19 Jul 2010, 15:01

class MarkerDragEvent doesn't have a method getOverlay,
instead it uses the method getMarker()
JSF-2.0, mojarra-2.0.2-FCS and PrimeFaces-2.1 on GlassFish v3.0.1 (build 22)

ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

19 Jul 2010, 15:03

Hi Michiel,

than it's an error in the updated Documentation, which was published yesterday.

May i should open an issue for it.

@Cagatay: are there issue-trackers for documentation layers?

Cheerio and thank you,
Ramo

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jul 2010, 17:56

Hi Ramo,

Yes, feel free to create issue for errata in user's guide. This will be fixed soon as 1.1 and 2.1 are due next week, we can also update user's guide.

Thanks for your feedback.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 49 guests