Re: Wicket first time visit check

2019-09-23 Thread Martin Grigorov
Hi, For this you'd need to persist some flag somewhere. E.g. in a cookie or in a database. On Sun, Sep 22, 2019, 16:42 Sibgha Nazir wrote: > Hi, > > Thanks But it calls the constructor every time the page is rendered. What I > want is, once the user has seen that page before, I don't want to

Re: Wicket first time visit check

2019-09-22 Thread Andrea Del Bene
Hi, just go for a JavaScript solution, something like the 'Accept our cookies' modal you see the first time you visit a site. Wicket hook methods like onInitialize are executed on server side so the can't directly trigger JavaScript code. On Sun, Sep 22, 2019, 3:42 PM Sibgha Nazir wrote: > Hi,

Re: Wicket first time visit check

2019-09-22 Thread Sibgha Nazir
Hi, Thanks But it calls the constructor every time the page is rendered. What I want is, once the user has seen that page before, I don't want to execute that logic again. I want to trigger a javascript function for the first time users. If I have seen the webpage once, the next time I open it,

Re: Wicket first time visit check

2019-09-20 Thread Martin Grigorov
Hi, You can execute your logic in the page's constructor or onInitialize() method. On Fri, Sep 20, 2019, 21:25 Sibgha Nazir wrote: > Hi, > > I have a wicket application and I want to do something when the user opens > the webpage for the first time. > > Could anyone give me a clue on how to