I am using wicket 1.5 and I am not able to see in the getClientInfo()
method
(WebRequest)RequestCycle.get().getRequest()
I saw the other place this code
WebClientInfo clientInfo = (WebClientInfo)WebRequestCycle.get().getClientInfo();
But I am not able to see any WebRequestCycle in Wicket 1.5.
Any ideas how to check the user agent in Wicket 1.5?
You can also do:
The easiest way is to use
On newer Wicket Versions (6 or newer), you should use: