jsf - Datatable Row expansion not working with filter -
i have datatable both row toggle expansion , filter option. on expanding, datatable comes , gets populated different table in db. when not filtering value, expansion works fine , other datatable getting populated. when filtering , clicking on expand button, it's showing no records found in second datatable.
xhtml code
<p:datatable var="data" value="#{list.trackinglist}" rows="10" paginator="true" paginatortemplate="{currentpagereport} {firstpagelink} {previouspagelink} {pagelinks} {nextpagelink} {lastpagelink} {rowsperpagedropdown}" rowsperpagetemplate="5,10,15" widgetvar="tracktable" emptymessage="no entries found given criteria"> <f:facet name="header"> summary </f:facet> <p:column style="width:16px"> <p:rowtoggler /> </p:column> <p:column headertext="id" style="font-size:16px;" filterby="#{data.id}" filtermatchmode="contains"> <h:outputtext value="#{data.id}" style="font-size:14px;" /> </p:column> <p:column headertext="status" filterby="#{data.status}" filtermatchmode="contains"> <h:outputtext value="#{data.status}" style="font-size:14px;" /> </p:column> <p:column headertext="created time" style="font-size:16px;"> <h:outputtext value="#{data.chkdtstamp}" style="font-size:14px;" /> </p:column> <p:column headertext="created by" style="font-size:16px;" filterby="#{data.createdby}" filtermatchmode="contains"> <h:outputtext value="#{data.createdby}" style="font-size:14px;" /> </p:column> <p:rowexpansion> <p:datatable var="metadata" value="#{statuslist.getstatuslist(data.id)}"> <p:column headertext="description" style="font-size:15px;"> <h:outputtext value="#{metadata.description}" style="font-size:13px;" /> </p:column> <p:column headertext="status" style="font-size:15px;"> <h:outputtext value="#{metadata.status}" style="font-size:13px;" /> </p:column> <p:column headertext="score" style="font-size:15px;"> <h:outputtext value="#{metadata.score}" style="font-size:13px;" /> </p:column> </p:column> </p:datatable> </p:rowexpansion> </p:datatable>
Comments
Post a Comment