2
votes

Primefaces supports both web and mobile version. There is some minor difference in coding the two version.

Is there anyway to use primefaces for both WEB and MOBILE version? I mean single code base which supports both MOBILE and WEB version using primefaces? (something similar to the applications built by bootstrap)

2
Do you solve your problem? because I have the same problem. I would like to develop the same app for both desktop and mobile using 1 code, in fact this tag <f:view renderKitId="PRIMEFACES_MOBILE" /> will switch all the components to primefaces mobile but I am looking to a way to load this tag only on mobile devices so the primefaces mobile components will be shown on mobile, otherwise do not load this tag and the normal primefaces components will be shown.Jad Chahine

2 Answers

0
votes

Primefaces mobile is built on jquery mobile which works on phone, tablet, or desktop. So if you stick with primefaces mobile it should work on all devices.

0
votes

To make it clear, Primefaces created some PrimeFaces Premium Themes and Layouts like (Sentinel, Spark, Ronin and all other on http://www.primefaces.org/themes). In my opinion that's great (good looking / pixel perfect), those are responsive layouts but not all components are responsive. You can check responsive components on responsive.xhtml