Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use != in jsf  RSS feed

 
Abhra Kar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a condition where I have to check a name "MatchAll" is present or not in "service.name" .if present I will not render.

I have written ---<h:graphicImage url="/images/tokeep/icon_copy12.png"
......................................................
rendered="#{service.name != 'MatchAll'}" />

but it is not working , is it the correct syntax.Please give some idea
Thanks in advance
 
Abhinav Taduka
Greenhorn
Posts: 6
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use proper syntax for EL as follows

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!