嗨,我們正在使用a4j標記。<h:commandButton>在動作後不刷新頁面
在這裏,我們正在從數據庫檢索數據後點擊一下按鈕。即使數據在服務器中可用,它也不會在視圖中顯示。手動刷新網頁後會導致數據顯示。
這裏是代碼片段 ....這裏的一些代碼
<rich:tab id="menu5" label="Recall">
<ui:include src="/pages/mctrans/reCallMcifTrans.xhtml" />
</rich:tab>
reCallMcifTrans.xhtml包含下面的代碼
<h:commandButton type="button" id="reCallbutton1" value=" Search "
styleClass="commandExButton">
<a4j:support event="onclick" id="ajsf12"
oncomplete="javascript:alert('Search Completed');javascript:document.body.style.cursor='default';"
action="#{mcifRecallTransBean.reCallSearch}" reRender="reCallgrid1" />
</h:commandButton>
您的bean的範圍是什麼?有沒有在網址中獲取參數? – 2013-03-13 10:03:28
Bean範圍是會話級別。傳遞搜索參數 – user2164684 2013-03-13 10:15:33