java - (JSF 2.0) Problems with primefaces dataTable component. -


I just want to create a simple figure with the facility of paging, but I have 2 problems:

1-Data is displayed, but the Pageinator is not shown in the browser (I've tried IE and Chrome)

   & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.filename}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "description" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.description}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: outputtext value = "upload date" / & gt; & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.uploadDate}" /> & Lt; / P: column & gt; & Lt; / P: DataTable & gt; 2- Google Chrome is still not displayed in the paginator and when I refresh, some extraction dialog also appears:  

 Enter image details here

Does this mean that primetime is not compatible with Chrome?

----- ------------------- UPDATE 1 ----------------- ------------ -

It looks like this holds the page:

   & Lt; H: value of the command button = "search" /> & Lt; H: SelectionOrderIDO ID = "SearchFilter" value = "" & gt; & Lt; F: selectItem id = "r1" item label = "text document (.pdf, .docx ...)" /> & Lt; F: selectItem id = "r2" item label = "audio (.mp3, .wav ...)" /> & Lt; F: selectItem id = "r3" item label = "multimedia (.mpeg, flv ...)" /> & Lt; F: selectItem id = "r4" item label = "other ..." /> & Lt; / H: selectOneRadio & gt; & Lt; P: dataTable var = "waste" value = "# {resultsController.allGarbage}" pgenerator = "true" rows = "10" pageratrate = "{CurrentPageReport} {first page} {previous page link} {page links} {next pg Link} {last page link} {RowsPerPageDropdown} "rowsPerPageTemplate =" 5,10,15 "& gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: OutputText value = "filename" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.filename}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "description" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.description}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: outputtext value = "upload date" / & gt; & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.uploadDate}" /> & Lt; / P: column & gt; & Lt; / P: DataTable & gt; & Lt; / H: form & gt; & Lt; / Ui: defined & gt;   

------------------------ Update 2 ----- ------------------------

This image is how the component in Chrome is displayed and how Chrome console shows an error Is: Enter image details here

If you generated HTML & lt; Head & gt; In the browser, the rightclick page, view the source , does not mean that you have JSF & lt; h: head & Gt; needs to change the HTML & lt; head & gt; in its templates. This is where all resource dependencies, CSS / JS / images etc. that are used in JSF components / libraries ) Will end in the end.

In the pre-prime version (at least 2.0), you will need to configure that primer to configure the resource servlet. They can provide service to the jar file:

  & Lt; Servlet & gt; & Lt; Servlet-name & gt; Resource Servlet & lt; / Servlet-nam E & gt; & Lt; Servlet category & gt; Org.primefaces.resource.ResourceServlet & lt; / Servlet category & gt; & Lt; / Servlet & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; Resource Servlet & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / Primefaces_resource / * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt;   

I'm sure the versions of the new primetime are not even beyond 2.0, currently the user manual is not free for a few reasons.

Comments