[richfaces-issues] [JBoss JIRA] Commented: (RF-3703) Opera 9.5 doesn't work with RichFaces

Marian FILLO (JIRA) jira-events at lists.jboss.org
Tue Jul 8 12:15:38 EDT 2008


    [ http://jira.jboss.com/jira/browse/RF-3703?page=comments#action_12420396 ] 
            
Marian FILLO commented on RF-3703:
----------------------------------

The quick hotfix is:
1. locate your richfaces-impl-3.x.y.GA.jar file
2. extract \org\ajax4jsf\javascript\scripts\AJAX.js from this jar file.
3. find "document.documentElement.replaceChild" within the AJAX.js file (there is just one occurence)
4. replace it with "document.body.replaceChild"
5. pack the AJAX.js file back to richfaces-impl-3.x.y.GA.jar to the \org\ajax4jsf\javascript\scripts\ folder.
6. use the fixed richfaces-impl-3.x.y.GA.jar (browser cache clean-up may be necessary)

Maybe the same replacement is necessary for \org\ajax4jsf\framework.pack.js file, but for Me it works with just AJAX.js hotfixed. In the web.xml I have the following setting:
 <context-param>
  <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
  <param-value>false</param-value>
 </context-param>

I'm not sure when the framework.pack.js file is used. Maybe for default settings (i.e. org.ajax4jsf.COMPRESS_SCRIPT == true), maybe for org.richfaces.LoadScriptStrategy == ALL.

I'm also not sure what side effects this replacement has, but I didn't find any yet.

> Opera 9.5 doesn't work with RichFaces
> -------------------------------------
>
>                 Key: RF-3703
>                 URL: http://jira.jboss.com/jira/browse/RF-3703
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>         Environment: Opera 9.5
>            Reporter: Nick Belaevski
>         Assigned To: Alexander Smirnov
>            Priority: Critical
>             Fix For: 3.2.2
>
>
> Opera cannot show demosite page, it loads complete page source, but view stays empty.
> The issue is caused by this code line in AJAX script:
> 		    	var importednode ;
> 		   		importednode = window.document.importNode(_script, true);
> 				document.documentElement.replaceChild(importednode,_span);              <---- Stops here
> Replacing document.documentElement with document.body make it work

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list