a4j:jsFunction JavaScript error in IE6/7/8
------------------------------------------
Key: RF-7489
URL: https://jira.jboss.org/jira/browse/RF-7489
Project: RichFaces
Issue Type: Bug
Components: browser compatibility
Affects Versions: 3.3.1
Environment: IE 6/7/8
Reporter: Josh Long
three instances of a4j:jsFunction seem to be causing a javascript error in IE6
/ 7 / 8 I'm running a Seam application using RichFaces. The page itself is
pretty tame, and its producing an error in IE6/7/8. the error is very strange:
Quote:
Message: Expected ')'
Line: 1
Char: 189
Code: 0
URI: http://blach/blah//blah.html?cid=1023
the javascript it's pointing to is generated by a4j:jsFunction. there are only
3 instances, which i reproduce here
Code:
<a4j:jsFunction name="reRenderFiles"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue" />
<a4j:jsFunction name="handleUploadCompletion" rendered="#{selectable}"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue"
oncomplete="handleUploadComplete()" />
<a4j:jsFunction name="handleUploadCompletion" rendered="#{not
selectable}"
reRender="filesList,newFilesList"
ajaxSingle="true" eventsQueue="queue"
oncomplete="unlockScreen()" />
the only way to get the error to go away (and in so doing break the
functionality) is to remove one of the a4j:jsFunction components.
for example, if I remove:
Code:
<a4j:jsFunction name="reRenderFiles"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue" />
it works, though it doesnt seem to matter which I remove, so long as I do. I
wondered if this strangeness might be due to cached versions of my class files
in Eclipse or tomcat, but nothing seem to fix it except removing a
a4j:jsFunction component.
Any ideas? Any way of controlling the output of the JS so that it produces
super clean, non IE-offensive code? Naturally, it works perfectly in
Safari/Chrome/Firefox.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues