Looks like it is not possible anymore to select several options in a multi-select element, at least not via HtmlOption.setSelected(true). Only the last selected option remains selected. See the attached test case that demonstrates the issue.
Double-checked this once again. Yes, I do use 2.26 release (unless Maven fools me). Strange that we get different results. For me, it happens also with latest.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I really hope you are using 2.26 as stated.
The test passes with my environment.
Double-checked this once again. Yes, I do use 2.26 release (unless Maven fools me). Strange that we get different results. For me, it happens also with latest.
You are right, my mistake.
I was using 2.25, in a local fork.
Thanks for reporting, fixed in SVN.