【发布时间】:2013-03-13 22:58:30
【问题描述】:
您好,我们与 a4j 标签一起使用。
在这里,我们在单击按钮后从数据库中检索数据。即使数据在服务器中可用,它也不会显示在视图中。手动刷新网页后会导致数据显示。
这里是代码 sn-p ....这里有一些代码
<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的作用域是什么? url中有get参数吗?
-
Bean 范围是会话级别。传递搜索参数