Chopehr
Chopehr

Reputation: 1

How can I make sure that JSF works?

My JSF doesn't work, but it also doesn't give any errors.

I have a simple index.xhtml with <h:outputText> but it doesn't seem to work. Others like <p> work fine. It's only the JSF which doesn't work.

STS4 seems to deploy it using Tomcat 10.1.

I made a project with Spring Tool Suite 4, Spring Boot 3.2.3 version, JDK 17, and I have these:

pom.xml

pom.xml

application.properties (under src/main/resources/)

# MySQL properties
spring.datasource.url=jdbc:mysql://localhost:3306/tuneles?serverTimezone=UTC
spring.datasource.username=usuario
spring.datasource.password=akkodis

# Hibernate properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
spring.jpa.properties.hibernate.format_sql=true

logging.level.org.springframework=DEBUG
logging.level.jakarta.faces=DEBUG

faces-config.xml (under src/main/resources/META-INF/)

?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                                  https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_3_0.xsd"
              version="3.0">

</faces-config>

I also tried adding the JoinFaces dependency, and eliminating the others related to JSF, since it supposedly installs everything needed, but JoinFaces only gave me errors.

I just need to have JSF working somehow.

Upvotes: 0

Views: 24

Answers (0)

Related Questions