How to align JSF components to center

前端 未结 4 1233
执念已碎
执念已碎 2020-12-28 22:09

In my JSF 2 - Primefaces 3 web application, I am using and . I have multiple components inside them which are le

4条回答
  •  [愿得一人]
    2020-12-28 22:38

    We are using RichFaces, but the solution that we used in this case may apply to Primefaces as well. We used to style the inner elements with css.
    Once you render the page in the browser, you can look up the source code and find out what HTML elements are rendered. Then create specific CSS classes and style the whole panel or the inner elements in panelGrid to that class.

    Most of the time, this was the easiest solution and also sufficient.

提交回复
热议问题