In my application, I am using a global filter to find records in the primetime datatable and I used the databa Has been applied. / P>
When I search for a record and go to export, instead of filtering me, I return a full list of data.
My development environment is: Java 6.0, Primeface 3.2, JSF 2.1, Glassfish Server 3.1.2, Netbeans 7.1.1
Listed below of my data and Data Exporter Code .
My Datasetable Code ::
& lt; P: DataTable value = "# {personnelController.allItems}" Below message = "# {Bundle. Sponsor}" selectionMode = "single" dblClickSelect = "false" var = "item" id = "tbl" rowKey = "# ' Enter code here '{item.id} "sortBy =" # {item.lastName} "sort order =" ascending "widgetVar =" itemTable "paginator =" true "paginator page =" bottom "pager still =" incorrect "currentPageReportTemplate =" {TotalPages} Page {currentPage} "PageReitTemplate =" {CurrentPageReport} {First Page Link} {Former ViousPageLink} {PageLink} {Next PG Link} {LastPageLink} "Rows =" 10 "& gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; P: outputPanel & gt; & Lt; H: output text value = "# {bundle. Global filterprotect}" /> & Lt; P: Input Text id = "globalfilter" onkeyup = "itemTable.filter ()" style = "width: 150px;" / & Gt; & Lt; P: = "global filter" for watermark value = "# {bundle global filter watermark}" /> & Lt; / P: outputPanel & gt; & Lt; / Ch: Aspect & gt; & Lt; P: Ajax event = "select row" listener = "# {personnelController.onRowSelectNavigate}" /> & Lt; P: column sortBy = "# {item.lastName}" filterBy = "# {item.lastName}" filter system = "display: none;" & Gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: OutputText value = "# {Bundle. Personal Title_latname}" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {item.lastName}" /> & Lt; / P: column & gt; & Lt; P: column sortBy = "# {item.firstName}" filterBy = "# {item.firstName}" filter system = "display: none;" & Gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "# {bundle.personal title_first_name}" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {item.firstName}" /> & Lt; / P: column & gt; & Lt; P: column sortBy = "# {item.location.name}" filterBy = "# {item.location.name}" filter system = "display: none;" & Gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "# {bundle. Personal title_location}" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {item.location.name}" /> & Lt; / P: column & gt; & Lt; P: column sortBy = "# {item.department.name}" filterBy = "# {item.department.name}" filter system = "display: none;" & Gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "# {bundle. Priminal_depments}" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {item.department.name}" /> & Lt; / P: column & gt; & Lt; / P: DataTable & gt; I am exporting table data from outside the data:
& Lt; P: data type type = "xls" target = ": personnel: tbl" fileName = "personnel" /> & Lt; / H: commandLink & gt; Please suggest that I am doing anything wrong.
This is my example of a user:
& lt; P: dataTable id = "table" value = "# {myBean.users}" var = "usr" rowKey = "# {usr} user name}" widgetVar = "usrwv" & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; P: outputPanel & gt; & Lt; H: Output Text Value = "Search All Fields:" /> & Lt; P: InputText id = "global filter" onkeyup = "usrwv.filter ()" style = "width: 150px" /> & Lt; / P: outputPanel & gt; & Lt; / Ch: Aspect & gt; & Lt; P: column headerText = "user name" typeby = "# {usr.username}" filterBy = "# {usr.username}" & gt; & Lt; F: Aspect Name = "Header" & gt; Username & lt; / F: Aspect & gt; & Lt; H: output text value = "# {usr.username}" /> & Lt; / P: column & gt; & Lt; P: column headerText = "role" sortBy = "# {usr.role}" filterBy = "# {usr.role}" & gt; & Lt; F: Aspect Name = "Header" & gt; Role & lt; / F: Aspect & gt; & Lt; H: output text value = "# {usr.role}" /> & Lt; / P: column & gt; & Lt; F: aspect names = "footer" & gt; & Lt; H: commandLink & gt; & Lt; P: graphic image value = "/ resources / images / excel." Title = "my xcel" /> & Lt; P: data type portter type = "csv" target = "table" fileName = "all_users" /> & Lt; / H: commandLink & gt; & Lt; / Ch: Aspect & gt; & Lt; / P: DataTable & gt; In addition, you are putting the exporter and the data in two different forms. Trying to put them in the same form should work.
Comments
Post a Comment