CAutoComplete - $_POST

When I use the CAutoComplete in a form and hit the submit button, my textfield is always empty …

He never remember what I search by the AutoComplete field.

How can I tell the CAutoComplete width that he must remember the entered / found info?

I attached to widget a model and used $searchform->attributes = $_POST[‘Search’];, but non of these worked …

Hmm nobody?

How do you use CAutoComplete? Did you set its model and attribute properties?

Yes I use the model attribute

But I fixed it by using the value attribute that I fill with the $_POST value

I recommend you to use Firebug (Firefox’s addon) to debug and see the $_POST content.

That can help you to know what is happening…

Are you sure that the attribute is safe?

There is a validator on this attribute?

;)