jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: Handling focus after an Ajax update

From: Edward Burns <edward.burns_at_oracle.com>
Date: Sun, 12 Apr 2015 16:35:42 -0700

>>>>> On Thu, 19 Mar 2015 10:20:27 -0400, Kito Mann <kito.mann_at_virtua.com> said:

KM> Hello everyone,
KM> One of the annoying things about Ajax updates with JSF is the fact that
KM> focus can easily get lost. One of my clients actually resorted to
KM> synchronous "Ajax" requests to avoid this problem (to my chagrin). Here's a
KM> good description/solution to the problem:
KM> http://www.knitelius.com/2014/07/15/keeping-focus-on-element-with-jsf-2-ajax-render/
KM> .

KM> Given that this is a common pain point, shouldn't we provide a solution out
KM> of the box?

I'm all for making things simple by default, but how is this not an
implementation issue given the following?

>>>>> On Thu, 2 Apr 2015 17:29:15 +0200, Bauke Scholtz <balusc_at_gmail.com> said:

B> Hi,
B> Haven't checked MyFaces, but this problem doesn't occur in Mojarra. I
B> recall that this problem was indeed addressed about two years ago, I only
B> can't find the associated issue report and fix version anymore. The jsf.js
B> was been altered to recognize input elements and then only copy the
B> attributes instead of the whole element.

What needs to change in the spec?

Ed