java - Primefaces datatable disapeares after update from commandLink -
when try update datatable
comandlink
on first time works fine, on second time datatable
disapeares yet still see paginator.
here datatable code :
<p:datatable id="tabexam" paginatorposition="bottom" var="exam" value="#{dyna.examviewdatamodel}" widgetvar="examtable" emptymessage="aucun résultat trouvé pour votre recherche" paginator="true" rows="40" selection="#{dyna.selectedexamen}" selectionmode="single" resizablecolumns="true" draggablecolumns="true" paginatortemplate="{currentpagereport} {firstpagelink} {previouspagelink} {pagelinks} {nextpagelink} {lastpagelink} {rowsperpagedropdown}" rowsperpagetemplate="40,80,120" rowstyleclass="#{exam.studywithrv_1 == 0 ? 'rv' : exam.studyurgence == 1 ? 'urgent' : null}">
<p:column> <p:outputlabel value="#{column.dbname}" styleclass="fonty"/> </p:column> </p:columns> </p:datatable>
this command link code :
<ui:repeat var="list" value="#{dyna.userlist}" varstatus="loop"> <center> <p:commandlink id="listerlink" title="afficher la liste" actionlistener="#{datatablebean.updatecolumns(list.id.tbcode)}" update=":form1:tabexam,:form1:msg,:form1:displaycols"> <p:graphicimage id="imglist" value="/images/liste_cold.png"/><br></br> <p:outputlabel value="#{list.id.tbcode}"/><br></br> </p:commandlink> </center> </ui:repeat>
additional info:
no nested forms.
using p:layout.
beans scope : viewscoped.
everything works fine when draggablecolumns="false".
what possibly missing ?
i have changed <p:commandlink>
<h:commandlink>
, works charm.
Comments
Post a Comment