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.
我有需要在记录保存后关闭对话框的要求。成功保存记录后,需要为用户获取其他一些 .xhtml 页面。有人可以帮助如何实现它吗?
只需在对话框中保存按钮的操作方法中返回有效的导航结果。
例如
<p:commandButton value="Save" action="#{bean.save}" />
和
public String save() { // ... return "other.xhtml"; }