1.3 beta 2. I don't think it's a bug.
f(t) On 8/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > What wicket version are you using? Because if I understand correctly > wicket > still focuses element, even if you call target.focusComponent(null)? > Because > that would be a bug. > > -Matej > > On 8/30/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> > wrote: > > > > None worked. > > > > Not AjaxRequestTarget.focusComponent(null); nor > > AjaxRequestTarget.focusComponent(panel); > > > > It stills executes: > > > > ajax-wicket-call > > my-focus-on-componen-load > > ajax-wicket-focus-on-call-end > > > > f(t) > > > > > > On 8/29/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > > > > just call AjaxRequestTarget.focuscomponent(null), that should prevent > > > wicket > > > from focusing the element. > > > > > > On 8/29/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > > > > > > > you can call AjaxRequestTarget#focusComponent(Component). > > > > either you pass the AjaxRequestTarget to the replacing panel and let > > it > > > > set > > > > the focus itself or you can have a method which returns the > component > > > that > > > > should get the focus. > > > > > > > > gerolf > > > > > > > > On 8/29/07, Francisco Diaz Trepat - gmail < > > > [EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > > Hi, I am changing a panel inside a page with an ajax link, I > > > > > change them from one to another panels A B C D etc. > > > > > Inside each of the panels there is a field (textfield, > choicefield, > > > etc, > > > > > depending on which panel) that must have the focus when loaded. > > > > > > > > > > I previously built a behavior that can be added to any component > > that > > > > > needs > > > > > the focus. > > > > > That behavior function is called perfectly but before the > > pos-handlers > > > > for > > > > > the ajax call end. > > > > > So what happens is that the ajax functions are putting the focus > on > > > the > > > > > component that had it before the call started, in this case the > ajax > > > > link. > > > > > > > > > > And what is happening due to that call is that my component gets > the > > > > > focus, > > > > > but immediately after gets blur or the focus is taken away from > the > > > > field > > > > > and back to the link. > > > > > > > > > > > > > > > Is there another way? or a form to avoid refocusing of components > in > > > > ajax > > > > > calls? > > > > > > > > > > > > > > > f(t) > > > > > > > > > > > > > > >