In order to render a mobile content for primefaces framework bases web application:
just follow these 2 steps:
to define inside the same view many pages
just follow these 2 steps:
- in faces config.xmln add
"1234567<!-- Primefaces mobile themes navigation handler -->
<
navigation-handler
>
org.primefaces.mobile.application.MobileNavigationHandler
</
navigation-handler
>
<!-- Instead of declaring render kit for each page, render kit is application scoped -->
<
default-render-kit-id
>PRIMEFACES_MOBILE</
default-render-kit-id
>
- at the top of your xhtml or jsf or ... whatever extesion choosen for files that will be processed by jsf servlet add this taglib:"1
xmlns:pm="http://primefaces.org/mobile
1 2 3 4 | < pm:page id = "page1" > </ pm:page > < pm:page id = "page2" > </ pm:page > |
to define inside the same view many pages
No comments:
Post a Comment