Skip to content

Simple chat using JSF 2.3 + CDI 2.0 + Bean Validation 2.0 + WebSocket

License

Notifications You must be signed in to change notification settings

wesleyegberto/jakartaee-jsf-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSF 2.3 Chat

Simple chat to show some new features JSF 2.3 + CDI 2.0 + Bean Validation 2.0

Start Glassfish: ./asadmin start-domain domain1

URL: https://localhost:8080/jsf-chat

Features

  • JSF 2.2 - HTML5 Friendly Markup
  • JSF 2.3 - Selectors
  • JSF 2.3 - JS code from managed bean
  • JSF 2.3 - Artifacts injection
  • JSF 2.3 - f:webSocket
  • WebSocket 1.1 - Tomcat already provides

Picture:

Print

Some notes

  • Spec JSF 2.3: Section 5.9 "As of version 2.3 of this specification, JSF must run in a container that supports CDI version 2.0"
  • When running on Glassfish 5 sometimes we can get a NPE which could be related to this issue

Migration:

  • Changed imports from javax to jakarta
  • Changed references from javax to jakarta in files: web.xml, Context.xml and jsf_messages.properties

Tested on:

  • Java EE 8 (using refs javax)
  • Jakarta EE 8 (using refs javax)
  • Jakarta EE 9 (using refs jakarta)
  • TomEE 8 (supports only Java EE 8 / Jakarta EE 8, use this branch to run)

Links

About

Simple chat using JSF 2.3 + CDI 2.0 + Bean Validation 2.0 + WebSocket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages