jpa - How to Refresh adf table after insert a new row -
hello have 2 pages: first "creer dossier.jsf" can add new row , seconde page "listdossier.jsf" inside have read table contains records of first page. when create record in first page persist in database can't appears in table when redploy application . want newest records without redeploying application..can me please?? create table drag data control. using eclipselink jpa orm , web logic tried delete cache using persistanc.xml , em.refresh() , same problem here's table:
<af:table value="#{bindings.dossierfindallpardepartementdbte.collectionmodel}" var="row" rows="#{bindings.dossierfindallpardepartementdbte.rangesize}" emptytext="#{bindings.dossierfindallpardepartementdbte.viewable ? 'no data 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>
in task flow navigates between 2 pages, stick method activity call query , re-execute before go first page.
Comments
Post a Comment