You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2008/10/30 00:34:44 UTC

[jira] Commented: (TAP5-260) Autocompleter mixin doesn't work when inside zone and after update

    [ https://issues.apache.org/jira/browse/TAP5-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643700#action_12643700 ] 

Howard M. Lewis Ship commented on TAP5-260:
-------------------------------------------

This seems odd ... the Ajax.Autocomplete object was only referenced as a listener to the "first render" textfield ... when that is discarded due to the zone update (destroying the first render textfield, replacing it with an add-on textfield) it should just be released to GC.

Is there any special timing for this?


> Autocompleter mixin doesn't work when inside zone and after update
> ------------------------------------------------------------------
>
>                 Key: TAP5-260
>                 URL: https://issues.apache.org/jira/browse/TAP5-260
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Hugo Palma
>
> I have a textfield with the autocompleter mixin inside a zone. Everything works fine until some event updates the zone.
> After that first update i start getting the following javascript error.
> After some digging i found that what is happening is that when the autcompleter mixin renders again as the zone is updated it generates a new id for it. This id is used to register with the Ajax.Autocompleter javascript object. The problem is that the previous render had already registered the same Ajax.Autocompleter object listener but for the previous id that doesn't id anymore, hence the error.
> $(element) is null			prototype.js (line 1577)
> hide()("subject:11ce7b19c7a:loader")
> stopIndicator()()   controls.js (line 126)
> hide()()controls.js (line 116)
> (?)()()prototype.js (line 209)    
> $(element).style.display = 'none';prototype.js (line 1577

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org