Escaping in onmouseover attribut
Hi guys,
I'm using the attribute onmouseover of a commandLink. The JS - function looks like this:
do_something('#{MyBean.dao.info1}')
The values from the Bean aren't escaped and it would be quite a big effort to change this. Is there any possiblity to do it in an other way?
[329 byte] By [
CH.Sanixa] at [2007-11-27 1:25:35]

# 3
Well, you didn't mention you was using it straight in a JSF component, I expected that this was a snippet of a <script> code.
OK, the approach as you posted here above should just work. Maybe the value is out of the scope somehow.
Don't you see any errors in the log? What does h:outputText value="#{MyBean.dao.info1}" at the same line say?
# 4
Well yes it works, but I want to have my values escaped.because if I get a string like " ' / \ ' from the getter - Method, the javascript Code won't work in the end. So there's no error, but a javascript error for certain values.