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

Magnus Rundberget commented on TAP5-260:
----------------------------------------

i´m experiencing the same issue using tapestry 5.1.0.5 (using firefox 3.0.x)

I have a zone with a grid displaying a list of users. Below the grid (in the 
same zone) I have a autocompleter in a form for looking up users by id for 
addittion to the grid.

- Adding users works fine. No problem
- but in the grid I hava actionlink for removing users (through an actionlink 
that updates the zone).. 
that works fine if and only if the autocompleter textfield does not have focus. 
So if I click somewhere else to ensure the autocomplete field does not have 
focus it works fine, but if the field has focus and i click the delete function 
in the grid the above mentioned javascript error kicks in.

There are a couple of other scenarios to lengthy to describe here, but 
resulting to the same error. The error does not occur if I ensure the 
autocompleter field does not have focus when reloading zone(s).

Conclusion: The issue has not been resolved and should be possible to reproduce 
! :-)




> 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
>            Assignee: Howard M. Lewis Ship
>
> 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.

Reply via email to