Can't collapse calculated property in EntityBrowser

Hi,

setting a calculated proprty in the xml descriptor of a group table to collapsed=“true” throws an IllegalArgumentException. Setting the collapsed attribute to false as is the default it works again.

I’ve attached a simple Demo Project. Any idea?

Exception:
IllegalArgumentException: Property ‘someCalculated’ was not found in the container

for example:

<groupTable id="demoesTable"
			width="100%"
			dataContainer="demoesDc">
	<!--snipped-->
	<columns>
		<column id="name"/>
		<column id="someCalculated" collapsed="true"/>
	</columns>
	<!--snipped-->
</groupTable>

and in the java code:

@Install(to = "demoesTable.someCalculated", subject = "columnGenerator")
private Component contactsTableAgeColumnGenerator(Demo contact) {
    return new Table.PlainTextCell("something calculated");
}

demoProject.zip (141.8 KB)

I’m using jmix Version 1.5.3

Thanks,
Martin

this issue is still present in 1.5.4. can anyone reproduce this behaviour?

Hi,

Thank you for reporting the problem, I’ve created a GitHub issue.

Regards,
Gleb