fmi21
fmi21

Reputation: 545

UI5 Property Binding breaks when second binding expression is added

I am having trouble getting a binding to work.

This is working fine: <Title text="{= ${parts: ['user>/currentTenant', 'user>/tenants'], formatter: '.formatter.getTenant'}.name }"/>

This doesn't render the control completely, nothing is logged: <Title text="{i18>currentTenant} {= ${parts: ['user>/currentTenant', 'user>/tenants'], formatter: '.formatter.getTenant'}.name }"/>

When the first part is text instead of a binding to i18n, the result is the same.

When the i18n binding is inside the expression binding({= ${i18n>...} + ...}), it is working as expected.

Am I missing something? Any help is greatly appreciated.

UI5 version: 1.96, Browser version: Chrome latest

Upvotes: 0

Views: 415

Answers (1)

Boghyon Hoffmann
Boghyon Hoffmann

Reputation: 18044

I don't think this has ever worked. According to https://sdk.openui5.org/api/sap.ui.model.CompositeBinding#overview:

A nesting of composite bindings is currently not supported.

The 2nd binding (expression binding) is yet another instance of CompositeBinding.

Upvotes: 1

Related Questions