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
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.
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
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
All events, topics are getting applied to the select element instead of the
input element
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.
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)
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.
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.
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%
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.