I have a problem to use EL to display nested properties.
suppose I have a beanA, and beanB; beanA contains beanB, and beanB has property propA.
if I want to display propA, I can use
<h:outputText value='#{beanA.beanB.propA}'/>
however if beanA has other beans, and I want to display those beans dynamically, I will take the "beanB.propA" part as a dynamic variable.
of course I can't use <h:outputText value='#{beanA.beanX.propX}'/>, as beanX.propX is not a static
string. I tried <h:outputText value='#{beanA[beanX.propX]}'/> as well, it can't automatically get the second level from beanX.
anyone can help me?
[ July 06, 2006: Message edited by: Daoyue Ming ]