[BootsFaces] How can I add BootFaces to my project ?

Answered

Hello,

I have a Java project on Intellij but I can't display a jsf page with a template from BootsFaces..

I tried to follow this tutorial https://www.bootsfaces.net/quick-start.xhtml but I can't obtain a good result

Please, someone can tell me the steps to add BootsFaces ? From adding the jar file to the configuration, I'm really confused

 

Thank you for your attention !

0
6 comments

I've checked with https://github.com/stephanrauh/BootsFaces-Examples/tree/master/BootsFacesChess sample.

Maven was not able to resolve <version>0.9.0-SNAPSHOT</version> net.bootfaces dependency in pom.xml. After changing it to <version>0.9.0</version> and refreshing the project everything worked just fine.

Just make sure there is no anything red in pom.xml when you open it in IntelliJ IDEA.

0
Avatar
Permanently deleted user

Thank you for your answer but I don't think that I have Maven on my IntelliJ IDEA.. Is it necessary ?

0

What do you mean? Maven is bundled and enabled by default in IntelliJ IDEA.

0
Avatar
Permanently deleted user

I had to create a new module for Maven for my project, I added theses lines in pom.xml

 

<dependency>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>1.1.3</version>
<scope>compile</scope>
</dependency>

But "dependency" is red and I got this message :

Invalid content was found starting with element 'dependency'. One of '{"http://maven.apache.org/POM/4.0.0":parent, "http://maven.apache.org/POM/4.0.0":packaging, "http://maven.apache.org/POM/4.0.0":name, "http://maven.apache.org/POM/4.0.0":description, "http://maven.apache.org/POM/4.0.0":url, "http://maven.apache.org/POM/4.0.0":prerequisites, "http://maven.apache.org/POM/4.0.0":issueManagement, "http://maven.apache.org/POM/4.0.0":ciManagement, "http://maven.apache.org/POM/4.0.0":inceptionYear, "http://maven.apache.org/POM/4.0.0":mailingLists, "http://maven.apache.org/POM/4.0.0":developers, "http://maven.apache.org/POM/4.0.0":contributors, "http://maven.apache.org/POM/4.0.0":licenses, "http://maven.apache.org/POM/4.0.0":scm, "http://maven.apache.org/POM/4.0.0":organization, "http://maven.apache.org/POM/4.0.0":build, "http://maven.apache.org/POM/4.0.0":profiles, "http://maven.apache.org/POM/4.0.0":modules, "http://maven.apache.org/POM/4.0.0":repositories, "http://maven.apache.org/POM/4.0.0":pluginRepositories, "http://maven.apache.org/POM/4.0.0":dependencies, "http://maven.apache.org/POM/4.0.0":reports, "http://maven.apache.org/POM/4.0.0":reporting, "http://maven.apache.org/POM/4.0.0":dependencyManagement, "http://maven.apache.org/POM/4.0.0":distributionManagement, "http://maven.apache.org/POM/4.0.0":properties}' is expected.

0

Try using the version I've specified above. If it's still red, refer to http://stackoverflow.com/a/42427510/104891.

0
Avatar
Permanently deleted user

Thank you for your answer !

0

Please sign in to leave a comment.