You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dirk Forchel <di...@exedio.com> on 2017/10/27 11:50:37 UTC

Using AjaxGeolocationBehavior with a "click" event

I want to use the HTML Geolocation solution mentioned here
http://apache-wicket.1842946.n4.nabble.com/Gmap-Current-Location-td4677835.html#a4677843.
(org.wicketstuff.html5.geolocation)

Unfortunately, the geolocation is triggered as soon as the MarkupContainer
is rendered. Instead of using this on load of a Page I'd prefer to trigger
the geolocation with "click" event (AjaxEventBehavior). 

What is the preferred way to "trigger" the AjaxGeolocationBehavior from a
"click" event?
Should I use AjaxEventBehavior#updateAjaxAttributes and add my own
AjaxCallListener#onSuccess script?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Using AjaxGeolocationBehavior with a "click" event

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

If the implementation provided by WicketStuff HTML5 module doesn't work for
you then please improve it so that it supports both use cases and send us a
Pull Request!
This way it will be part of the next release and you will be able to remove
it from your your repository.

Thank you!


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Nov 1, 2017 at 6:18 PM, Dirk Forchel <di...@exedio.com>
wrote:

> Does nobody haven an idea or a hint regarding my question?
> Instead of using the AjaxGeolocationBehavior from the wicketstuff package I
> could write my own Behavior, but this is actually not my aim.
>
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Using AjaxGeolocationBehavior with a "click" event

Posted by Dirk Forchel <di...@exedio.com>.
Does nobody haven an idea or a hint regarding my question?  
Instead of using the AjaxGeolocationBehavior from the wicketstuff package I
could write my own Behavior, but this is actually not my aim.


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org