Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个应该进行通信的 jsf自定义组件。这些组件是 DataTable 和 pager。我正在寻找在更改 DataTable 的模型时,会触发一个事件以允许更新寻呼机,反之亦然。并保持他们的独立性。是否可以使用监听器和事件来做到这一点?
是的,将寻呼机作为侦听器的属性传递,或者只是让寻呼机本身实现FacesListener。
FacesListener