f:websocket in JSF 2.3

后端 未结 1 2001
没有蜡笔的小新
没有蜡笔的小新 2021-01-22 11:30

I trying to get BalusC\'s JSF 2.3+ example (How can server push asynchronous changes to a HTML page created by JSF?) working using JBoss WildFly 12.0.0.Final

I have adde

相关标签:
1条回答
  • 2021-01-22 11:39

    f:websocket is available since JSF 2.3 and although Wildfly 12 contains some JavaEE 8 features, it by default starts in JavaEE 7 mode which is 'just' JSF 2.2.

    From the very recent (edit: at time of writing ;-)) WildFly 12 release documentation

    By default WildFly 12 launches in EE7 mode. In order to use these new capabilities you have to enable EE8 preview mode. This can be accomplished by passing the ee8.preview.mode property during startup:

    ./standalone.sh -Dee8.preview.mode=true

    There are other options too to enable this. From the same docs:

    Alternatively, this can be achieved by launching the server using the new standalone-ee8.xml configuration, which simply includes the property in the config.

    ./standalone.sh -c standalone-ee8.xml

    The CLI can also be used to modify the existing configuration to add this property. For example:

    embed-server --admin-only=true /system-property=ee8.preview.mode:add(value=true) stop-embedded-server

    You should then have JSF 2.3 and f:websockets

    0 讨论(0)
提交回复
热议问题