[
https://issues.apache.org/jira/browse/OFBIZ-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leon updated OFBIZ-4305:
------------------------
Attachment: autocompleter_defaultdelay.patch
> The absence of default delay value for ajaxAutoCompleter introduces html
> syntax error in client end
> ---------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-4305
> URL: https://issues.apache.org/jira/browse/OFBIZ-4305
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Leon
> Fix For: SVN trunk
>
> Attachments: autocompleter_defaultdelay.patch
>
>
> When I open a page with lookup fields inside, the browser reports syntax
> error:
> Error: syntax error
> Source code:
> ajaxAutoCompleter('theLookupUrl_blahblah', true, 2, );
> The last parameter of function "ajaxAutoCompleter" is omitted, it should be a
> number to indicate the ajaxautocompleter delay value.
> In some complex page which includes serveral lookup fields, sometimes, this
> kind of syntax error crippled the whole function.
> workaround:
> Modify the name of "widget.autocompleter.delay" in
> framework/widget/config/widget.properties to
> "widget.autocompleter.defaultDelay" and uncommment this line.
> Note that org.ofbiz.base.util.UtilProperties.getPropertyValue won't return
> null if the property does not exist, it return empty string "". Thus the
> expression "${defaultDelay!300}" in .ftl returns an empty string instead of
> number "300" as we want.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira