Hi,
I'm trying to run a conditional JSF[1.1] EL expression to populate the value of a datatable. I basically have 3 session managed beans with lists and depending on a type of object that's current/selected I want the datatable to display that bean's list.
Here's the expression I have so far...
value="#{IsTypeA ? TypeA.list : (IsTypeB ? TypeB.list : TypeC.list)}
{code}
TypeA.list and TypeB.list works fine, but TypeC.list doesn't. Is it acceptable to chain conditional statements in the way I've shown? My IDE (IBM RAD) warns of EL syntax error but yet it still runs.
Thanks for advice on this.
Scott