[jboss-user] [JBoss Portal] - EL string compare not working

Gamba do-not-reply at jboss.com
Tue Jul 7 04:06:37 EDT 2009


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



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242114#4242114

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242114



More information about the jboss-user mailing list