1 Reply Latest reply on Jul 7, 2009 9:42 AM by Prabhat Jha

    EL string compare not working

    gamba Newbie

      Hi,

      I tried to use a string compare inside the <rich:columnGroup> component. I'm using a map with String, MyType - values and using the follwing code:

      <rich:columnGroup rendered="#{props.attributes['type'] == '1'}">
       <!-- code is rendered -->
       ...
      


      Nothing is rendered. When I write the condition with an outputText the output is "1":

      <h:outputText value="props.attributes['type']" />
      


      When I try to use the <h:column> element it also works fine and the following code is rendered:

      <h:column rendered="#{props.attributes['type'] == '6'}">
       <!-- code is rendered -->
       ...
      


      Additionally when I use <rich:column> instead of columnGroup it also works fine:

      <rich:columnGroup rendered="#{props.attributes['type'] == '6'}">
       <!-- code is rendered -->
       ...
      



      Is it a bug or a feature?

      Thx
      Gamba