You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Remo Liechti (JIRA)" <de...@myfaces.apache.org> on 2006/09/26 08:58:50 UTC

[jira] Created: (TOMAHAWK-706) body onload does not exist

body onload does not exist
--------------------------

                 Key: TOMAHAWK-706
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
             Project: MyFaces Tomahawk
          Issue Type: Improvement
    Affects Versions: 1.1.3
            Reporter: Remo Liechti
            Priority: Blocker


We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
Regards,
Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12437930 ] 
            
Werner Punz commented on TOMAHAWK-706:
--------------------------------------

I dont think this is a real issue, onload is inherently evil and causes more problems than it solves.
To my experience extensive body onload causes severe engine lockups in the ie 6 and 7 engine
once the page becomes more complicated (been there done that, moved along).
Also it breaks some components which uses the dojo onload infrastructure.

If you need something which simulates this, use the dojo onload function which does resolve these problems
in a somewhat better manner or use deferred javascript initialization
via a small timeout of a handful of miliseconds. This causes the browser to render first
and then executes the initialisation.
In my experience this is the least problematic way to resolve those problems, it even works on a 
page which brings the IE to its limits without any engine lockups etc...


> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12438043 ] 
            
Matthias Weßendorf commented on TOMAHAWK-706:
---------------------------------------------

but that all should not stop a contributor from donating a "onload" attr. Maybe not all are using dojo :)

> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12438049 ] 
            
Mario Ivankovits commented on TOMAHAWK-706:
-------------------------------------------

But just to be fair, you dont have to use dojo to simulate the onload, you can use the setTimeout("", 0) thing

> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12438047 ] 
            
Mario Ivankovits commented on TOMAHAWK-706:
-------------------------------------------

yea - hopefully the contributor will collect all html attributes :-)

> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (TOMAHAWK-706) body onload does not exist

Posted by "Lance Frohman (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=all ]

Lance Frohman resolved TOMAHAWK-706.
------------------------------------

    Fix Version/s: 1.1.5-SNAPSHOT
       Resolution: Fixed

added onload, onunload, onresize, onkeypress to <t:documentBody>
revision 450661


> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>         Assigned To: Lance Frohman
>            Priority: Minor
>             Fix For: 1.1.5-SNAPSHOT
>
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Remo Liechti (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12438046 ] 
            
Remo Liechti commented on TOMAHAWK-706:
---------------------------------------

Yes. We don't like to use Dojo just to handle the onload stuff only. The body onload should just execute some small JS, so this would not be that bad.

> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-706) body onload does not exist

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-706?page=comments#action_12438041 ] 
            
Mario Ivankovits commented on TOMAHAWK-706:
-------------------------------------------

Yea, I had the same experience, but wasnt sure if the "body onload" is still broken.
For what I was is, that you also can execute a javascript using setTimeout with a timout of 0 seconds.

> body onload does not exist
> --------------------------
>
>                 Key: TOMAHAWK-706
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-706
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>    Affects Versions: 1.1.3
>            Reporter: Remo Liechti
>            Priority: Minor
>
> We are using myFaces 1.1.3. I have to do some javascript when the page is loaded. But there is no onload attribute in <t:documentBody>. Since this onload does not exist, no JavaScript can be executed on page load. This is very bad, because parts of our application need to be able to do this. Can you provide a workaround or a patch? Matthias Wessendorf [matzew@apache.org] knows about it, he told me to add it to jira.
> Regards,
> Remo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira