JSF 2.3 released!
JSF (JavaServer Faces), is a component based MVC framework that's part of Java EE. JSF 2.3 in particular is part of Java EE 8.
Major new features in JSF 2.3 are a tighter integration with CDI, support for WebSockets, a really cool component search expression framework (donated by PrimeFaces), basic support for extensionless URLs, and class level bean validation.
The age old native managed beans of JSF 2.3 have finally been deprecated (although they are still available for now) in favour of CDI. It's expected that these will be fully removed (pruned) in a future release.
The JSF 2.3 EG would like to thank everyone who contributed to JSF in whatever way, by creating bug reports, testing builds, providing comments and insights on the mailinglist and contributing code. Without those community contributions JSF 2.3 would not have been possible! Thanks to all our fantastic community members!
JSF 2.3 (Mojarra 2.3) can be downloaded per direct from the project's download page.
Maven coordinates for the implementation (includes API) are:
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.3.0</version> </dependency>
The full implementation can be used for Servlet containers such as Tomcat and Jetty.
Maven coordinates for just the API are:
<dependency> <groupId>javax.faces</groupId> <artifactId>javax.faces-api</artifactId> <version>2.3</version> </dependency>
The API jar can only be used as a compile time dependency.
Application servers Payara and GlassFish can be trivially updated by replacing the JSF 2.2 glassfish/modules/javax.faces.jar with the 2.3 version. It's usually a good idea to clear the OSGI cache after that (e.g. rm -rf [payara/gf gome]/ glassfish/domains/domain1/osgi-cache/felix/)
Arjan Tijms
Oh, that's amazing. I really like JSF =)
ReplyDeleteNow, just for curiosity, is there any plans for JSF on Java EE 9? xD
Great that you like JSF ;)
DeleteLots of plans for JSF in Java EE 9. Among others actually removing all the deprecated stuff is considered, as well as making extensionless URLs more automated, improving the component model, having a unified repeat (base) component and lots more.
Work on Mojarra 2.4 has already started, but no new spec features can be added right now as this requires a new EG to be assembled.
I think the "Open EntityManager In View" or "Open Extended Persistence Context In View" patterns should be added to JSF 2.4.
DeleteWould https://github.com/omnifaces/omnifaces/issues/394 require a new EG? And https://myfaces.apache.org/wiki/core/user-guide/configuration-of-special-features/view-pooling.html?
Delete>Would https://github.com/omnifaces/omnifaces/issues/394 require a new EG? And https://myfaces.apache.org/wiki/core/user-guide/configuration-of-special-features/view-pooling.html?
DeleteThat would indeed mostly require a new EG, although it's possible to add features in an implementation specific way (so you can enable them via a com.sun param, for instance)
Thanks for the heads up. Good work on it to all those who contributed.
ReplyDeleteI am going to test with Tomcat. As I understand no one application server support jsf 2.3 at the moment? Do I need integrate weld with tomcat?:((((
ReplyDeletePayara and GlassFish 4.1.x as well as JBoss/WildFly support JSF 2.3, given that you update the jar, or jars (in case of JBoss) yourself.
DeleteFor Tomcat a CDI implementation needs to be present indeed, but it does not necessarily have to be Weld.
This comment has been removed by the author.
DeleteHi Arjan, Many thanks.
DeleteI was wait this release of JSF, from 2008 all my projects in JSF :))), used all versions.
I am integrating all kind of technologies with JSF:))
Great, thanks for the head ups! :)
DeleteExcuseme, i want to try jsf2.3 websocket and others new features, i add the
ReplyDeleteorg.glassfish
javax.faces
2.3.0
to my pom but when i try to use its not there.. is there any procedure to use 2.3?
thanks.
the f:websocket tag is not there and also all others feautres
DeleteIt would be really helpful if this question was answered. For me, it's the f:validateWholeBean that is not there.
DeleteIt basically should work of course, as we developed examples and test using Mojarra as well including f:validateWholeBean.
DeleteIf you want, could you post a question about this on stackoverflow with details about the environment and a reproducer if possible? That site is much better suited to answering questions than the comment section here.
Thanks!
It would be great if JSF would have support for:
ReplyDelete-json objects in its components (tables, forms, inputs, outputs)
-rest calls from the components (buttons, links & tables)
-access to the local storage via a component (write/read to/from)
-support for restfull urls (like: /user/1234/orders)
-exception mapping/handling (when exception A occurs then go to page X and show msg M)
-more advanced navigation rules:
* support for authentication and authorization tags (example page X requires loggedIn=true or rolesAllowed=#{allowedRoles or identity.hasRole('admin'), login-page=/login.xhtml}
* support for (starting/ending) conversation (example: page X requires conversation, no-conversation-page=/main.xhtml)
* support for page actions. Put f:viewParam and f:action in the navigation rules.
* regex matching of urls.
Basically, the world is moving to stateless architectures and JSF should make it possible to build web clients that can connect to backend systems that run somewhere else and retrieve data from it, validate it and show it on the screen.
I see a huge improvement in this area.
Does JSF 2.3 supports HTML5 fully? In JSF2.2 there is way to write HTML5 tags . Is it still XHTML or HTML?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThanks for post this. The information is very useful for all the reades.
ReplyDelete