Get query parameters before call to constructor

Hi, I have a route that accepts query parameters. I can access the parameters by implementing the class HasUrlParameter and overriding the method setParameter but this method is only called after the constructor. Surely there must be a way to access the parameters in the constructor, right?

No, there is not that option and it is intentional design decision to enforce better security architecture. So the idea is that you process query parameters e.g. in after navigation, and populate the view accordingly there instead of constructor.

In the constructor you want to do things once. ( Like configuring your binder) and in the setParameters you will do things that can be repeated ( like setBean/readbean. )