I don't believe bindings work within CDATA blocks?
This should work:
<j:Label multiline="true" width="150"
html="{reg.nombre}<br>{reg.apellido1}<br>{reg.apellido2}"/>
Brian
-----Original Message-----
From: Maria Jose Esteve <[email protected]>
Sent: Monday, February 13, 2023 10:33 AM
To: [email protected]
Subject: [EXTERNAL] Binding inside the html property has stopped working
Greetings to all,
After a couple of months of unemployment, I have been able to resume the Royale
project and I have encountered a problem in my itemRenderers: The bindings
included in the html property of a Label control are displayed as is, not
replaced by the expected binded value. [1]
The code:
<j:Label multiline="true" width="150">
<j:html><![CDATA[{General.nz(reg.nombre,'')}<br>{General.nz(reg.apellido1,'')}<br>{General.nz(reg.apellido2,'')}]]></j:html>
</j:Label>
Or
<j:Label multiline="true" width="150">
<j:html><![CDATA[{reg.nombre}<br>{reg.apellido1}<br>{reg.apellido2}]]></j:html>
</j:Label>
[1]
https://drive.google.com/file/d/1WNm_hi2HtU71JaVWGNQgbtr4ukSsbulD/view?usp=share_link
I have identified the source of the problem in Josh's December 7, 2022 commits:
MXMLTreeBuilder: fix CData handling with [CollapseWhiteSpace] metadata (closes
#213) Josh Tynjala [email protected]<mailto:[email protected]>
d50913c14b5b998a82a14e6c14592ad24995e3e2 07/12/2022 23:18:34
MXMLDataBindingParser: use constant instead of literal Josh Tynjala
[email protected]<mailto:[email protected]>
1c3acfe9767359e35fd6fe0607d22be0946243db 07/12/2022 21:39:55
MXMLDataBindingParser: fix data binding being incorrectly detected inside CData
text (references #213) Josh Tynjala
[email protected]<mailto:[email protected]>
e570d87f621837b2dc9e6eafa4de9a79f89600fb 07/12/2022 19:00:22
MXMLRoyaleEmitter: remove dead code that was causing a null exception (closes
#216) Josh Tynjala [email protected]<mailto:[email protected]>
053ea997fcaa1d15b2b3efe77de7ffc10bdb13b5 07/12/2022 18:05:55
@Josh, can this be fixed or do I have to implement it some other way?
Thx.
Hiedra