1
triggred在我.xhtml
的網頁我有2個h:commandButton
元素:JSF命令按鈕行動刷新
<h:commandButton immediate="true" lang="en" class="msbutton" action="#{user.changeLanguage()}" value="Test1">
</h:commandButton>
<h:commandButton immediate="true" lang="en" class="msbutton" action="#{user.test()}" value="Test2">
</h:commandButton>
當我刷新我的網頁中最後一個按鈕被點擊再次triggred是我的問題是,並在行動託管bean被執行。
我不希望刷新頁面時觸發操作。 (僅當按鈕被點擊時才被觸發)。
我需要改變一些東西嗎?我需要做什麼在頁面刷新沒有觸發按鈕操作?
感謝提前。
謝謝,作品加油! – user590586