You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Pawel Koloszko (JIRA)" <de...@myfaces.apache.org> on 2006/04/28 11:33:37 UTC

[jira] Created: (TOMAHAWK-397) InputSuggestAjax does not work when body onload is invoked

InputSuggestAjax does not work when body onload is invoked
----------------------------------------------------------

         Key: TOMAHAWK-397
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-397
     Project: MyFaces Tomahawk
        Type: Bug

  Components: InputSuggestAjax  
    Versions: 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT    
 Environment: Windows, IE6, Firefox
    Reporter: Pawel Koloszko


InputSuggestAjax does not work when in body tag a function is invoked onload. Place <body onload="alert('bum');"> in your page and check it.

-- 
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-397) InputSuggestAjax does not work when body onload is invoked

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

Martin Marinschek resolved TOMAHAWK-397.
----------------------------------------

    Fix Version/s: 1.1.5-SNAPSHOT
       Resolution: Won't Fix
         Assignee: Werner Punz

Thanks to Werner for this evaluation.

A little more explanation: With dojo in place, you cannot override the onload attribute of the body anymore - dojo will not work anymore if you do.

Werner's two options are the work-around

- for the first option: dojo.addOnLoad(init); is the method you can call for this, init needs to be a function pointer,
- for the second option: the timeout you can set to a very low ms value, it should work still.

regards,

Martin

> InputSuggestAjax does not work when body onload is invoked
> ----------------------------------------------------------
>
>                 Key: TOMAHAWK-397
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-397
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: InputSuggestAjax
>    Affects Versions: 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT
>         Environment: Windows, IE6, Firefox
>            Reporter: Pawel Koloszko
>         Assigned To: Werner Punz
>             Fix For: 1.1.5-SNAPSHOT
>
>
> InputSuggestAjax does not work when in body tag a function is invoked onload. Place <body onload="alert('bum');"> in your page and check it.

-- 
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-397) InputSuggestAjax does not work when body onload is invoked

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

Werner Punz commented on TOMAHAWK-397:
--------------------------------------

I dont think this is a bug, onload has to be cascaded, now if someone overwrites the onload explicitely the components own onload fails.
It is better either to cascade the onload (via the dojo onload function) or do not use onload at all outside but use a timer (which is the less problematic way, because ie chokes on dom alterations during onload)


> InputSuggestAjax does not work when body onload is invoked
> ----------------------------------------------------------
>
>          Key: TOMAHAWK-397
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-397
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: InputSuggestAjax
>     Versions: 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT
>  Environment: Windows, IE6, Firefox
>     Reporter: Pawel Koloszko

>
> InputSuggestAjax does not work when in body tag a function is invoked onload. Place <body onload="alert('bum');"> in your page and check it.

-- 
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