[
https://issues.jboss.org/browse/RF-12038?page=com.atlassian.jira.plugin.s...
]
Jean ANDRE commented on RF-12038:
---------------------------------
Yes, I know about the link then...is there a better way?
I'm not sure I understand your question. Well, we use Mojarra 2.1.6 and if you install
and run the workbench, probably you can see and reproduce the phenomenon. It is a specific
IE problem, not a FireFox problem. Under IE, this is the explanation found in forum, IE
generates a javascript variable which has the same id as the component (the tag). Like
this, I imagine, it is easier to manipulate the component via this variable. But in our
case, relate to the a4j:function, Richfaces declares also a javascript variable as an
handle to a function. Then, there is a clash, one variable is hidden/destroy by the other
as they have the same name, just because we gave to a4j:function the same id as the name
of the function. When you try to access to the function, it does not work because it is a
tag object and then you receive the famous message...
So, to summarize, by knowing the way of IE works, developers have to pay attention about
this fact. It is not a problem of RichFaces but RichFaces can probably display a warning
message or have a specific compatibility note in their PDF/HTML documentation.
Now, it seems that the error occurs in JSF itself, inside JSF itself. Note that the same
error occurs when from a button, we send a click event to the close image of the tab -
RF-12060
Reported by IE
============
{code}
Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Horodateur : Fri, 23 Mar 2012 13:03:12 UTC
Message : Cet objet ne gère pas cette propriété ou cette méthode
Ligne : 89
Caractère : 28
Code : 0
URI :
http://localhost:12000/CrmWeb/pages/index.jsf
Message : Objet requis
Ligne : 1
Caractère : 22732
Code : 0
URI :
http://localhost:12000/CrmWeb/javax.faces.resource/jsf.js.jsf?ln=javax.faces
{code}
IE8 - Object does not support this property or method -
a4j:jsFunction
----------------------------------------------------------------------
Key: RF-12038
URL:
https://issues.jboss.org/browse/RF-12038
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-a4j-core
Affects Versions: 4.2.0.Final
Environment: cssparser-0.9.6- guava-11.0.1 - hibernate-validator-4.2.0.Final -
JSF/Mojarra 2.1.6 - springframework-3.0.6.RELEASE - sac-1.3 - Windows 7 - IE
8.0.1.7601.17514
Reporter: Jean ANDRE
Assignee: Brian Leathem
Labels: waiting_on_user
Attachments: index.xhtml, NestedWeb.zip, NestedWeb_RF-12038.zip,
ScreenShot_RF-12038.png
Under IE8, IE reports the following error message due to a javascript error. However, the
page are well displayed and the application is running ok.
Object doesn't support this property or method line 177 caracter 1
Object doesn't support this property or method line 177 caracter 99
Under IE Debugger, the line is:
{code}
closeTab=function(tabId){RichFaces.ajax("closeTab",null,{"incId":"1","parameters":{"tabId":tabId}
} )};<
The caracter 99,
is..............................................................................| (here)
{code}
This is a code generated by a4j:jsFunction from the XHTML
{code}
<!-- -->
<!-- CLOSE TAB -->
<!-- -->
<a4j:jsFunction id="closeTab" name="closeTab"
action="#{desktopTabController.doCloseTab}"
render="menu-opened-tabs,desktopTabPanel">
<a4j:param name="tabId"
assignTo="#{desktopTabController.closeTabId}" />
</a4j:jsFunction>
{code}
The rendered code is :
{code}
<!-- -->
<!-- CLOSE TAB -->
<!-- --><span id="closeTab" style="display:
none;"><script
type="text/javascript">closeTab=function(tabId){RichFaces.ajax("closeTab",null,{"incId":"1","parameters":{"tabId":tabId}
} )};</script></span>
{code}
See also this link as we got almost a similar:
https://bugzilla.redhat.com/show_bug.cgi?id=601360.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira