onBeforeRender getting called twice

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

onBeforeRender getting called twice

avchavan
Hi,
I am experiencing a weird scenario wherein the onBeforeRender method gets called twice (request is coming as a HTTP request via a standalone API through webService).
I am using a Wizard.
Same code is used in regular application as well which works without a problem.
What could be a possible issue here?
I've checked in firebug and i dont see multiple calls to server from browser.
Reply | Threaded
Open this post in threaded view
|

Re: onBeforeRender getting called twice

Martin Grigorov-4
Hi,

Put a breakpoint at WicketFilter#doFilter() and see whether it is called
twice.
If it is called once and #onBeforeRender() is executed twice then please
create a quickstart and attach it to JIRA so we can investigate.

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Jul 10, 2015 at 3:11 PM, avchavan <[hidden email]>
wrote:

> Hi,
> I am experiencing a weird scenario wherein the onBeforeRender method gets
> called twice (request is coming as a HTTP request via a standalone API
> through webService).
> I am using a Wizard.
> Same code is used in regular application as well which works without a
> problem.
> What could be a possible issue here?
> I've checked in firebug and i dont see multiple calls to server from
> browser.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-getting-called-twice-tp4671575.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: onBeforeRender getting called twice

avchavan
Yes, It is getting called twice.
Reply | Threaded
Open this post in threaded view
|

Re: onBeforeRender getting called twice

Martin Grigorov-4
So, two requests are made. Everything seems to be OK from Wicket point of
view.

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Jul 10, 2015 at 3:36 PM, avchavan <[hidden email]>
wrote:

> Yes, It is getting called twice.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-getting-called-twice-tp4671575p4671577.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: onBeforeRender getting called twice

avchavan
Is there a way to check why it is being called twice?
Or from where the second call is being made?