我正在使用 Primefaces 让我的应用程序更漂亮一些。我注意到了这一点p:commandButton
,h:commandButton
但工作方式不同。
p:commandButton
调用该方法,没有其他任何事情发生。h:commandButton
调用该方法并返回一个导航。
使用时按登录按钮后重定向时遇到问题p:commandButton
。如何处理?
我确实有一个更新参数:
<p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />