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>
you might want use new reflow mode introduced in primefaces 5.2 community edition.
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
Post a Comment