We are using Primefaces Datatable component where the values are coming from a database. in our xx.xhtml file below code is present
<p:dataTable id="activitydescription" var="type"
value="#{activityBean.activityList}" rows="#{activityBean.rowNo}" rowKey="#{type.activitySchemeId}"
selection="#{activityBean.activityDTO}"
emptyMessage="No value found with given criteria"
paginatorPosition="bottom" sortMode="single" paginator="#{empty activityBean.activityList ? 'false':'true' }"
dynamic="true"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
rowIndexVar="rowIndex"> ........
Now when this page is rendered on the browser we have seen a hidden field is created as below..
<input type="hidden" id="formId:activitydescription_selection" name="formId:activitydescription_selection" autocomplete="off" value="" /></div><script id="formId:activitydescription_s" type="text/javascript">
The field is created dynamically when the datatable component is rendered on browser. So is there any way we can avoid this hidden field to be created.?
I hope i have rephrased my query very clearly.
Any help would be really appreciated.