[
https://jira.jboss.org/jira/browse/RF-5617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Belaevski resolved RF-5617.
--------------------------------
Resolution: Won't Fix
http://msdn.microsoft.com/en-us/library/ms533044(VS.85).aspx - "Note: When
Windows Internet Explorer encounters a tag that defines an id or name, it
creates a reference to it in the global scope so that it can be easily located
by script; however, this is considered non-standard behavior. To ensure the
widest browser support for your DHTML, use getElementById to locate target
elements."
As a workaround: <a4j:jsFunction id="func1" name="window.func1"
oncomplete="alert('c')" />
> a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"
> -----------------------------------------------------------------
>
> Key: RF-5617
> URL: https://jira.jboss.org/jira/browse/RF-5617
> Project: RichFaces
> Issue Type: Bug
> Components: component-a4j-core
> Affects Versions: 3.2.2
> Environment: Windows XP, IE6/7
> Reporter: yagish sharma
> Assignee: Nick Belaevski
> Fix For: 3.3.2.CR1
>
>
> a4j:jsFunction in IE6/7 breaks when html:form's prependId="false".
> In RichFaces3.2.2SR1, a4j:jsFunction generates an HTML script, which breaks
> in IE6/7, but works in FireFox. The issue is the way the jsFunction is
> rendered.
> Here is a sample of how the script is rendered in Ajax4JSF and in RichFaces
> when html:form's prependId attribute is false.
> <a4j:jsFunction name="func1" and id="func1" action="doSomething()"/>
> Notice that the name and id fields are kept same.
> In Ajax4JSF, this will render as -
> script id="func1" type="text/javascript"
> function func1(){.........};
> /script
> In RichFaces, this renders as -
> script id="func1" type="text/javascript">
> func1 = function(){.........};
> /script
> Having the id of script tag and the func1 prototype name as same creates the
> problem. IE6/7 while parsing the script tag gives an error - "Object does not
> supports this property".
> In RichFaces the renderer for jsFunction is AjaxFunctionRendererBase. This
> renderer's getFunction() method has changed from Ajax4JSF and generates this
> inappropriate javascript code.
--
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