Rodrigo Antunes wrote:
I'm doing basically what I saw in the example.
In the method #onRender of my click page, I'm creating a AutoCompleteTextField
object the same way of the example:
AutoCompleteTextField invokes the method #getAutoCompleteList during
the onProcess phase. The onRender phase occurs after the onProcess
phase, thus the AutoCompleteTextField is created too late in the
execution cycle.
To fix simply create your Field in either the Page constructor or the
onInit phase.
You can read some docs about Click's execution cycle here:
http://incubator.apache.org/click/docs/pages.html#page-execution
Does this solve it for you?
kind regards
bob