Regis Albuquerque
Regis Albuquerque

Reputation: 138

how can I integrate bootstrap with jsf?

What's the best way to use JSF with bootstrap-framework?

I am trying to build a responsive site. I know jsf and primefaces but doesnot know how to integrate bootstrap in jsf.

Are there some begginer tutorial about how can I integrate bootstrap with jsf?

Upvotes: 3

Views: 11871

Answers (1)

Bibek Shakya
Bibek Shakya

Reputation: 1271

Inside Your src>main>webapp place the bootstrap folder and

You can render bootstrap from outside web-inf folder

<link href="css/bootstrap.css" rel="stylesheet"/>

for inside web-inf folder do this

<link href="#{request.contextPath}/css/bootstrap.css"
          rel="stylesheet" />

or simply can do this also

<h:outputScript name="css/bootstrap.css" />

but bootstrap and jsf or primefaces is hard to work together maybe look at the Bootsfaces. here

for individual bootstrap 3 tutorials

Bootstrap

Upvotes: 3

Related Questions