I want to check the user agent of my client. (If it\'s possible the browser type/version)
But I don\'t know how do that...
Thank you for your help.
In a JSF2 page, you can print the user agent directly via the request object:
But don't forget to use the h-namespace ;-)
You can then respond via functions to different browsers.
Example:
Facelet Title User-Agent: Hello Firefox!
User-Agent:
Hello Firefox!