Export to GitHub

struts2-jquery - issue #721

select tag with autocomplete not load two js library


Posted on Dec 14, 2011 by Grumpy Monkey

Which struts2-jquery plugin version? 3.2.0

Please provide any additional information below.

I have sj:select tag with autocomplete="true"

<sj:select key="contactaddress.state" id="contactaddress_state" href="%{loadstatesurl}" reloadTopics="reloadstateslist" formIds="accountinfoform" list="listStates" listKey="statenameascii" listValue="statenameascii" parentTheme="xhtml" required="true" selectBoxIcon="true" autocomplete="true"/>

Its work properly if I include this js library:

jQuery(document).ready(function () { $.struts2_jquery.require("js/base/jquery.ui.autocomplete.js"); $.struts2_jquery.require("js/base/jquery.ui.position.js"); });

I think if autocomplete="true" this js files must be included automatically. They are included automatically only if I use autocompleter tag. But I have test it to replace the same functionality with autocompleter tag and its seems like reloadTopics not work.

Comment #1

Posted on Dec 14, 2011 by Swift Lion

(No comment was entered for this change.)

Comment #2

Posted on Dec 14, 2011 by Swift Lion

http://code.google.com/p/struts2-jquery/source/detail?r=1562

Can you please try out latest SNAPSHOT?

Comment #3

Posted on Dec 15, 2011 by Grumpy Monkey

I have tested it with struts2-jquery-plugin-3.2.1-SNAPSHOT.jar and its fixed now thanks!

Comment #4

Posted on Dec 16, 2011 by Grumpy Monkey

I have try the last build 1563 and this is the JavaScript error: $(" ").attr("tabIndex", - 1).attr("title", "Show All Items").button is not a function

You forget to include "js/base/jquery.ui.button" + self.minSuffix + ".js" in build 1562 it was included and its worked.

Comment #5

Posted on Dec 19, 2011 by Swift Lion

Thank you for testing this. This should now be fixed.

Comment #6

Posted on Jan 2, 2012 by Swift Lion

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium Component-Plugin Milestone-3.2.1