BIANEMohamed / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

sj:select multi="true" doesn't preselect multi values #733

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(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. if tag value="[1,2,3]" and you have options with values 1,2,3 no option is 
preselected
if I put only 1 or 2 or 3 then that option is only preselected

What is the expected output? What do you see instead?
should be preselected options but noone is preselected

Which struts2 version?
2.3

Which struts2-jquery plugin version?

Please provide any additional information below.

Original issue reported on code.google.com by nes...@gmail.com on 24 Dec 2011 at 1:19

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 2 Jan 2012 at 3:34

GoogleCodeExporter commented 9 years ago
I am gettting the same issue none of the options were preselected. It's because 
in jquery 3.2.1 js, to set selected ones you are comparing list values with 
option.value. That' why it is not working. Strtus2-jquery 3.2.1 version

Original comment by akmo...@gmail.com on 7 Jan 2012 at 1:26

GoogleCodeExporter commented 9 years ago
Any update on this issue..?
Iam Using struts2-jquery-plugin-3.3.1.jar and it still exist.

Original comment by mvnprad...@gmail.com on 1 Aug 2012 at 5:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The same issue with me also. Please provide a solution otherwise it doesn't 
maske sense to use this.

Original comment by chauhan....@gmail.com on 11 Apr 2013 at 7:35

GoogleCodeExporter commented 9 years ago
Just curious if there has been any resolution or work around on this?
Perhaps some jquery code that could update things?

Original comment by sco...@innoventsolutions.com on 6 Jun 2013 at 7:10

GoogleCodeExporter commented 9 years ago
Hello, 
I use 2.3.4 struts2 version and 3.6.1 jquery plugin version.
I create in my source code a Freemarker template to override the 
select-close.ftl template in struts2-jquery-plugin.jar. 
In select-close.ftl, I create a jQuery topic and I register it over onsuccess 
topic. At that moment, the select element has already the options loaded. The 
script analyzes the  value of the property and it converts it into array value. 
After, I compare all values at the array for each option in the select element.

Original comment by abel.pe...@gmail.com on 8 Nov 2013 at 2:09

GoogleCodeExporter commented 9 years ago
It's the patch

Original comment by abel.pe...@gmail.com on 11 Nov 2013 at 12:19

Attachments: