You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Brian Mulholland <bl...@gmail.com> on 2012/04/24 23:44:05 UTC

AbstractAjaxBehavior and second request

I have a javascript widget on my page that will issue multiple
requests.  I am using an AbstractAjaxBehavior and priming the
javascript component with the uri from getCallbackUri().  First
request works flawlessly.  But the next request using the same uri
(excepting the extra parameters that the javascript widget tacks on),
and it is not getting to the onRequest() method.

I can confirm that the request is going out because I can see it in firebug.

first request:
http://localhost:9080/ManagementCenter/?wicket:interface=:7:subscriptionList::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&_dc=1335302423707&page=1&start=0&limit=20&group=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D&sort=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D

second request:
http://localhost:9080/ManagementCenter/?wicket:interface=:7:subscriptionList::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&_dc=1335302444162&page=2&start=20&limit=20&group=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D&sort=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D

I see the wicket:interface portion in there.  Does this number need to
increment or something?

Brian Mulholland
"For every complex problem, there is an answer that is clear, simple and wrong."
--H.L. Mencken

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


Re: AbstractAjaxBehavior and second request

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

On Wed, Apr 25, 2012 at 12:44 AM, Brian Mulholland
<bl...@gmail.com> wrote:
> I have a javascript widget on my page that will issue multiple
> requests.  I am using an AbstractAjaxBehavior and priming the
> javascript component with the uri from getCallbackUri().  First
> request works flawlessly.  But the next request using the same uri
> (excepting the extra parameters that the javascript widget tacks on),
> and it is not getting to the onRequest() method.
>
> I can confirm that the request is going out because I can see it in firebug.
>
> first request:
> http://localhost:9080/ManagementCenter/?wicket:interface=:7:subscriptionList::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&_dc=1335302423707&page=1&start=0&limit=20&group=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D&sort=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D
>
> second request:
> http://localhost:9080/ManagementCenter/?wicket:interface=:7:subscriptionList::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&_dc=1335302444162&page=2&start=20&limit=20&group=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D&sort=%5B%7B%22property%22%3A%22RECIPIENT_USER%22%2C%22direction%22%3A%22ASC%22%7D%5D
>
> I see the wicket:interface portion in there.  Does this number need to
> increment or something?

I think wicket:interface value is OK.
Put a breakpoint in WicketFilter#doFilter() and see what happens.

>
> Brian Mulholland
> "For every complex problem, there is an answer that is clear, simple and wrong."
> --H.L. Mencken
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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