Re: Wicket Ajax Debug Errors - how to debug?

2013-03-16 Thread Sven Meier

Seems like this is caused by WICKET-4959.

Please file a Jira issue.

Sven

On 03/15/2013 09:56 PM, Marios Skounakis wrote:

Hi all,

I am using a modal window as a substitute for messageboxes. E.g. I have a
few forms with an ajax submit button, and I am using the modal window to
first display a confirmation message, and if the user accepts it, to
display a success / failure message.

I am getting frequent errors in the Wicket Ajax Debug console. One is:
*
ERROR: *
Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript:
TypeError: Wicket.TimerHandles is undefined, text:
(function(){clearTimeout(Wicket.TimerHandles['spinner21e']); delete
Wicket.TimerHandles['spinner21e'];})();

The spinner control mentioned above is an image component with an
AbstractAjaxTimerBehavior. In all cases of error, it has
setVisibilityAllowed(false) (it's hidden).

Usually the errors can be ignored and the page still functions normally.

I've never really dug into the way ajax responses are handled so I'm not
sure where to start in order to track this error down.

Any ideas?
Thanks in advance,
Marios




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



AbstractAjaxBehavior back button problem

2013-03-16 Thread armandoxxx
Hey I have a tiny little problem with ajax behaviors and back button. 

I have a component (jQuery date picker that makes an ajax call to wicket
with selected date as parameter) which has an ajax behavior and renders it's
callbackUrl to head !

taken from components code:


If I select dates with this component and stay on the same page everything
works. 
If I go to next page and press back button Ajax request made by selecting a
date throws me:

org.apache.wicket.core.request.mapper.StalePageException
and I'm redirected on error page.

By debuging I figured out that when selecting a date (on page that I got to
by pressing back button) the whole page reloads and my behavior is not
called due to StalePageException...
Any tips to overcome this would be appreciated. 

Regards 

Armando





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxBehavior-back-button-problem-tp4657293.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AbstractAjaxBehavior back button problem [SOLVED]

2013-03-16 Thread armandoxxx
Ok .. here is the solution !


When rendering Ajax callbackUrls you have to be careful that everytime
component is rendered you call behavior.getCallbackUrl() and set the new
value to javascript output !

Since I render urls in head tag ... with renderHead() method this is my
working example 




Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxBehavior-back-button-problem-tp4657293p4657297.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Gmap3 Geocoding shows Status 610

2013-03-16 Thread Vishal Popat
Hi,

I am using GMap3 from here: 
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/gmap3-parent/gmap3.
 My Geocoding has recently stopped working and is showing Status 610. Google 
searching shows that this is all related to GMap2 being deprecated etc (There 
maybe other reasons why I am getting a 610).

However, when looking here: 
https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/gmap3-parent/gmap3/src/main/java/org/wicketstuff/gmap/geocoder/Geocoder.java.
 The encoding url looks like it is from Gmap v2 (see here: 
https://developers.google.com/maps/documentation/geocoding/index), which would 
explain the 610.

Am I mistaken?

Regards
Vishal