How to call Javascript function in JSF EL conditionally?
- by Paul
I have to call Javascript funtion based on the bean value. i use the following code
onmouseover="#{occasionBean.user.userPreference.defaultPreview==true?'':'Tip()'})"
I need to send some parameters in Tip() like this
Tip('<img src="pics/image.jpg" width="60">')
Error i am getting is javax.servlet.jsp.JspException:…