You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by Bob Schellink <sa...@gmail.com> on 2009/05/01 11:58:36 UTC

AutoCompleteTextField remove issue

Hi all,

An issue was logged at our old JIRA system [1] which I'm not entirely 
sure how to solve cleanly.

AutoCompleteTextField always adds itself to the parent Page so if one 
were to remove the Field from the Form, the Field is still present on 
the Page. For stateful pages this creates a problem where the 
JavaScript is rendered even though the Field is not.

One way might be to override the field's setParent method to also 
remove it from the Page.

bob