This example shows how to use the GeoExt.form.field.GeocoderComboBox to let the user perform geocoding with the Nominatim API.
GeoExt.form.field.GeocoderComboBox
Have a look at geocoder-combo.js to see how this is done.