我想写与@PostConstruct一起使用的方法的名称。但是我发现AOP无法“绕过” PostConstruct方法。有什么方法可以将AOP与PostConstruct方法一起使用吗?
我现在在tabView中使用confirmDialog时遇到问题.这是我的确认对话
<p:confirmDialog global="true" showEffect="fade" hideEffect="explode">
<h:form>
<p:commandButton value="Yes" type="button"
styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
<p:commandButton value="No" type="button"
styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
</h:form>
</p:confirmDialog>
Run Code Online (Sandbox Code Playgroud)
在第一个tabView中,我有一个确认按钮
<p:commandButton value="Import" icon="ui-icon-arrowrefresh-1-w"
update=":form:growl">
<p:confirm header="Confirmation" message="Are you sure?" />
</p:commandButton>
Run Code Online (Sandbox Code Playgroud)
在第二个tabView中,我有完全按钮.
现在我的问题是:在第一个选项卡中,我的confirmDialog有我想要的全文:标题和消息,但是在第二个选项卡中,标题和消息都变为"null".只有按钮yes和confirmDialog仍然有效.我不知道发生了什么,请帮助我,如何在所有tabView中使confirmdialog显示全部内容