Is there a more elegant way of switching templates based on the user-agent, in JSF?

Either use a separate subdomain, e.g. Mobile.example. Com for mobile users and ()example.com for desktop users, and/or sniff the user agent. There are public APIs available on.

Either use a separate subdomain, e.g. Mobile.example. Com for mobile users and ()example.com for desktop users, and/or sniff the user agent. There are public APIs available on: user-agent-string.info http://useragentstring.com Alternatively, you can use CSS to hide/change parts of the the HTML markup based on the media type.

1 The thing is, there are major changes to the layouts, because some of them don't degrade gracefully (such as several jQuery plugins) and because we simply don't need all the features in the mobile version. Plus, mixing desktop/mobile content in the same page seems bad practice. – Deroude Sep 22 at 17:13 Your only resort is then using a separate subdomain and/or sniffing the UA.

– BalusC Sep 22 at 17:14 so, more to the point, once I sniff the UA, then what? Where do I perform the actual switching? – Deroude Sep 22 at 17:16 1 Best place would be a filter.

Let it redirect the response to the proper subdomain or page. – BalusC Sep 22 at 17:17 That's it, thanks. Web.

Xml is our friend :D – Deroude Sep 22 at 17:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions