PF 5 and bootstrap 3

UI Components for JSF
Post Reply
torquato.neto
Posts: 8
Joined: 14 Oct 2010, 02:59

20 Jul 2014, 10:19

Hello guys,

I'm trying to use the bootstrap 3 in my project with primefaces 5, but I'm having some problems in basic components form, for example: selectOneMenu is misaligned.

Using the bootstrap 2.3.2, the components are correct, only shows problem with bootstrap 3.

My Intent using the bootstrap 3 with PF is to use the resources of the grid, styles of forms, buttons and nav.

The only solution I found was in the forms not use the components of PF but the jsf (h:*), but would lose a lot of resources of PF.

Is there any way to use the bootstrap 3 with PF ?

Thank you..

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

23 Jul 2014, 12:56

If you search the internet on bootstrap3 'messing things up', you'll see it is causedby them using the boxmodel. Not a bad choice, but it does not combine well with other frameworks that do not expect that. If you force all pf widgets to not use boxmodel, you should be fine. It will most likely be just one css rule

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests