[richfaces-issues] [JBoss JIRA] Closed: (RF-5617) a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"

Alexander Dubovsky (JIRA) jira-events at lists.jboss.org
Mon Jun 1 11:57:10 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-5617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Dubovsky closed RF-5617.
----------------------------------

    Assignee: Nick Belaevski  (was: Alexander Dubovsky)


> 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

        



More information about the richfaces-issues mailing list