primefaces - JSF Sorting a datatable column throwing error -


i building primefaces data tables dynamically , datatable code inside composite interface. inside of loop call composite using primefaces columns tag. when add sortby="#{tblvar[column.name]}" columns tag , sort following error

sortby="#{tblvar[column.name]}": property 'documentstatuscode' not found on type org.kheaa.verify.data.verificationreviewerpf

the part of error states property documentstatuscode not found on type same on errors, type org.kheaa.verify.data.verificationreviewerpf changes depending on data table trying sort column on.

the documentstatuscode property of list item last data table created. verificationreviewerpf list item of data table trying sort on.

even though error occurs evertime sort column columns still seem sort correctly. how prevent error occuring

<p:datatable id="datatable" value="#{cc.attrs.datatablelist}" var="tblvar" paginator="true" rows="10"     paginatoralwaysvisible="false" rowsperpagetemplate="5,10,15,20,25"     rowindexvar="tblindx" editable="#{cc.attrs.datatabletemplate.editable}"     filteredvalue="#{cc.filteredlist}">  <p:ajax event="rowedit" listener="#{cc.attrs.actionmethodsbean.updaterowaction(tblvar, cc.attrs.datatabletemplate)}"         update=":#{cc.message.clientid}"/>  <p:columns id="columns" value="#{cc.attrs.datatabletemplate.columns}"     var="column" headertext="#{column.heading}" editable="true"     filterby="#{tblvar[column.name]}"     sortby="#{tblvar[column.name]}"> 

@update each of datatables created in it's own accordian panel. error occurring when navigating between panels.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -