Issue 426 in struts2-jquery: sj:autocompleter onselect onchange do not work

69 views
Skip to first unread message

struts2...@googlecode.com

unread,
Feb 1, 2011, 5:37:27 PM2/1/11
to struts2...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 426 by shroffda...@gmail.com: sj:autocompleter onselect onchange
do not work
http://code.google.com/p/struts2-jquery/issues/detail?id=426

What steps will reproduce the problem?

1. <sj:autocompleter list="%{projectList}"
listValue="strLabel"
listKey="strId"
selectBox="true"
selectBoxIcon="true"
onselect="selectAutocompleter()"
onchange="selectAutocompleter()"
/>

function selectAutocompleter()
{
alert('hello');
}

2. None of the javascript event functions work for autocompleter.
The same goes for topics such as onChangeTopics.

Which struts2 version?
2.2.1

Which struts2-jquery plugin version?
2.5.1

Regards,
Darshan Shroff
shroff...@gmail.com
http://in.linkedin.com/in/darshanshroff


struts2...@googlecode.com

unread,
Feb 1, 2011, 5:51:43 PM2/1/11
to struts2...@googlegroups.com

Comment #1 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

Also kindly provide an attribute for a scrollbar. So that a scroll appears
on the list, instead of displaying all the elements of that list.

struts2...@googlecode.com

unread,
Feb 2, 2011, 11:53:29 AM2/2/11
to struts2...@googlegroups.com

Comment #2 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

We have been using (wanting to use) the autocompleter in various screens
for large scale production applications.
Without the below functionalities, there is no way one can use it in a real
scenario :-

1. onselect, onchange, onblur functions dont work
2. all topics (select, blur , change) dont work
3. there needs to be a scrollbar which can be applied at a certain height
4. width of the drop down should be adjustible so that contents within it
get wrapped

struts2...@googlecode.com

unread,
Feb 2, 2011, 12:26:23 PM2/2/11
to struts2...@googlegroups.com

Comment #3 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

We have been using (wanting to use) the autocompleter in various screens
for large scale production applications.
Without the below functionalities, there is no way one can use it in a real
scenario :-

1. selectBoxIcon needs to be provided (This has been provided by you since
2.5.0)
2. onselect, onchange, onblur functions dont work
3. all topics (select, blur , change) dont work
4. there needs to be a scrollbar which can be applied at a certain height
5. width of the drop down should be adjustible so that contents within it

struts2...@googlecode.com

unread,
Feb 2, 2011, 12:30:37 PM2/2/11
to struts2...@googlegroups.com

Comment #4 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

All events, topics are getting applied to the select element instead of the
input element

struts2...@googlecode.com

unread,
Feb 2, 2011, 12:36:47 PM2/2/11
to struts2...@googlegroups.com
Updates:
Owner: johgep
Labels: Component-Plugin

Comment #5 on issue 426 by johgep: sj:autocompleter onselect onchange do
not work
http://code.google.com/p/struts2-jquery/issues/detail?id=426

which problem do you have with the topics?
they running fine in the showcase.

struts2...@googlecode.com

unread,
Feb 2, 2011, 1:22:23 PM2/2/11
to struts2...@googlegroups.com

Comment #6 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

topics work only when Autocompleter handles a JSON Result (second example
in showcase)
topics dont work when Autocompleter handles a List from Action as Select
Box(third example - first part in showcase)

struts2...@googlecode.com

unread,
Feb 2, 2011, 2:20:47 PM2/2/11
to struts2...@googlegroups.com

Comment #7 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

Also i just figured, conversely point number 1 (selectBoxIcon) does not
work when Autocompleter handles a JSON Result. For an application,
irrespective of how you fetch the result, json or not, the look and feel
must be same.

struts2...@googlecode.com

unread,
Feb 2, 2011, 2:24:55 PM2/2/11
to struts2...@googlegroups.com

Comment #8 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

Final change requests are as follows. Would appreciate if incorporated in
2.5.2 :-

1. selectBoxIcon needs to be provided - (does not work when Autocompleter
handles a JSON Result)

2. all topics (select, blur , change) - (does not work when Autocompleter
handles a List from Action as Select Box)

3. there needs to be a scrollbar which can be applied at a certain height -
for all

4. width of the drop down should be adjustable so that contents within it
get wrapped - for all

Autocompleter is a very important component for many applications and
business increasingly is liking the same, but for the quirks above.

struts2...@googlecode.com

unread,
Feb 2, 2011, 2:50:52 PM2/2/11
to struts2...@googlegroups.com

Comment #9 on issue 426 by shroffda...@gmail.com: sj:autocompleter onselect

Final change requests are as follows. Would appreciate if incorporated in
2.5.2 :-

1. selectBoxIcon needs to be provided - (does not work when Autocompleter
handles a JSON Result)
2. all topics (select, blur , change) - (does not work when Autocompleter
handles a List from Action as Select Box)
3. there needs to be a scrollbar which can be applied at a certain height -
for all
4. width of the drop down should be adjustable so that contents within it
get wrapped - for all

5. Search should be term% and not %term%. There should be an option for
this.
For Autocompleter handles a List from Action as Select Box, it is
always %term%

struts2...@googlecode.com

unread,
May 26, 2011, 4:34:09 AM5/26/11
to struts2...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 276

Comment #10 on issue 426 by johgep: sj:autocompleter onselect onchange do
not work
http://code.google.com/p/struts2-jquery/issues/detail?id=426

Topics for autocompleter/selectbox are improved in version 3.0.2.

Scrollbar and width can be controled with custome css.

Please create seperate issues for each bug or feature request.

Reply all
Reply to author
Forward
0 new messages