[
https://issues.jboss.org/browse/RF-12210?page=com.atlassian.jira.plugin.s...
]
Jean ANDRE edited comment on RF-12210 at 4/26/12 2:42 PM:
----------------------------------------------------------
OK, we found something. It seems that the generated code for the tag
<a4j:jsFunction> it different from a version to another version.
Generated code for old version is: (The working version)
{code}
<!-- -->
<!-- ENTER TABS -->
<!-- --><span id="EnterTabScript" style="display:
none;"><script
type="text/javascript">enterTab=function(activeTab){RichFaces.ajax("EnterTabScript",null,{"incId":"1","parameters":{"activeTab":activeTab}
} )};</script></span>
<!-- -->
<!-- CLOSE TAB -->
<!-- --><span id="closeTabScript" style="display:
none;"><script
type="text/javascript">closeTab=function(tabId){RichFaces.ajax("closeTabScript",null,{"incId":"1","parameters":{"tabId":tabId}
} )};</script></span>
<!-- -->
<!-- CLOSE ACTIVITY -->
<!-- --><span id="closeActivityScript"
style="display: none;"><script
type="text/javascript">closeActivity=function(activityId){RichFaces.ajax("closeActivityScript",null,{"incId":"1","parameters":{"activityId":activityId}
} )};</script></span>
{code}
Generated code for a recent is: (The buggy version)
{code}
<!-- -->
<!-- ENTER TABS -->
<!-- --><span id="enterTabScript" style="display:
none;"><script
type="text/javascript">enterTab=function(activeTab){RichFaces.ajax("enterTabScript",null,{"parameters":{"activeTab":activeTab}
,"incId":"1"} )};</script></span>
<!-- -->
<!-- CLOSE TAB -->
<!-- --><span id="closeTabScript" style="display:
none;"><script
type="text/javascript">closeTab=function(tabId){RichFaces.ajax("closeTabScript",null,{"parameters":{"tabId":tabId}
,"incId":"1"} )};</script></span>
<!-- -->
<!-- CLOSE TASK -->
<!-- --><span id="closeTaskScript" style="display:
none;"><script
type="text/javascript">closeTask=function(taskId){RichFaces.ajax("closeTaskScript",null,{"parameters":{"taskId":taskId}
,"incId":"1"} )};</script></span>
{code}
We can pinpoint a clear difference with the order of the parameter
"incId":"1" !!!!???
{code}
-
RichFaces.ajax("EnterTabScript",null,{"incId":"1","parameters":{"activeTab":activeTab}
} ) (working)
-
RichFaces.ajax("enterTabScript",null,{"parameters":{"activeTab":activeTab}
,"incId":"1"} ) (not working)
{code}
was (Author: jorelia64):
OK, we found something. It seems that the generated code for the tag
<a4j:jsFunction> it different from a version to another version.
Generated code for old version is: (The working version)
{code}
<!-- -->
<!-- ENTER TABS -->
<!-- --><span id="EnterTabScript" style="display:
none;"><script
type="text/javascript">enterTab=function(activeTab){RichFaces.ajax("EnterTabScript",null,{"incId":"1","parameters":{"activeTab":activeTab}
} )};</script></span>
<!-- -->
<!-- CLOSE TAB -->
<!-- --><span id="closeTabScript" style="display:
none;"><script
type="text/javascript">closeTab=function(tabId){RichFaces.ajax("closeTabScript",null,{"incId":"1","parameters":{"tabId":tabId}
} )};</script></span>
<!-- -->
<!-- CLOSE ACTIVITY -->
<!-- --><span id="closeActivityScript"
style="display: none;"><script
type="text/javascript">closeActivity=function(activityId){RichFaces.ajax("closeActivityScript",null,{"incId":"1","parameters":{"activityId":activityId}
} )};</script></span>
{code}
Generated code for a recent is: (The buggy version)
{code}
<!-- -->
<!-- ENTER TABS -->
<!-- --><span id="enterTabScript" style="display:
none;"><script
type="text/javascript">enterTab=function(activeTab){RichFaces.ajax("enterTabScript",null,{"parameters":{"activeTab":activeTab}
,"incId":"1"} )};</script></span>
<!-- -->
<!-- CLOSE TAB -->
<!-- --><span id="closeTabScript" style="display:
none;"><script
type="text/javascript">closeTab=function(tabId){RichFaces.ajax("closeTabScript",null,{"parameters":{"tabId":tabId}
,"incId":"1"} )};</script></span>
<!-- -->
<!-- CLOSE TASK -->
<!-- --><span id="closeTaskScript" style="display:
none;"><script
type="text/javascript">closeTask=function(taskId){RichFaces.ajax("closeTaskScript",null,{"parameters":{"taskId":taskId}
,"incId":"1"} )};</script></span>
{code}
We can pinpoint a clear difference with the order of the parameter
"incId":"1" !!!!???
{code}
-
RichFaces.ajax("EnterTabScript",null,{"incId":"1","parameters":{"activeTab":activeTab}
} ) (working)
-
RichFaces.ajax("enterTabScript",null,{"parameters":{"activeTab":activeTab}
,"incId":"1"} ) (not working)
{code}
_Lang.byId - reference a reference node or an identifier must be
passed
-----------------------------------------------------------------------
Key: RF-12210
URL:
https://issues.jboss.org/browse/RF-12210
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2.0.Final
Environment: FireFox 12 or 8.0.7601 - GlassFish 3.1.2 - Mojarra 2.1.7 - Windows
7
Reporter: Jean ANDRE
Attachments: NestedEar_RF-12210.ear, NestedEar_RF-12210.ear,
NestedWeb_RF-12010-Web.zip, NestedWeb_RF-12010-Web.zip
We got the following javascript error message under firebug:
_Lang.byId: reference un noeud de référence ou un identifiant doit être passé -
jsf.js.jsf?ln=javax.faces (ligne 1).
Under IE the error message is:
Message : Erreur non spécifiée.
Ligne : 1
Caractère : 37254
Code : 0
URI :
http://localhost:8080/NestedWeb/javax.faces.resource/jsf.js.jsf?ln=javax....
At this code:
){throw this.makeException(new
Error(),null,null,this._nameSpace,"byId",this.getMessage("ERR_REF_OR_ID",null,"_Lang.byId","reference"));
This error did not appear in previous version of JSF - More over we have also new another
error related to
<rich:tab id="#{tab.id}" onenter="enterTab('#{tab.id}');"
headerClass="tab-header">
The error occurs when we want to close a dynamic tab.
--
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