是的,我做到了。为此,我在支持bean中以编程方式创建了必要的对话框。我知道这并不是最佳做法,但此刻我认为这只是可能的解决方案。首先,我在JSF页面上添加了一个小组面板,该面板是对话框的容器。然后在支持bean上,我有一些像这样的代码:
UIComponent panelGroup = facesContext.getViewRoot().findComponent("panel_id");Dialog dialog = new Dialog();dialog.setHeader("Sample");dialog.setVisible(true);dialog.setMinimizable(true);...panelGroup.getChildren().add(dialog);...RequestContext requestContext = RequestContext.getCurrentInstance();requestContext.update("panel_id");


