wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Entropy <blmulholl...@gmail.com>
Subject AutoComplete stopped working in 6.12
Date Mon, 16 Dec 2013 19:13:11 GMT
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.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoComplete-stopped-working-in-6-12-tp4663047.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message