Issue 1125 in struts2-jquery: value is not preselected with sj:select and autocomplete=true

22 views
Skip to first unread message

struts2...@googlecode.com

unread,
Dec 15, 2014, 10:33:40 AM12/15/14
to struts2...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1125 by kenf...@gmail.com: value is not preselected with
sj:select and autocomplete=true
https://code.google.com/p/struts2-jquery/issues/detail?id=1125

(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. Create a sj:select with a json call and autocomplete option set to true

<s:url id="institutionUrl" action="institution/jsongrid"/>

<sj:select
autocomplete="true"
selectBoxIcon="true"
label="Institution"
value="selectedInstitutionId"
title="Choose an institution"
href="%{institutionUrl}"
id="selectId"
name="institution"
list="gridModel"
listKey="id"
listValue="category"
reloadTopics="reloadInstitution"
/>


What is the expected output? What do you see instead?
The item represented by "selectedInstitutionId" is not preselected.
However, if I remove autocomplete="true", the list shows the preselected
item.

Which struts2 version?
2.3.16.3

Which struts2-jquery plugin version?
3.7.1

Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

struts2...@googlecode.com

unread,
Dec 20, 2014, 2:45:02 AM12/20/14
to struts2...@googlegroups.com

Comment #1 on issue 1125 by kenf...@gmail.com: value is not preselected
My bad. I wrongly set the listValue attribute and this is why the list did
not display the selected value.

My problem is solved.
Reply all
Reply to author
Forward
0 new messages