Converting from 1.4.7 to 6.12. The page runs, but the autocomplete field has
stopped working. It never produces an autocomplete, acting as if it were
simply a normal . More strangely, no code in the containing panel was
changed, nor do I see anything in the migration guide about
AutoCompleteTextField. I put the page into IE's debugger and no errors were
thrown.
Code snippet:
agcyCombo = new AutoCompleteTextField<String>("code",
new PropertyModel<String>(saveCriteria, "SearchString")) {
protected Iterator<String> getChoices(String input) {
if (Strings.isEmpty(input)) {
return Collections.EMPTY_LIST.iterator();
List<String> curMatchingList = CodeFilter.filter(getAgcyFedList(),
input);
if (curMatchingList.size() > MAX_NUM_CHOICE) {
return curMatchingList.subList(0, MAX_NUM_CHOICE - 1).iterator();
return curMatchingList.iterator();
};
wmcAgcy.add(agcyCombo.setLabel(new Model<String>("Agency")));
add(wmcAgcy);
return wmcAgcy;
HTML snippet:
<fieldset id="req">
<label for="agcy">Agency (required):</label>
<input id="agcy" type="text" wicket:id="code" maxlength="30"
value="Agency code and decode" />
</fieldset>
In the 1.4.7 version of the app, the input field looked like:
<input name="agcyPanel:contAgcy:code" class="ui-state-error" id="code13"
type="text" maxLength="30" wicketFocusSet="true" autocomplete="off"
value="D"/>
In 6.12 it produces:
<input name="agcyPanel:contAgcy:code" class="ui-state-error" id="code13"
type="text" maxLength="30" wicketFocusSet="true" autocomplete="off"
value="D"/>
So no apparent difference, but I don't see an onKeyPress event in either, so
i am not sure where to go to stick a breakpoint for that.
stopped working. It never produces an autocomplete, acting as if it were
simply a normal . More strangely, no code in the containing panel was
changed, nor do I see anything in the migration guide about
AutoCompleteTextField. I put the page into IE's debugger and no errors were
thrown.
Code snippet:
agcyCombo = new AutoCompleteTextField<String>("code",
new PropertyModel<String>(saveCriteria, "SearchString")) {
protected Iterator<String> getChoices(String input) {
if (Strings.isEmpty(input)) {
return Collections.EMPTY_LIST.iterator();
List<String> curMatchingList = CodeFilter.filter(getAgcyFedList(),
input);
if (curMatchingList.size() > MAX_NUM_CHOICE) {
return curMatchingList.subList(0, MAX_NUM_CHOICE - 1).iterator();
return curMatchingList.iterator();
};
wmcAgcy.add(agcyCombo.setLabel(new Model<String>("Agency")));
add(wmcAgcy);
return wmcAgcy;
HTML snippet:
<fieldset id="req">
<label for="agcy">Agency (required):</label>
<input id="agcy" type="text" wicket:id="code" maxlength="30"
value="Agency code and decode" />
</fieldset>
In the 1.4.7 version of the app, the input field looked like:
<input name="agcyPanel:contAgcy:code" class="ui-state-error" id="code13"
type="text" maxLength="30" wicketFocusSet="true" autocomplete="off"
value="D"/>
In 6.12 it produces:
<input name="agcyPanel:contAgcy:code" class="ui-state-error" id="code13"
type="text" maxLength="30" wicketFocusSet="true" autocomplete="off"
value="D"/>
So no apparent difference, but I don't see an onKeyPress event in either, so
i am not sure where to go to stick a breakpoint for that.