Skip to content

Commit

Permalink
Merge pull request #107 from WolfgangHG/jakartafaces
Browse files Browse the repository at this point in the history
Rename JSF to Jakarta Faces, remove outdated comment in beans.xml, up…
  • Loading branch information
emmartins authored Dec 16, 2024
2 parents 78c50b8 + e54fce1 commit c73bbb3
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
bean-discovery-mode="annotated">

<!-- This descriptor configures Context and Dependeny Injection.
Actually, CDI 1.1 does not require this file. But the archetype contains it anyway to avoid deloyment errors for blank projects (WFLY-13306) -->
<!-- This descriptor configures Context and Dependeny Injection (CDI).
This file is optional. -->

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ in "persistence.xml".
If you don't use entity beans, you can delete "persistence.xml".
==========================

JSF:
The web application is prepared for JSF 4.0 by bundling an empty "faces-config.xml" in "src/main/webapp/WEB-INF".
In case you don't want to use JSF, simply delete this file and "src/main/webapp/beans.xml".
Jakarta Faces:
The web application is prepared for Jakarta Faces 4.0 by bundling an empty "faces-config.xml" in "src/main/webapp/WEB-INF".
In case you don't want to use Jakarta Faces, simply delete this file and "src/main/webapp/beans.xml".
==========================

Testing:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
Hibernate property instead:
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
-->
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
<property name="javax.persistence.schema-generation.create-source" value="metadata"/>
<property name="javax.persistence.schema-generation.drop-source" value="metadata"/>
<property name="jakarta.persistence.schema-generation.database.action" value="drop-and-create"/>
<property name="jakarta.persistence.schema-generation.create-source" value="metadata"/>
<property name="jakarta.persistence.schema-generation.drop-source" value="metadata"/>

<!-- Properties for Hibernate -->
<property name="hibernate.show_sql" value="false" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
bean-discovery-mode="annotated">

<!-- This descriptor configures Context and Dependeny Injection.
Actually, CDI 1.1 does not require this file. But the archetype contains it anyway to avoid deloyment errors for blank projects (WFLY-13306) -->
<!-- This descriptor configures Context and Dependeny Injection (CDI).
This file is optional. -->

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd">

<!-- This descriptor activates the JSF Servlet -->
<!-- This descriptor activates the Jakarta Faces Servlet -->

<!-- Write your navigation rules here. You are encouraged to use CDI for
creating @Named managed beans. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ in "persistence.xml".
If you don't use entity beans, you can delete "persistence.xml".
==========================

JSF:
The web application is prepared for JSF 4.0 by bundling an empty "faces-config.xml" in "src/main/webapp/WEB-INF".
In case you don't want to use JSF, simply delete this file and "src/main/webapp/beans.xml".
Jakarta Faces:
The web application is prepared for Jakarta Faces 4.0 by bundling an empty "faces-config.xml" in "src/main/webapp/WEB-INF".
In case you don't want to use Jakarta Faces, simply delete this file and "src/main/webapp/beans.xml".
==========================

Testing:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
Hibernate property instead:
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
-->
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
<property name="javax.persistence.schema-generation.create-source" value="metadata"/>
<property name="javax.persistence.schema-generation.drop-source" value="metadata"/>
<property name="jakarta.persistence.schema-generation.database.action" value="drop-and-create"/>
<property name="jakarta.persistence.schema-generation.create-source" value="metadata"/>
<property name="jakarta.persistence.schema-generation.drop-source" value="metadata"/>

<!-- Properties for Hibernate -->
<property name="hibernate.show_sql" value="false" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
bean-discovery-mode="annotated">

<!-- This descriptor configures Context and Dependeny Injection.
Actually, CDI 1.1 does not require this file. But the archetype contains it anyway to avoid deloyment errors for blank projects (WFLY-13306) -->
<!-- This descriptor configures Context and Dependeny Injection (CDI).
This file is optional. -->

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd">

<!-- This descriptor activates the JSF Servlet -->
<!-- This descriptor activates the Jakarta Faces Servlet -->

<!-- Write your navigation rules here. You are encouraged to use CDI for
creating @Named managed beans. -->
Expand Down

0 comments on commit c73bbb3

Please sign in to comment.