Closed hss-ch closed 10 months ago
Is this issue something else than #345?
Do you get any JavaScript error in console?
Yes. When we use sj:select without sj:autocompleter in the same jsp page and if any option is selected in the list, we are always getting first option and we are also getting the following error in console:
jQuery.Deferred exception: b(...).appendTo(...).val(...).attr(...).addClass(...).autocomplete(...).tooltip is not a function TypeError: b(...).appendTo(...).val(...).attr(...).addClass(...).autocomplete(...).tooltip is not a function
at c.
[struts2_jquery] bind button on submit_1267952425 jquery.struts2.min.js?s2j=5.0.3:19 [struts2_jquery_ui] init button with id: submit_1267952425 jquery.struts2.min.js?s2j=5.0.3:19 [struts2_jquery] formsubmit : submit_1267952425 jquery.struts2.min.js?s2j=5.0.3:19 [struts2_jquery_ui] bind tabbedpanel on showautocompletecode jquery.struts2.min.js?s2j=5.0.3:19 [struts2_jquery_ui] tabbedpanel : showautocompletecode jquery.struts2.min.js?s2j=5.0.3:19 [struts2_jquery_ui] load require script /p8/static/js/base/tabs.min.js?s2j=5.0.3
Uncaught TypeError: b(...).appendTo(...).val(...).attr(...).addClass(...).autocomplete(...).tooltip is not a function
at c.
The following attributes are also not working in this case for sj:select: onChangeTopics="autocompleteChange" onFocusTopics="autocompleteFocus" onSelectTopics="autocompleteSelect"
In Struts2 jQuery Plugin 4.0.1, it is working fine
In Struts2 jQuery Plugin 4.0.1, it is working fine
Because this version used an old version of JQuery, 5.x version of the plugin a lot has changed in JQuery and it's sometimes very hard to figure out how to adjust the plugin code.
Could you test the linked PR?
Hi, I am facing these problems when I try to migrate to Struts2 jQuery Plugin 5.0.3.
We want to use the tag sj:select with attribute autocomplete="true" for auto completion. But the tag sj:select with attribute autocomplete="true" is not working , without using sj:autocompleter tag in the same jsp page.
We are unable to perform show/hide operations on a grid.