In the getResponse() method of the
AutocompleteEventHandler
formComponent.validate(); if
(formComponent.isValid()) {
formComponent.updateModel(); } String
value = formComponent.getValue();
the above lines can be replaced by
String value =
getRequest().getParameter(getInputName());
Since the formComponent.updateModel() is
called the model will get updated evertime.
As a result if the user types some pattern
select some thing and goes to a different page by clicking a link ( with
out submitting ) and
comes back to the page with the autocomplete text
component the user will find the pattern he
typed in the text box (since the underlying
model got updated with the pattern) .
Cheers
Dipu
----- Original Message -----
Sent: Tuesday, November 22, 2005 12:50
PM
Subject: Re: [Wicket-user] How to cover
Select Box with the autocomplete DIV layer
Try using an inner-frame. I don't have the code available, but
googling should provide enough info. The two wicket-contrib-dojo guys (Ruud
and Marko) also had some problems regarding this, and have posted a similar
question two weeks ago.
Martijn
On 11/22/05, Dipu
<[EMAIL PROTECTED]>
wrote:
Hi Ryan,
I am using the ajax autocomplete text box you
have developed for wicket. But in my case the div layer spans over a
select box,
so on IE it goes behind the select box. I tried
nesting it in another div with postion:relative as in scriptaculous
autocomplete example,
but it didn't work for me. Is there any way to
get around this problem.
Thanks
Dipu
-- Living a wicket life...
Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket
1.1 is out: http://wicket.sourceforge.net/wicket-1.1
|