[
https://issues.jboss.org/browse/RF-12080?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč edited comment on RF-12080 at 3/27/12 4:22 AM:
----------------------------------------------------------
Could you please try if {{t:documentBody}} works when you place following script inside
the body?
{code:Javascript}
$(document).ready(function() {
document.title = 'xyz';
});
{code}
Could you please send the respected source code generated by {{<t:documentBody
onload="...">}}?
----
Anyway I think the proper fix is on the Tomahawk's side, since it seems it is doing
something wrong, because simple {{<body onload="...">}} don't break by
using {{document.ready}}:
{code:html}
<html>
<head>
<script type="text/javascript"
src="jquery-1.7.1.js"></script>
</head>
<body onload="alert('2')">
<script type="text/javascript">
jQuery(document).ready(function($) {
alert('1');
});
</script>
</body>
</html>
{code}
Both alerts are shown.
was (Author: lfryc):
Could you please try if {{t:documentBody}} works when you place following script
inside the body?
{code:Javascript}
$(document).ready(function() {
document.title = 'xyz';
});
{code}
Could you please send the respected source code generated by {{<t:documentBody
onload="...">}}?
----
Anyway I think the proper fix is on the Tomahawk's side, since it seems it is doing
something wrong, because simple {{<body onload="...">}} don't break by
using {{document.ready}}:
{code:html}
<html>
<head>
<script type="text/javascript"
src="jquery-1.7.1.js"></script>
</head>
<body onload="alert('2')">
<script type="text/javascript">
jQuery(document).ready(function($) {
alert('1');
});
</script>
</body>
</html>
{code}
rich:hotKey usage clears body onload attribute
----------------------------------------------
Key: RF-12080
URL:
https://issues.jboss.org/browse/RF-12080
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component
Affects Versions: 4.2.0.Final
Environment: myfaces 2.1.6, tomahawk 1.1.11
Reporter: Michael Heinen
Assignee: Lukáš Fryč
Priority: Minor
Labels: myfaces, tomahawk, waiting_on_user
I'm happy to see rich:hotKey in richfaces 4.2, I used it already with richfaces
3.3.3.
One thing I noticed now is that the onload attribute of t:documentboy is cleared on
clientside as soon as rich:hotKey is used on a page. Maybe caused by jquery usage?
From my pov this should be either fixed or documented in the component guide as well as
in the showcase sample.
Workaround is obvious: Instead of onload use document.ready
--
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