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.
有时,我必须在我的应用程序中重新渲染某些组件(使用 JSF1.2 和 RichFaces 3.3.2)。
是否可以在服务器端以编程方式执行此操作,或者只是在客户端以老式方式执行此操作?
谢谢。
看看<a4j:poll>或<a4j:push>。
<a4j:poll>
<a4j:push>
组件总是在服务器上呈现(标记然后被发送到浏览器进行 DOM 更新)。如果您需要在运行时决定重新渲染哪些组件,您可以执行 reRender=#{bean.compoentsToRender}