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 Action?
它尝试了类似的东西
<h:body onload="#{service.getMessage()}">
但在这种情况下,该方法在页面对用户可见之前执行
有任何想法吗?
JSF 是服务器端,onload是客户端。您唯一的选择是onload关闭 ajax 请求。有关示例,请参见这篇文章。
onload