如何在插入新行后刷新adf表

时间:2015-09-30 14:38:00

标签: jpa oracle10g ejb oracle-adf weblogic12c

您好我有两个页面:第一个是“creer dossier.jsf”,我可以在其中添加一个新行,其中的seconde页面是“listdossier.jsf”我有一个包含第一个记录的只读表页。 当我在第一页中创建记录时,它会在数据库中保留,但只有在我重新部署应用程序时才会出现在表中。 我希望在不重新部署应用程序的情况下获得最新记录。有人可以帮助我吗? 创建表我只是从数据控件中拖动它。 我使用EclipseLink JPA作为ORM和Web逻辑 我试图从persistanc.xml和em.refresh()中删除缓存并始终存在相同的问题 这是我的桌子:

<af:table value="#{bindings.dossierFindAllParDepartementDBTE.collectionModel}"
var="row" rows="#{bindings.dossierFindAllParDepartementDBTE.rangeSize}"
emptyText="#{bindings.dossierFindAllParDepartementDBTE.viewable ? 'No data to display.' : 'Access Denied.'}"rowBandingInterval="0"
fetchSize="#{bindings.dossierFindAllParDepartementDBTE.rangeSize}" id="t2"
partialTriggers="l1" width="796px"
immediate="false" binding="#{backingBeanScope.BeanDatabase.t2}">
<af:column headerText="ID_Dossier" id="c5" width="150"
inlineStyle="background-color:#b5ffde">
<af:link actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
 text="#{row.idDossier}"
 disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}" id="l1"action="GoEditDossierBTEDEP1" inlineStyle="background-color:#b5ffde"/>
</af:column>
<af:column headerText="Client" id="c6" width="150"
inlineStyle="background-color:#b5ffde">
<af:outputText value="#{row.client}"
shortDesc="#{bindings.dossierFindAllParDepartementDBTE.hints.client.tooltip}"
id="ot6"/>
</af:column>
<af:column headerText="Ingénieur" id="c7" width="150"
inlineStyle="background-color:#b5ffde" headerClass="skin1.css">
<af:outputText value="#{row.ingAff}"shortDesc="#{bindings.dossierFindAllParDepartementDBTE.hints.ingAff.tooltip}"id="ot7"/>
</af:column>
<af:column headerText="Probléme" id="c8" width="300" inlineStyle="background-color:#b5ffde">
<af:outputText value="#{row.descriProb}"
 shortDesc={bindings.dossierFindAllParDepartementDBTE.hints.descriProb.tooltip}"
    id="ot8"/>
</af:column>
</af:table>

2 个答案:

答案 0 :(得分:0)

在两个页面之间导航的任务流程中,粘贴一个调用查询的方法活动,然后在返回第一页之前重新执行它。

答案 1 :(得分:0)

您可以通过两种方式实现这一目标:

  1. 在第一页的提交上刷新第二页的页面或特定组件。
  2. 在第一页中提交值后刷新Iterator和VO
相关问题