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

后端 未结 4 907
轻奢々
轻奢々 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:04

    You can have a look at Seam (see this article for a discussion to use Seam with JSF and AJAX).

    When I used Seam the last time, it was pretty slow, though. You may want to create your own JSF component that generates JavaScript (for example using jQuery as explained in this article).

提交回复
热议问题