[richfaces-issues] [JBoss JIRA] (RF-12080) rich:hotKey usage clears body onload attribute
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Tue Mar 27 04:20:53 EDT 2012
[ https://issues.jboss.org/browse/RF-12080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679533#comment-12679533 ]
Lukáš Fryč commented on RF-12080:
---------------------------------
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 simply using {{<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
> Fix For: 4.2.1.CR1
>
>
> 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
More information about the richfaces-issues
mailing list