AssertError when trying to use GWTChosen

11 views
Skip to first unread message

David Nouls

unread,
Dec 7, 2015, 12:18:20 PM12/7/15
to gwtquery
I'm trying to use GWTChosen 3.0.1 in my GWT application (using GWT 2.7.0).

I have the following in the UiBinder file (using bootstrap grid):

<div class="form-group">

<label class="control-label col-sm-4 col-md-3 col-lg-2">Message Type</label>

<div class="col-sm-8 col-md-9 col-lg-10">

<select ui:field="mSelect" placeholderText="Select a Message Type ..." class="form-control">

<option value="fin.199">FIN 199</option>

<option vlaue="fin.103">FIN 103</option>

</select>

</div>

</div>


And in my view class I have the following in the constructor:

initWidget(pBinder.createAndBindUi(this));

$(mSelect).as(Chosen.Chosen).chosen();


This throws an assertion error in IE11/FireFox/Chrome.

In Chrome I could see the stack:

as_21_g$ (InputElement.java:40)
setupEnabledSearchField_0_g$ (ChosenImpl.java:711)
setupEnabledSearchField_1_g$ (DesktopSingleCh…nImpl.java:123)
rebuildResultItems_1_g$ (ChosenImpl.java:1106)
resultsBuild_1_g$ (ChosenImpl.java:608)
resultsBuild_2_g$ (DesktopSingleCh…nImpl.java:102)
resultsBuild_0_g$ (ChosenImpl.java:602)
setup_0_g$ (ChosenImpl.java:1373)
init_1_g$ (ChosenImpl.java:451)
init_2_g$ (DesktopSingleCh…enImpl.java:65)
chosen_3_g$ (Chosen.java:60)
chosen_1_g$ (Chosen.java:45)
MessageViewImpl_1_g$ (MessageViewImpl.java:55)


What am I doing wrong here ?


Reply all
Reply to author
Forward
0 new messages