Hi Anissa,
This won't work because while JSFTemplating can support boolean
equations like this, JSF can't. You are trying to set the "rendered"
property to that expression, so the "property" must evaluate it (i.e.
the JSF charting component).
Anyway, I think JSF's EL can do this sort of thing... something like:
#{pageSession.doCharting && requestScope.hasSevereChart}
I'm not sure if that syntax is correct, and I'm not sure if the EL
supports automatic type conversion to booleans if either of those are
Strings like JSFTemplating does. But you might have success w/ the
above EL statement.
Or... you can put this in a JSFTemplating "if" component which DOES
support expressions like yours below:
<if condition="...">
</if>
I hope this helps! Let us know what works for you.
Thanks!
Ken
Anissa Lam wrote:
> Hi Ken,
> I want the rendered attribute to evaluate to true only if Both
> condition is true. This is a test in the
> admin-gui/src/docroot/shared/logAnalyzerLoggers_2.inc file
>
> rendered="$pageSession{doCharting} & #{!requestScope.hasSevereChart}"
>
>
> however, even though $pageSession{doCharting} is false,
> the component is still rendered. Do i get the syntax right ?
>
> thanks
> Anissa.