I've been trying all day to get a simple auto-complete field to work properly with no luck. Maybe someone can help me out. Here's the Freemarker code:

<#include "component://widget/templates/htmlFormMacroLibrary.ftl">
<#assign postalCodeAjaxUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "LookupGeoName")/> <#assign postalCodeAjaxUrl = "EditCustRequest_postalCode," + postalCodeAjaxUrl + ",geoTypeId=POSTAL_CODE&amp;ajaxLookup=Y" />
...
<@renderLookupField name="postalCode" formName="EditCustRequest" fieldFormName="LookupGeoName" value="${(address.postalCode)?if_exists}" size="24" maxlength="20" id="EditCustRequest_postalCode" descriptionFieldName="geoName" ajaxUrl=postalCodeAjaxUrl/>

From what I can tell, this should create an auto-complete field that will be filled in with postal code geo names. Instead, the auto-complete field is filled in with ALL fields and the auto-complete list contains ALL geos. No matter what parameters I send to the lookup screen, I get the same results.

Any ideas?

-Adrian

Reply via email to