Yes, your syntax is wrong, as you are putting values outside the
expression. You should use it like this:
<t:div rendered = "#{bean.property eq 'aValue'}" >
HTH,
Bruno
On 2/15/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> Does anyone know how to make this work:
> (in a jsf page)
>
> <t:div rendered = "#{bean.property}==aValue" >
> ...
> </t:div>
>
> More concrete:
> I have a portal bean, "portalbean", that keeps the current use case.
> ("useCase" being a String property of portalbean)
> Depending on this value, I would like to show or hide stuff on a
> page, using div like e.g.
> <t:div rendered="#{portalbean.useCase}==defineNew">
> The Stack trace gives me a java.lang.String error.
> Is this impossible, or is my syntax wrong?
>
> Philippe
>