Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jpa 插入新行后如何刷新adf表_Jpa_Oracle10g_Ejb_Oracle Adf_Weblogic12c - Fatal编程技术网

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

Jpa 插入新行后如何刷新adf表,jpa,oracle10g,ejb,oracle-adf,weblogic12c,Jpa,Oracle10g,Ejb,Oracle Adf,Weblogic12c,您好,我有两个页面:第一个页面是“creer dossier.jsf”,我可以在其中添加一个新行,第二个页面是“listdossier.jsf”,其中我有一个只读表,其中包含第一个页面的记录。 当我在第一个页面中创建一条记录时,它将保留在数据库中,但只有在我重新部署应用程序时才能显示在表中。 我想在不重新部署应用程序的情况下获取最新记录..有人能帮我吗?? 要创建表,我只需从数据控件拖动它。 我使用EclipseLink JPA作为ORM和web逻辑 我试图从persistanc.xml和em.

您好,我有两个页面:第一个页面是“creer dossier.jsf”,我可以在其中添加一个新行,第二个页面是“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>


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

可以通过两种方式执行:

  • 在提交第一页时刷新页面或第二页的特定组件
  • 在提交第一页中的值后刷新迭代器和VO

  • 是否可能将只读表的数据缓存在某个会话范围的bean中?谢谢您的帮助!!!但是每个页面都有不同的任务流程,因为我把它们当作菜单使用!!!!