I'm searching and searching but I can not find anything to solve my problem. I use datatable (primheses) and am surprised how can I change the language / output of some areas.
More accurate, I want to change {CurrentPageReport} in PaginatorTemplate. Now, it looks a lot easier: (100 of 100). I like it (page 100 of 100, 500 results).
I tried a lot, but nothing works. Last I did:
function change_text () {$ (".ui-paginator-current") Each (function () {$ (this) .html ("simple test");}); } $ (".ui-icon"). Each (function (index) {$ (this) .bind ("click", function () {change_text ();});}); (ui-icon is part of every button in the table.)
But it's not really effective as you can see :-) This solution is half- way. When I press a button (on the next page, on the previous page), the text in the .ui-paginator-current field changes back to the default template. I know ... the reason for this is that this area is being reloaded too.
I also tried to change the primefaces code but I could not find the correct code area.
I am working with JSF 2.0.3 and Primface 2.2.1. How can I solve my problem? Can I load the pagerater template from Bean? This will really help me if I can change the text from "100 to 0" to "0 oce 100" (German).
Hope you can help me, every time I have a problem. / P>
of Ioannis.
found:
& lt; P: Data tab current page report report = "{currentPage} # {loc.of} {totalPages}" />
Hope this will help you!
Comments
Post a Comment