p:datatable sort language with responsive reflow = “true”

前端 未结 2 1263
忘掉有多难
忘掉有多难 2021-01-24 09:46

How can I change the language for Sorting on PF DataTable component with reflow = \"true\" (so responsive Datatable)?

The problem is that on mobile screen, we can sort d

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 10:19

    The intended way to do this is to define the following properties in your resource files (see Messages.properties)

    primefaces.datatable.SORT_LABEL = Sort
    primefaces.datatable.SORT_ASC = Ascending
    primefaces.datatable.SORT_DESC = Descending
    

    You can see this when you look at the DatatableRender of primefaces.

    Notice i18n is done in different ways in primefaces. Some components like calendar or schedule must be translated via javascript. See here

提交回复
热议问题