Created
July 18, 2011 17:07
-
-
Save markito/1090069 to your computer and use it in GitHub Desktop.
JSF browser check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<c:when test="#{fn:containsIgnoreCase(request.getHeader('User-Agent'), 'MSIE 6') || | |
fn:containsIgnoreCase(request.getHeader('User-Agent'), 'MSIE 7') || | |
fn:containsIgnoreCase(request.getHeader('User-Agent'), 'MSIE 8') || | |
fn:containsIgnoreCase(request.getHeader('User-Agent'), 'Firefox/3.2')}"> | |
<h:panelGrid columns="1" id="browserCheck"> | |
<h2>#{bundle.BrowserNotSupported} <br /></h2> | |
<strong>Browser Information: </strong>#{request.getHeader('User-Agent')} | |
<h:graphicImage library="img" name="img/JavaTopiary.png" /> | |
</h:panelGrid> | |
</c:when> | |
<c:otherwise> | |
.... | |
</c:when> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment