I want to make my tables ignore letter case when sorting, so I found this link, but I can’t figure out where I can actually make the table use the new ItemSorter.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to add the ItemSorter to the container used by the table; two container types expose #setItemSorter – IndexedContainer and AbstractBeanContainer. The default container for a Vaadin table is an IndexedContainer.
The following snippet should add an ItemSorter to a table.