How can server push asynchronous changes to a HTML page created by JSF?

后端 未结 4 898
轻奢々
轻奢々 2020-11-22 02:25

When we create a JSF page, a client request allows generation of HTML dynamically using a combination of Java code and HTML. Can we introduce hooks in the HTML page using JS

4条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 03:17

    Simplest for you can be introduction of ajax4jsf library's "poll" component: https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/entire.html#d0e1955

    It will not need application reconfiguration and big changes in JSF page (only adding a4j:poll component)

    It worked very good in couple of my projects.

提交回复
热议问题