Sorting nested properties in LazyQueryContainer

I have problems with sorting nested properties. There´s a simple OneToOne mapping:

Person->Account

. The relation is displayed int the table but when I sort this column only records will be sorted that has a account assigned. Does somone knows what i´m doing wrong? Are there some examples available how nested properties can be sort.

Really nobody? I´ve attached my test application. Test case is really simple. Start the application and sort the Loginname column. You will directly become the error:

SEVERE: java.lang.RuntimeException: Unable to get item id for index: 0 from container using Container.Indexed#getIdByIndex() even though container.size() > endIndex. Returned item id was null. Check your container implementation!
at com.vaadin.data.ContainerHelpers.getItemIdsUsingGetIdByIndex(ContainerHelpers.java:90)
13113.zip (13.4 KB)

Hi Sven
Please, try to add to your container configuration!


container.getQueryView().getQueryDefinition().setMaxNestedPropertyDepth(2);