Search This Blog

Showing posts with label Detect the browser type and version in ADF 11g. Detect the browser type and version in ADF. Show all posts
Showing posts with label Detect the browser type and version in ADF 11g. Detect the browser type and version in ADF. Show all posts

Friday, October 26, 2012

Detect the browser type and version in ADF

How-to detect the browser type and version


The Trinidad RequestContext object provides access to the user browser type and browser version. using Expression Language as

#{requestContext.agent.agentName}

#{requestContext.agent.agentVersion}

Trinidad RequestContext class is exposed through the AdfFacesContext class, which means that we can also use

#{adfFacesContext.agent.agentName}

#{adfFacesContext.agent.agentVersion}