jsf newcommer needs help

Hello,

I'm working on an existing web project that uses faces. I have the problem that I want to display an image on a table. The image is based on a value in a bean {green, yellow, red}, so instead of returning the value, it returns html code for a image for that particular value (Example: value is green, it returns <img src="images/green.gif"/>.

Problem is that the page displays the actual text, not the image. I've tried adding escape="false" to the tag, but get an error(not part of tag library). I have code that does display it correctly, but it uses

<h:outputText value="#{name.section}" escape="false"/> and the code I'm working on uses <cnot:out value="Score: ${note[4]}" />

Is there a simple solution without having to rewrite everything? Thanks...

[813 byte] By [maccarteea] at [2007-11-27 5:16:27]
# 1
Use h:graphicImage instead.
BalusCa at 2007-7-12 10:39:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks, I just found an example that uses escapeXml="false" and that seems to work.
maccarteea at 2007-7-12 10:39:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If it is only for images, I'd rather to use h:graphicImage with the value bound to the backing bean however. It is more clean and it saves you the effort to append "<img src=\"" and "\" />" to the path everytime.
BalusCa at 2007-7-12 10:39:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...