Reputation: 485
I'm trying to do a conditional statement with Expression Language, but can't get it to work. According to JSF 2.0 documentation it's possible, but as XPages is on JSF 1.2 I don't know if it's supported.
Basically this is the code:
<xp:text
escape="true"
id="computedField1">
<xp:this.value><![CDATA[#{(repeatLine.columnvalue >= 1) ? 'a' : 'b'}]]></xp:this.value>
</xp:text>
The compiler gives an error "Error in value syntax, property 'value'". The problem is the same if I convert the "xp:this.value" to an attribute in the "xp:text" tag.
Any thoughts?
Upvotes: 3
Views: 2480
Reputation: 2178
You can use it, but you have to use it with the $ instead of the # operator, at least I haven't been able to make it work with it.
Upvotes: 4