jsf - PrimeFaces responsive is not working -


i want use primefaces responsive, when run app in pc working fine, if resize browser app works expected if open app phone, responsive not working.

i using primefaces 5.3.rc1, mojarra 2.2.0 , glassfish 4.0

code :

<h:form>     <p:datatable var="car" >         <p:column headertext="id">             <h:outputtext value="colid" />         </p:column>          <p:column headertext="year (p3)" priority="3">             <h:outputtext value="year" />         </p:column>          <p:column headertext="brand (p2)" priority="2">             <h:outputtext value="brand " />         </p:column>          <p:column headertext="color (p4)" priority="4">             <h:outputtext value="color" />         </p:column>     </p:datatable> </h:form> 

left phone, rigth pc

you might want use new reflow mode introduced in primefaces 5.2 community edition.

enter image description here

reflow mode best approach on mobile devices because displays stacked columns

<p:datatable var="car" reflow="true"> 

you can have @ the second example in primefaces' showcase.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -