Details
-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
8.5.2
-
None
Description
following shadow component syntax causes <other> to be applied 3 times!
{{<choose>
<when test="@load('x' eq '1')"></when>
<when test="@load('x' eq '2')"></when>
<when test="@load('x' eq '3')"></when>
<otherwise>
<div
viewModel="@id('vm') @init(view['xy.record.RecordListVM'])">
</div>
</otherwise>
</choose>}}
logging is as following:
{{[SystemMonitor] View model xy.record.RecordListVM[1] initialized for desktop z_keg
[SystemMonitor] View model xy.record.RecordListVM destroyed for desktop z_keg [0]
[SystemMonitor] View model xy.record.RecordListVM[1] initialized for desktop z_keg
[SystemMonitor] View model xy.record.RecordListVM destroyed for desktop z_keg [0]
[SystemMonitor] View model xy.record.RecordListVM[1] initialized for desktop z_keg
[SystemMonitor] View model xy.record.RecordListVM destroyed for desktop z_keg [0]
[SystemMonitor] View model xy.record.RecordListVM[1] initialized for desktop z_keg}}
Our understanding is, that <otherwise> is like default of switch-case statement of java. In fact, <otherwise> seems to be applied for each negative <when> test!!!!