]
Nick Belaevski resolved RF-7923.
--------------------------------
Resolution: Rejected
Assignee: Nick Belaevski
Not a bug. Add script to re-rendering explicitly.
inline javascript is not processed for ajax call
------------------------------------------------
Key: RF-7923
URL:
https://jira.jboss.org/jira/browse/RF-7923
Project: RichFaces
Issue Type: Bug
Environment: Richfaces 3.3.1
Reporter: Dave Chen
Assignee: Nick Belaevski
In ajax response, we use Tomahawk to add script and inline script into head section, from
debug,
the ajax response includes the following:
<head>
...
<script type="text/javascript" src="/foo.js">
<script type="text/javascript"><!--
function createFoo(a,b) {...}
//--></script>
...
</head>
<body>
...
<span id="org.ajax4jsf.oncomplete">createFoo(1,2);</span>
....
</body>
we got the error:
debug[16:12:19,879]: call selectSingleNode for id= org.ajax4jsf.oncomplete
debug[16:12:19,889]: Call request oncomplete function after processing updates
debug[16:12:19,919]: call selectSingleNode for id= _ajax:data
error[16:12:19,929]: Error evaluate oncomplete function undefined
error[16:12:19,929]: Exception on status change:
From the error message, the inline script is not processed, so the createFoo(...) is not
defined.
<script type="text/javascript"><!--
function createFoo(a,b) {...}
//--></script>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: