I am trying to set a list to be either of the member list from two different objects obj1
and obj2
, and the obj1
takes priority over obj2
.
So I have the following code:
data-sly-list=${obj1.someList ? obj1.someList : obj2.someList}
But when I run the application I get a parsing error as such:
no viable alternative at input '<EOF>' for expression ${obj1.someList?
As far as I know, the ternary operator works for non data-sly-list htl statements. So is there a work around this or am I doing something wrong?