Re: Select2Choice dropdown box is not appeared in correct position
Thank you so much.i migrated wiquery-jquery-ui version to 6.2.0 now it is working fine.
Re: Select2Choice dropdown box is not appeared in correct position
No, I did not get any Java scripts errors.
Select2Choice dropdown box is not appeared in correct position
we are using wicket-select2 2.0 in our application. A form having a Select2Choice field when click this field the search dropdown box is not appeared in correct position. But this is work fine on my quick start. our application is depending on bootstrap css and js. My observation , select2choice field html code look like in * myQuickstart div id=s2id_foo2 class=select2-container style=width: 300px a class=select2-choice onclick=return false; href=# tabindex=-1 div class=select2-drop *select2-with-searchbox* select2-drop-active select2-offscreen style=display: block; /div input id=foo2 type=hidden name=foo value= style=width: 300px; display: none; wicket:id=foo * our application, div id=s2id_typed class=select2-container style=width: 300px a class=select2-choice onclick=return false; href=# tabindex=-1 div class=select2-drop select2-offscreen style=display: block; /div input id=typed class=select2-choice-text type=hidden name=type value= wicket:id=type style=display: none; The Css class *select2-with-searchbox* is not added in our application html code. can you give suggestion to solve this problem?
Re: select2 integration -Duplicate(selected) value are appear in drop down box
FooProvider implementation is public class FooProvider extends TextChoiceProviderFoo { FooService fooService=new FooService(); @Override protected String getDisplayText(Foo fooChoice) { return fooChoice.getName(); } @Override protected Object getId(Foo fooChoice) { return fooChoice.getName; } @Override public void query(String term, int page, ResponseFoo response) { response.addAll(queryMatches(term, page, 10)); response.setHasMore(response.size() == 10); } @Override public CollectionFoo toChoices(CollectionString ids) { ArrayListFoo foos = new ArrayListFoo(); for (String id : ids) { foos.add(fooService.findFooByName(id)); } return foos; } } private ListFoo queryMatches(String term, int page, int pageSize) { ListFoo result = new ArrayListFoo(); term = term.toUpperCase(); final int offset = page * pageSize; int matched = 0; for ( Foo foo : getAllFoos()) { if (result.size() == pageSize) { break; } if (foo.getName().toUpperCase().contains(term)) { matched++; if (matched offset) { result.add(foo); } } } return result; } public ListFoo getAllFoos() { //return all foos return fooService.findAll(); }
select2 integration -Duplicate(selected) value are appear in drop down box
we are using select2 version 2.0 in our application. Select2MultiChoice field are using for select a multiple value. here we set the maximumselectionsize is 20. and set minimuminputlength is 1.when we give input in that field the relevant value are appear in drop down box correctly, if selection count reach 15 or 16, hence we give input in that field the duplicated (selected) value are appear in the drop down box. but i could not recreate this problem in Myquickstart. the sample code is Select2MultiChoiceFoo fooField = new Select2MultiChoiceFoo(message, new PropertyModelCollectionFoo(this, foo), new FooProvider); fooField.getSettings().setMinimumInputLength(1); fooField.getSettings().setMaximumSelectionSize(20); fooField.setRequired(true); return fooField;