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

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Jan 9 20:17:04 EST 2009


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

Nick Belaevski updated RF-5617:
-------------------------------

    JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=148349


> 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
>    Affects Versions: 3.2.2
>         Environment: Windows XP, IE6/7
>            Reporter: yagish sharma
>             Fix For: Future
>
>
> 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