Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.2
-
None
Description
When writing an autocomplete textfield on a form that is first visible,
and after an ajax call rendered invisible, the autocomplete textfields
on this form get rendered anyway in the ajax response.
The method "renderAutocompleteHead" in AbstractAutocompleteBehavior gets executed,
even if the AutoComplete component to which it is attached is not visible within the
component hierarchy.
Below the snippet of code that solved it for us ...
In the class AbstractAutoCompleteBehavior, a test on the visibility was added.
public void renderHead(IHeaderResponse response) {
if(this.getComponent().isVisibleInHierarchy())
}
The error becomes visible in the debug window on the webpage.