Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: Grails-RichUI 0.7
-
Fix Version/s: Grails-RichUI 0.8
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.2
-
Patch Submitted:Yes
Description
Looking at the generated code for the autocomplete component I can see that the YUI data source is always called 'autoCompleteDataSource' which may cause javascript issues (e.g. if the variable is already defined). I created a fix which uses the yuiVariableName attribute as a prefix to the data source name to fix the problem (attached).
I must admit that I have successfully run the plugin in a number of inputs on the same page and it still works so I can only assume that the YUI autocomplete component copies the values at startup and so the issue should not become a problem in most cases (hence marked as minor). If you are already using the variable name 'autoCompleteDataSource' outside of the richui script it could be an issue.
The fixed version is already available in trunk http://plugins.grails.org/grails-richui/trunk/grails-richui-0.8.zip