Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.54 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.54 KB

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